react-native-enriched-markdown-scaffold 0.6.0-scaffold.6 → 0.7.4-scaffold.1
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/ReactNativeEnrichedMarkdown.podspec +62 -11
- package/android/generated/java/com/facebook/react/viewmanagers/EnrichedMarkdownManagerDelegate.java +3 -0
- package/android/generated/java/com/facebook/react/viewmanagers/EnrichedMarkdownManagerInterface.java +1 -0
- package/android/generated/java/com/facebook/react/viewmanagers/EnrichedMarkdownTextInputManagerDelegate.java +9 -0
- package/android/generated/java/com/facebook/react/viewmanagers/EnrichedMarkdownTextInputManagerInterface.java +3 -0
- package/android/generated/java/com/facebook/react/viewmanagers/EnrichedMarkdownTextManagerDelegate.java +3 -0
- package/android/generated/java/com/facebook/react/viewmanagers/EnrichedMarkdownTextManagerInterface.java +1 -0
- package/android/generated/jni/react/renderer/components/EnrichedMarkdownTextSpec/Props.cpp +20 -0
- package/android/generated/jni/react/renderer/components/EnrichedMarkdownTextSpec/Props.h +744 -36
- package/android/src/main/baseline-prof.txt +75 -2
- package/android/src/main/java/com/swmansion/enriched/markdown/EnrichedMarkdown.kt +62 -0
- package/android/src/main/java/com/swmansion/enriched/markdown/EnrichedMarkdownInternalText.kt +10 -2
- package/android/src/main/java/com/swmansion/enriched/markdown/EnrichedMarkdownManager.kt +10 -0
- package/android/src/main/java/com/swmansion/enriched/markdown/EnrichedMarkdownText.kt +9 -2
- package/android/src/main/java/com/swmansion/enriched/markdown/EnrichedMarkdownTextManager.kt +10 -0
- package/android/src/main/java/com/swmansion/enriched/markdown/MeasurementStore.kt +0 -1
- package/android/src/main/java/com/swmansion/enriched/markdown/accessibility/AccessibilityLabels.kt +15 -0
- package/android/src/main/java/com/swmansion/enriched/markdown/accessibility/MarkdownAccessibilityHelper.kt +44 -7
- package/android/src/main/java/com/swmansion/enriched/markdown/input/EnrichedMarkdownTextInputManager.kt +52 -0
- package/android/src/main/java/com/swmansion/enriched/markdown/input/EnrichedMarkdownTextInputView.kt +55 -3
- package/android/src/main/java/com/swmansion/enriched/markdown/input/formatting/FormattingStore.kt +19 -0
- package/android/src/main/java/com/swmansion/enriched/markdown/input/formatting/InputParser.kt +22 -3
- package/android/src/main/java/com/swmansion/enriched/markdown/input/formatting/InputRemend.kt +1 -0
- package/android/src/main/java/com/swmansion/enriched/markdown/input/layout/InputMeasurementStore.kt +7 -1
- package/android/src/main/java/com/swmansion/enriched/markdown/input/model/MathChipStyle.kt +0 -3
- package/android/src/main/java/com/swmansion/enriched/markdown/input/toolbar/InputContextMenu.kt +54 -13
- package/android/src/main/java/com/swmansion/enriched/markdown/parser/MarkdownASTNode.kt +17 -0
- package/android/src/main/java/com/swmansion/enriched/markdown/renderer/SpanStyleCache.kt +4 -4
- package/android/src/main/java/com/swmansion/enriched/markdown/spans/MathModels.kt +0 -1
- package/android/src/main/java/com/swmansion/enriched/markdown/styles/InlineMathStyle.kt +1 -3
- package/android/src/main/java/com/swmansion/enriched/markdown/styles/MathStyle.kt +1 -3
- package/android/src/main/java/com/swmansion/enriched/markdown/utils/common/MarkdownViewManagerUtils.kt +30 -0
- package/android/src/main/java/com/swmansion/enriched/markdown/utils/input/MarkdownStyleParser.kt +0 -14
- package/android/src/main/java/com/swmansion/enriched/markdown/utils/text/view/LinkEvents.kt +22 -0
- package/android/src/main/java/com/swmansion/enriched/markdown/utils/text/view/SelectionActionMode.kt +36 -7
- package/android/src/main/java/com/swmansion/enriched/markdown/views/TableContainerView.kt +73 -3
- package/android/src/main/jni/CMakeLists.txt +15 -1
- package/android/src/math/java/com/swmansion/enriched/markdown/renderer/MathInlineRenderer.kt +0 -1
- package/android/src/math/java/com/swmansion/enriched/markdown/spans/MathChipSpan.kt +1 -2
- package/android/src/math/java/com/swmansion/enriched/markdown/spans/MathInlineSpan.kt +1 -3
- package/android/src/math/java/com/swmansion/enriched/markdown/spans/MathMeasureHelper.kt +1 -2
- package/android/src/math/java/com/swmansion/enriched/markdown/views/MathContainerView.kt +25 -10
- package/app.plugin.js +2 -1
- package/cpp/parser/MD4CParser.cpp +1 -1
- package/cpp/wasm/build.sh +9 -9
- package/docs/ACCESSIBILITY.md +172 -0
- package/docs/API_REFERENCE.md +948 -0
- package/docs/COPY_OPTIONS.md +127 -0
- package/docs/ELEMENTS_STRUCTURE.md +112 -0
- package/docs/IMAGE_CACHING.md +25 -0
- package/docs/INPUT.md +233 -0
- package/docs/LATEX_MATH.md +136 -0
- package/docs/MACOS.md +19 -0
- package/docs/MARKDOWN_STREAMING.md +36 -0
- package/docs/MENTIONS.md +97 -0
- package/docs/RTL.md +82 -0
- package/docs/STYLES.md +519 -0
- package/docs/TEXT.md +110 -0
- package/docs/WEB.md +49 -0
- package/ios/EnrichedMarkdown.mm +82 -25
- package/ios/EnrichedMarkdownText.mm +37 -5
- package/ios/attachments/ENRMMathInlineAttachment+macOS.m +1 -5
- package/ios/attachments/ENRMMathInlineAttachment.h +0 -3
- package/ios/attachments/ENRMMathInlineAttachment.m +1 -2
- package/ios/generated/ReactCodegen/EnrichedMarkdownTextSpec/Props.cpp +20 -0
- package/ios/generated/ReactCodegen/EnrichedMarkdownTextSpec/Props.h +744 -36
- package/ios/generated/ReactCodegen/EnrichedMarkdownTextSpec/RCTComponentViewHelpers.h +15 -0
- package/ios/input/ENRMFormattingStore.h +5 -0
- package/ios/input/ENRMFormattingStore.mm +34 -0
- package/ios/input/ENRMInputFormatter.h +0 -6
- package/ios/input/ENRMInputFormatter.mm +0 -2
- package/ios/input/ENRMInputTextView.h +2 -0
- package/ios/input/ENRMInputTextView.mm +8 -17
- package/ios/input/ENRMMarkdownSerializer.mm +1 -1
- package/ios/input/EnrichedMarkdownTextInput+ContextMenu.mm +71 -53
- package/ios/input/EnrichedMarkdownTextInput+Internal.h +26 -0
- package/ios/input/EnrichedMarkdownTextInput.h +1 -0
- package/ios/input/EnrichedMarkdownTextInput.mm +207 -12
- package/ios/input/InputStylePropsUtils.h +0 -8
- package/ios/input/styles/ENRMBoldStyleHandler.mm +3 -2
- package/ios/input/styles/ENRMItalicStyleHandler.mm +3 -2
- package/ios/math/ENRMRaTeXBridge.swift +2 -16
- package/ios/renderer/AttributedRenderer.m +51 -6
- package/ios/renderer/ENRMMathInlineRenderer.m +5 -2
- package/ios/styles/ENRMFontSlot.h +1 -1
- package/ios/styles/StyleConfig.h +0 -4
- package/ios/styles/StyleConfig.mm +0 -24
- package/ios/utils/ENRMAccessibilityLabels.h +36 -0
- package/ios/utils/ENRMAccessibilityLabels.m +5 -0
- package/ios/utils/EditMenuUtils+macOS.m +4 -5
- package/ios/utils/EditMenuUtils.h +70 -0
- package/ios/utils/EditMenuUtils.m +14 -11
- package/ios/utils/LastElementUtils.h +39 -2
- package/ios/utils/MarkdownAccessibilityElementBuilder.h +18 -16
- package/ios/utils/MarkdownAccessibilityElementBuilder.m +64 -32
- package/ios/utils/ParagraphStyleUtils.m +21 -2
- package/ios/utils/StylePropsUtils.h +0 -10
- package/ios/views/ENRMMathContainerView.h +8 -0
- package/ios/views/ENRMMathContainerView.m +8 -7
- package/ios/views/ENRMTableIOSGridView.h +40 -0
- package/ios/views/ENRMTableIOSGridView.m +216 -0
- package/ios/views/EnrichedMarkdownInternalText.h +2 -0
- package/ios/views/EnrichedMarkdownInternalText.m +2 -0
- package/ios/views/TableContainerView.h +8 -0
- package/ios/views/TableContainerView.m +72 -128
- package/lib/module/EnrichedMarkdownNativeComponent.ts +37 -2
- package/lib/module/EnrichedMarkdownTextInput.js +48 -1
- package/lib/module/EnrichedMarkdownTextInput.js.map +1 -1
- package/lib/module/EnrichedMarkdownTextInputNativeComponent.ts +35 -1
- package/lib/module/EnrichedMarkdownTextNativeComponent.ts +37 -2
- package/lib/module/accessibilityLabelDefaults.js +64 -0
- package/lib/module/accessibilityLabelDefaults.js.map +1 -0
- package/lib/module/index.js +1 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/native/EnrichedMarkdownText.js +72 -4
- package/lib/module/native/EnrichedMarkdownText.js.map +1 -1
- package/lib/module/normalizeMarkdownStyle.js +2 -4
- package/lib/module/normalizeMarkdownStyle.js.map +1 -1
- package/lib/module/normalizeMarkdownStyle.web.js +2 -4
- package/lib/module/normalizeMarkdownStyle.web.js.map +1 -1
- package/lib/module/normalizeMarkdownTextInputStyle.js +3 -10
- package/lib/module/normalizeMarkdownTextInputStyle.js.map +1 -1
- package/lib/module/normalizeMenuItem.js +38 -0
- package/lib/module/normalizeMenuItem.js.map +1 -0
- package/lib/module/types/AccessibilityLabels.js +2 -0
- package/lib/module/types/AccessibilityLabels.js.map +1 -0
- package/lib/typescript/src/EnrichedMarkdownNativeComponent.d.ts +34 -2
- package/lib/typescript/src/EnrichedMarkdownNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/EnrichedMarkdownTextInput.d.ts +55 -13
- package/lib/typescript/src/EnrichedMarkdownTextInput.d.ts.map +1 -1
- package/lib/typescript/src/EnrichedMarkdownTextInputNativeComponent.d.ts +30 -1
- package/lib/typescript/src/EnrichedMarkdownTextInputNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/EnrichedMarkdownTextNativeComponent.d.ts +34 -2
- package/lib/typescript/src/EnrichedMarkdownTextNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/accessibilityLabelDefaults.d.ts +16 -0
- package/lib/typescript/src/accessibilityLabelDefaults.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +4 -2
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/native/EnrichedMarkdownText.d.ts +3 -3
- package/lib/typescript/src/native/EnrichedMarkdownText.d.ts.map +1 -1
- package/lib/typescript/src/normalizeMarkdownStyle.d.ts.map +1 -1
- package/lib/typescript/src/normalizeMarkdownStyle.web.d.ts.map +1 -1
- package/lib/typescript/src/normalizeMarkdownTextInputStyle.d.ts +0 -2
- package/lib/typescript/src/normalizeMarkdownTextInputStyle.d.ts.map +1 -1
- package/lib/typescript/src/normalizeMenuItem.d.ts +7 -0
- package/lib/typescript/src/normalizeMenuItem.d.ts.map +1 -0
- package/lib/typescript/src/types/AccessibilityLabels.d.ts +114 -0
- package/lib/typescript/src/types/AccessibilityLabels.d.ts.map +1 -0
- package/lib/typescript/src/types/MarkdownStyle.d.ts +0 -14
- package/lib/typescript/src/types/MarkdownStyle.d.ts.map +1 -1
- package/lib/typescript/src/types/MarkdownStyleInternal.d.ts +0 -3
- package/lib/typescript/src/types/MarkdownStyleInternal.d.ts.map +1 -1
- package/lib/typescript/src/types/MarkdownTextProps.d.ts +78 -9
- package/lib/typescript/src/types/MarkdownTextProps.d.ts.map +1 -1
- package/package.json +4 -2
- package/plugin/build/withAndroidMath.js +19 -0
- package/plugin/build/withIosMath.js +28 -0
- package/plugin/build/withReactNativeEnrichedMarkdown.js +11 -0
- package/plugin/tsconfig.build.json +16 -0
- package/src/EnrichedMarkdownNativeComponent.ts +37 -2
- package/src/EnrichedMarkdownTextInput.tsx +117 -13
- package/src/EnrichedMarkdownTextInputNativeComponent.ts +35 -1
- package/src/EnrichedMarkdownTextNativeComponent.ts +37 -2
- package/src/accessibilityLabelDefaults.ts +83 -0
- package/src/index.tsx +11 -0
- package/src/native/EnrichedMarkdownText.tsx +120 -6
- package/src/normalizeMarkdownStyle.ts +1 -6
- package/src/normalizeMarkdownStyle.web.ts +1 -6
- package/src/normalizeMarkdownTextInputStyle.ts +0 -14
- package/src/normalizeMenuItem.ts +52 -0
- package/src/types/AccessibilityLabels.ts +118 -0
- package/src/types/MarkdownStyle.ts +0 -14
- package/src/types/MarkdownStyleInternal.ts +0 -4
- package/src/types/MarkdownTextProps.ts +74 -9
- package/android/src/math/java/com/swmansion/enriched/markdown/utils/math/LatexWeightWrapper.kt +0 -23
- package/lib/module/plugin/withAndroidMath.js +0 -20
- package/lib/module/plugin/withAndroidMath.js.map +0 -1
- package/lib/module/plugin/withIosMath.js +0 -23
- package/lib/module/plugin/withIosMath.js.map +0 -1
- package/lib/module/plugin/withReactNativeEnrichedMarkdown.js +0 -16
- package/lib/module/plugin/withReactNativeEnrichedMarkdown.js.map +0 -1
- package/lib/typescript/src/plugin/withAndroidMath.d.ts +0 -5
- package/lib/typescript/src/plugin/withAndroidMath.d.ts.map +0 -1
- package/lib/typescript/src/plugin/withIosMath.d.ts +0 -5
- package/lib/typescript/src/plugin/withIosMath.d.ts.map +0 -1
- package/lib/typescript/src/plugin/withReactNativeEnrichedMarkdown.d.ts +0 -6
- package/lib/typescript/src/plugin/withReactNativeEnrichedMarkdown.d.ts.map +0 -1
- /package/{src/plugin → plugin/src}/withAndroidMath.ts +0 -0
- /package/{src/plugin → plugin/src}/withIosMath.ts +0 -0
- /package/{src/plugin → plugin/src}/withReactNativeEnrichedMarkdown.ts +0 -0
|
@@ -1534,7 +1534,6 @@ struct EnrichedMarkdownMarkdownStyleMathStruct {
|
|
|
1534
1534
|
Float marginTop{0.0};
|
|
1535
1535
|
Float marginBottom{0.0};
|
|
1536
1536
|
std::string textAlign{};
|
|
1537
|
-
std::string fontWeight{};
|
|
1538
1537
|
|
|
1539
1538
|
|
|
1540
1539
|
#ifdef RN_SERIALIZABLE_STATE
|
|
@@ -1549,7 +1548,6 @@ struct EnrichedMarkdownMarkdownStyleMathStruct {
|
|
|
1549
1548
|
result["marginTop"] = marginTop;
|
|
1550
1549
|
result["marginBottom"] = marginBottom;
|
|
1551
1550
|
result["textAlign"] = textAlign;
|
|
1552
|
-
result["fontWeight"] = fontWeight;
|
|
1553
1551
|
return result;
|
|
1554
1552
|
}
|
|
1555
1553
|
#endif
|
|
@@ -1586,10 +1584,6 @@ static inline void fromRawValue(const PropsParserContext& context, const RawValu
|
|
|
1586
1584
|
if (tmp_textAlign != map.end()) {
|
|
1587
1585
|
fromRawValue(context, tmp_textAlign->second, result.textAlign);
|
|
1588
1586
|
}
|
|
1589
|
-
auto tmp_fontWeight = map.find("fontWeight");
|
|
1590
|
-
if (tmp_fontWeight != map.end()) {
|
|
1591
|
-
fromRawValue(context, tmp_fontWeight->second, result.fontWeight);
|
|
1592
|
-
}
|
|
1593
1587
|
}
|
|
1594
1588
|
|
|
1595
1589
|
static inline std::string toString(const EnrichedMarkdownMarkdownStyleMathStruct &value) {
|
|
@@ -1604,7 +1598,6 @@ static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleMathSt
|
|
|
1604
1598
|
|
|
1605
1599
|
struct EnrichedMarkdownMarkdownStyleInlineMathStruct {
|
|
1606
1600
|
SharedColor color{};
|
|
1607
|
-
std::string fontWeight{};
|
|
1608
1601
|
|
|
1609
1602
|
|
|
1610
1603
|
#ifdef RN_SERIALIZABLE_STATE
|
|
@@ -1613,7 +1606,6 @@ struct EnrichedMarkdownMarkdownStyleInlineMathStruct {
|
|
|
1613
1606
|
folly::dynamic toDynamic() const {
|
|
1614
1607
|
folly::dynamic result = folly::dynamic::object();
|
|
1615
1608
|
result["color"] = ::facebook::react::toDynamic(color);
|
|
1616
|
-
result["fontWeight"] = fontWeight;
|
|
1617
1609
|
return result;
|
|
1618
1610
|
}
|
|
1619
1611
|
#endif
|
|
@@ -1626,10 +1618,6 @@ static inline void fromRawValue(const PropsParserContext& context, const RawValu
|
|
|
1626
1618
|
if (tmp_color != map.end()) {
|
|
1627
1619
|
fromRawValue(context, tmp_color->second, result.color);
|
|
1628
1620
|
}
|
|
1629
|
-
auto tmp_fontWeight = map.find("fontWeight");
|
|
1630
|
-
if (tmp_fontWeight != map.end()) {
|
|
1631
|
-
fromRawValue(context, tmp_fontWeight->second, result.fontWeight);
|
|
1632
|
-
}
|
|
1633
1621
|
}
|
|
1634
1622
|
|
|
1635
1623
|
static inline std::string toString(const EnrichedMarkdownMarkdownStyleInlineMathStruct &value) {
|
|
@@ -2223,6 +2211,11 @@ static inline void fromRawValue(const PropsParserContext& context, const RawValu
|
|
|
2223
2211
|
struct EnrichedMarkdownSelectionMenuConfigStruct {
|
|
2224
2212
|
bool copyAsMarkdown{false};
|
|
2225
2213
|
bool copyImageUrl{false};
|
|
2214
|
+
std::string copyLabel{};
|
|
2215
|
+
std::string copyAsMarkdownLabel{};
|
|
2216
|
+
std::string copyImageUrlLabel{};
|
|
2217
|
+
std::string copyImageUrlsLabel{};
|
|
2218
|
+
std::vector<std::string> copyImageUrlPluralTemplates{};
|
|
2226
2219
|
|
|
2227
2220
|
|
|
2228
2221
|
#ifdef RN_SERIALIZABLE_STATE
|
|
@@ -2232,6 +2225,11 @@ struct EnrichedMarkdownSelectionMenuConfigStruct {
|
|
|
2232
2225
|
folly::dynamic result = folly::dynamic::object();
|
|
2233
2226
|
result["copyAsMarkdown"] = copyAsMarkdown;
|
|
2234
2227
|
result["copyImageUrl"] = copyImageUrl;
|
|
2228
|
+
result["copyLabel"] = copyLabel;
|
|
2229
|
+
result["copyAsMarkdownLabel"] = copyAsMarkdownLabel;
|
|
2230
|
+
result["copyImageUrlLabel"] = copyImageUrlLabel;
|
|
2231
|
+
result["copyImageUrlsLabel"] = copyImageUrlsLabel;
|
|
2232
|
+
result["copyImageUrlPluralTemplates"] = ::facebook::react::toDynamic(copyImageUrlPluralTemplates);
|
|
2235
2233
|
return result;
|
|
2236
2234
|
}
|
|
2237
2235
|
#endif
|
|
@@ -2248,6 +2246,26 @@ static inline void fromRawValue(const PropsParserContext& context, const RawValu
|
|
|
2248
2246
|
if (tmp_copyImageUrl != map.end()) {
|
|
2249
2247
|
fromRawValue(context, tmp_copyImageUrl->second, result.copyImageUrl);
|
|
2250
2248
|
}
|
|
2249
|
+
auto tmp_copyLabel = map.find("copyLabel");
|
|
2250
|
+
if (tmp_copyLabel != map.end()) {
|
|
2251
|
+
fromRawValue(context, tmp_copyLabel->second, result.copyLabel);
|
|
2252
|
+
}
|
|
2253
|
+
auto tmp_copyAsMarkdownLabel = map.find("copyAsMarkdownLabel");
|
|
2254
|
+
if (tmp_copyAsMarkdownLabel != map.end()) {
|
|
2255
|
+
fromRawValue(context, tmp_copyAsMarkdownLabel->second, result.copyAsMarkdownLabel);
|
|
2256
|
+
}
|
|
2257
|
+
auto tmp_copyImageUrlLabel = map.find("copyImageUrlLabel");
|
|
2258
|
+
if (tmp_copyImageUrlLabel != map.end()) {
|
|
2259
|
+
fromRawValue(context, tmp_copyImageUrlLabel->second, result.copyImageUrlLabel);
|
|
2260
|
+
}
|
|
2261
|
+
auto tmp_copyImageUrlsLabel = map.find("copyImageUrlsLabel");
|
|
2262
|
+
if (tmp_copyImageUrlsLabel != map.end()) {
|
|
2263
|
+
fromRawValue(context, tmp_copyImageUrlsLabel->second, result.copyImageUrlsLabel);
|
|
2264
|
+
}
|
|
2265
|
+
auto tmp_copyImageUrlPluralTemplates = map.find("copyImageUrlPluralTemplates");
|
|
2266
|
+
if (tmp_copyImageUrlPluralTemplates != map.end()) {
|
|
2267
|
+
fromRawValue(context, tmp_copyImageUrlPluralTemplates->second, result.copyImageUrlPluralTemplates);
|
|
2268
|
+
}
|
|
2251
2269
|
}
|
|
2252
2270
|
|
|
2253
2271
|
static inline std::string toString(const EnrichedMarkdownSelectionMenuConfigStruct &value) {
|
|
@@ -2259,6 +2277,270 @@ static inline folly::dynamic toDynamic(const EnrichedMarkdownSelectionMenuConfig
|
|
|
2259
2277
|
return value.toDynamic();
|
|
2260
2278
|
}
|
|
2261
2279
|
#endif
|
|
2280
|
+
|
|
2281
|
+
struct EnrichedMarkdownAccessibilityLabelsListStruct {
|
|
2282
|
+
std::string bulletPoint{};
|
|
2283
|
+
std::string nestedBulletPoint{};
|
|
2284
|
+
std::string orderedItem{};
|
|
2285
|
+
std::string nestedOrderedItem{};
|
|
2286
|
+
|
|
2287
|
+
|
|
2288
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
2289
|
+
bool operator==(const EnrichedMarkdownAccessibilityLabelsListStruct&) const = default;
|
|
2290
|
+
|
|
2291
|
+
folly::dynamic toDynamic() const {
|
|
2292
|
+
folly::dynamic result = folly::dynamic::object();
|
|
2293
|
+
result["bulletPoint"] = bulletPoint;
|
|
2294
|
+
result["nestedBulletPoint"] = nestedBulletPoint;
|
|
2295
|
+
result["orderedItem"] = orderedItem;
|
|
2296
|
+
result["nestedOrderedItem"] = nestedOrderedItem;
|
|
2297
|
+
return result;
|
|
2298
|
+
}
|
|
2299
|
+
#endif
|
|
2300
|
+
};
|
|
2301
|
+
|
|
2302
|
+
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownAccessibilityLabelsListStruct &result) {
|
|
2303
|
+
auto map = (std::unordered_map<std::string, RawValue>)value;
|
|
2304
|
+
|
|
2305
|
+
auto tmp_bulletPoint = map.find("bulletPoint");
|
|
2306
|
+
if (tmp_bulletPoint != map.end()) {
|
|
2307
|
+
fromRawValue(context, tmp_bulletPoint->second, result.bulletPoint);
|
|
2308
|
+
}
|
|
2309
|
+
auto tmp_nestedBulletPoint = map.find("nestedBulletPoint");
|
|
2310
|
+
if (tmp_nestedBulletPoint != map.end()) {
|
|
2311
|
+
fromRawValue(context, tmp_nestedBulletPoint->second, result.nestedBulletPoint);
|
|
2312
|
+
}
|
|
2313
|
+
auto tmp_orderedItem = map.find("orderedItem");
|
|
2314
|
+
if (tmp_orderedItem != map.end()) {
|
|
2315
|
+
fromRawValue(context, tmp_orderedItem->second, result.orderedItem);
|
|
2316
|
+
}
|
|
2317
|
+
auto tmp_nestedOrderedItem = map.find("nestedOrderedItem");
|
|
2318
|
+
if (tmp_nestedOrderedItem != map.end()) {
|
|
2319
|
+
fromRawValue(context, tmp_nestedOrderedItem->second, result.nestedOrderedItem);
|
|
2320
|
+
}
|
|
2321
|
+
}
|
|
2322
|
+
|
|
2323
|
+
static inline std::string toString(const EnrichedMarkdownAccessibilityLabelsListStruct &value) {
|
|
2324
|
+
return "[Object EnrichedMarkdownAccessibilityLabelsListStruct]";
|
|
2325
|
+
}
|
|
2326
|
+
|
|
2327
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
2328
|
+
static inline folly::dynamic toDynamic(const EnrichedMarkdownAccessibilityLabelsListStruct &value) {
|
|
2329
|
+
return value.toDynamic();
|
|
2330
|
+
}
|
|
2331
|
+
#endif
|
|
2332
|
+
|
|
2333
|
+
struct EnrichedMarkdownAccessibilityLabelsBlockquoteStruct {
|
|
2334
|
+
std::string quote{};
|
|
2335
|
+
std::string nestedQuote{};
|
|
2336
|
+
|
|
2337
|
+
|
|
2338
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
2339
|
+
bool operator==(const EnrichedMarkdownAccessibilityLabelsBlockquoteStruct&) const = default;
|
|
2340
|
+
|
|
2341
|
+
folly::dynamic toDynamic() const {
|
|
2342
|
+
folly::dynamic result = folly::dynamic::object();
|
|
2343
|
+
result["quote"] = quote;
|
|
2344
|
+
result["nestedQuote"] = nestedQuote;
|
|
2345
|
+
return result;
|
|
2346
|
+
}
|
|
2347
|
+
#endif
|
|
2348
|
+
};
|
|
2349
|
+
|
|
2350
|
+
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownAccessibilityLabelsBlockquoteStruct &result) {
|
|
2351
|
+
auto map = (std::unordered_map<std::string, RawValue>)value;
|
|
2352
|
+
|
|
2353
|
+
auto tmp_quote = map.find("quote");
|
|
2354
|
+
if (tmp_quote != map.end()) {
|
|
2355
|
+
fromRawValue(context, tmp_quote->second, result.quote);
|
|
2356
|
+
}
|
|
2357
|
+
auto tmp_nestedQuote = map.find("nestedQuote");
|
|
2358
|
+
if (tmp_nestedQuote != map.end()) {
|
|
2359
|
+
fromRawValue(context, tmp_nestedQuote->second, result.nestedQuote);
|
|
2360
|
+
}
|
|
2361
|
+
}
|
|
2362
|
+
|
|
2363
|
+
static inline std::string toString(const EnrichedMarkdownAccessibilityLabelsBlockquoteStruct &value) {
|
|
2364
|
+
return "[Object EnrichedMarkdownAccessibilityLabelsBlockquoteStruct]";
|
|
2365
|
+
}
|
|
2366
|
+
|
|
2367
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
2368
|
+
static inline folly::dynamic toDynamic(const EnrichedMarkdownAccessibilityLabelsBlockquoteStruct &value) {
|
|
2369
|
+
return value.toDynamic();
|
|
2370
|
+
}
|
|
2371
|
+
#endif
|
|
2372
|
+
|
|
2373
|
+
struct EnrichedMarkdownAccessibilityLabelsTableStruct {
|
|
2374
|
+
std::string row{};
|
|
2375
|
+
|
|
2376
|
+
|
|
2377
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
2378
|
+
bool operator==(const EnrichedMarkdownAccessibilityLabelsTableStruct&) const = default;
|
|
2379
|
+
|
|
2380
|
+
folly::dynamic toDynamic() const {
|
|
2381
|
+
folly::dynamic result = folly::dynamic::object();
|
|
2382
|
+
result["row"] = row;
|
|
2383
|
+
return result;
|
|
2384
|
+
}
|
|
2385
|
+
#endif
|
|
2386
|
+
};
|
|
2387
|
+
|
|
2388
|
+
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownAccessibilityLabelsTableStruct &result) {
|
|
2389
|
+
auto map = (std::unordered_map<std::string, RawValue>)value;
|
|
2390
|
+
|
|
2391
|
+
auto tmp_row = map.find("row");
|
|
2392
|
+
if (tmp_row != map.end()) {
|
|
2393
|
+
fromRawValue(context, tmp_row->second, result.row);
|
|
2394
|
+
}
|
|
2395
|
+
}
|
|
2396
|
+
|
|
2397
|
+
static inline std::string toString(const EnrichedMarkdownAccessibilityLabelsTableStruct &value) {
|
|
2398
|
+
return "[Object EnrichedMarkdownAccessibilityLabelsTableStruct]";
|
|
2399
|
+
}
|
|
2400
|
+
|
|
2401
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
2402
|
+
static inline folly::dynamic toDynamic(const EnrichedMarkdownAccessibilityLabelsTableStruct &value) {
|
|
2403
|
+
return value.toDynamic();
|
|
2404
|
+
}
|
|
2405
|
+
#endif
|
|
2406
|
+
|
|
2407
|
+
struct EnrichedMarkdownAccessibilityLabelsMathStruct {
|
|
2408
|
+
std::string equation{};
|
|
2409
|
+
|
|
2410
|
+
|
|
2411
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
2412
|
+
bool operator==(const EnrichedMarkdownAccessibilityLabelsMathStruct&) const = default;
|
|
2413
|
+
|
|
2414
|
+
folly::dynamic toDynamic() const {
|
|
2415
|
+
folly::dynamic result = folly::dynamic::object();
|
|
2416
|
+
result["equation"] = equation;
|
|
2417
|
+
return result;
|
|
2418
|
+
}
|
|
2419
|
+
#endif
|
|
2420
|
+
};
|
|
2421
|
+
|
|
2422
|
+
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownAccessibilityLabelsMathStruct &result) {
|
|
2423
|
+
auto map = (std::unordered_map<std::string, RawValue>)value;
|
|
2424
|
+
|
|
2425
|
+
auto tmp_equation = map.find("equation");
|
|
2426
|
+
if (tmp_equation != map.end()) {
|
|
2427
|
+
fromRawValue(context, tmp_equation->second, result.equation);
|
|
2428
|
+
}
|
|
2429
|
+
}
|
|
2430
|
+
|
|
2431
|
+
static inline std::string toString(const EnrichedMarkdownAccessibilityLabelsMathStruct &value) {
|
|
2432
|
+
return "[Object EnrichedMarkdownAccessibilityLabelsMathStruct]";
|
|
2433
|
+
}
|
|
2434
|
+
|
|
2435
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
2436
|
+
static inline folly::dynamic toDynamic(const EnrichedMarkdownAccessibilityLabelsMathStruct &value) {
|
|
2437
|
+
return value.toDynamic();
|
|
2438
|
+
}
|
|
2439
|
+
#endif
|
|
2440
|
+
|
|
2441
|
+
struct EnrichedMarkdownAccessibilityLabelsRotorStruct {
|
|
2442
|
+
std::string headings{};
|
|
2443
|
+
std::string links{};
|
|
2444
|
+
std::string images{};
|
|
2445
|
+
|
|
2446
|
+
|
|
2447
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
2448
|
+
bool operator==(const EnrichedMarkdownAccessibilityLabelsRotorStruct&) const = default;
|
|
2449
|
+
|
|
2450
|
+
folly::dynamic toDynamic() const {
|
|
2451
|
+
folly::dynamic result = folly::dynamic::object();
|
|
2452
|
+
result["headings"] = headings;
|
|
2453
|
+
result["links"] = links;
|
|
2454
|
+
result["images"] = images;
|
|
2455
|
+
return result;
|
|
2456
|
+
}
|
|
2457
|
+
#endif
|
|
2458
|
+
};
|
|
2459
|
+
|
|
2460
|
+
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownAccessibilityLabelsRotorStruct &result) {
|
|
2461
|
+
auto map = (std::unordered_map<std::string, RawValue>)value;
|
|
2462
|
+
|
|
2463
|
+
auto tmp_headings = map.find("headings");
|
|
2464
|
+
if (tmp_headings != map.end()) {
|
|
2465
|
+
fromRawValue(context, tmp_headings->second, result.headings);
|
|
2466
|
+
}
|
|
2467
|
+
auto tmp_links = map.find("links");
|
|
2468
|
+
if (tmp_links != map.end()) {
|
|
2469
|
+
fromRawValue(context, tmp_links->second, result.links);
|
|
2470
|
+
}
|
|
2471
|
+
auto tmp_images = map.find("images");
|
|
2472
|
+
if (tmp_images != map.end()) {
|
|
2473
|
+
fromRawValue(context, tmp_images->second, result.images);
|
|
2474
|
+
}
|
|
2475
|
+
}
|
|
2476
|
+
|
|
2477
|
+
static inline std::string toString(const EnrichedMarkdownAccessibilityLabelsRotorStruct &value) {
|
|
2478
|
+
return "[Object EnrichedMarkdownAccessibilityLabelsRotorStruct]";
|
|
2479
|
+
}
|
|
2480
|
+
|
|
2481
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
2482
|
+
static inline folly::dynamic toDynamic(const EnrichedMarkdownAccessibilityLabelsRotorStruct &value) {
|
|
2483
|
+
return value.toDynamic();
|
|
2484
|
+
}
|
|
2485
|
+
#endif
|
|
2486
|
+
|
|
2487
|
+
struct EnrichedMarkdownAccessibilityLabelsStruct {
|
|
2488
|
+
EnrichedMarkdownAccessibilityLabelsListStruct list{};
|
|
2489
|
+
EnrichedMarkdownAccessibilityLabelsBlockquoteStruct blockquote{};
|
|
2490
|
+
EnrichedMarkdownAccessibilityLabelsTableStruct table{};
|
|
2491
|
+
EnrichedMarkdownAccessibilityLabelsMathStruct math{};
|
|
2492
|
+
EnrichedMarkdownAccessibilityLabelsRotorStruct rotor{};
|
|
2493
|
+
|
|
2494
|
+
|
|
2495
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
2496
|
+
bool operator==(const EnrichedMarkdownAccessibilityLabelsStruct&) const = default;
|
|
2497
|
+
|
|
2498
|
+
folly::dynamic toDynamic() const {
|
|
2499
|
+
folly::dynamic result = folly::dynamic::object();
|
|
2500
|
+
result["list"] = ::facebook::react::toDynamic(list);
|
|
2501
|
+
result["blockquote"] = ::facebook::react::toDynamic(blockquote);
|
|
2502
|
+
result["table"] = ::facebook::react::toDynamic(table);
|
|
2503
|
+
result["math"] = ::facebook::react::toDynamic(math);
|
|
2504
|
+
result["rotor"] = ::facebook::react::toDynamic(rotor);
|
|
2505
|
+
return result;
|
|
2506
|
+
}
|
|
2507
|
+
#endif
|
|
2508
|
+
};
|
|
2509
|
+
|
|
2510
|
+
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownAccessibilityLabelsStruct &result) {
|
|
2511
|
+
auto map = (std::unordered_map<std::string, RawValue>)value;
|
|
2512
|
+
|
|
2513
|
+
auto tmp_list = map.find("list");
|
|
2514
|
+
if (tmp_list != map.end()) {
|
|
2515
|
+
fromRawValue(context, tmp_list->second, result.list);
|
|
2516
|
+
}
|
|
2517
|
+
auto tmp_blockquote = map.find("blockquote");
|
|
2518
|
+
if (tmp_blockquote != map.end()) {
|
|
2519
|
+
fromRawValue(context, tmp_blockquote->second, result.blockquote);
|
|
2520
|
+
}
|
|
2521
|
+
auto tmp_table = map.find("table");
|
|
2522
|
+
if (tmp_table != map.end()) {
|
|
2523
|
+
fromRawValue(context, tmp_table->second, result.table);
|
|
2524
|
+
}
|
|
2525
|
+
auto tmp_math = map.find("math");
|
|
2526
|
+
if (tmp_math != map.end()) {
|
|
2527
|
+
fromRawValue(context, tmp_math->second, result.math);
|
|
2528
|
+
}
|
|
2529
|
+
auto tmp_rotor = map.find("rotor");
|
|
2530
|
+
if (tmp_rotor != map.end()) {
|
|
2531
|
+
fromRawValue(context, tmp_rotor->second, result.rotor);
|
|
2532
|
+
}
|
|
2533
|
+
}
|
|
2534
|
+
|
|
2535
|
+
static inline std::string toString(const EnrichedMarkdownAccessibilityLabelsStruct &value) {
|
|
2536
|
+
return "[Object EnrichedMarkdownAccessibilityLabelsStruct]";
|
|
2537
|
+
}
|
|
2538
|
+
|
|
2539
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
2540
|
+
static inline folly::dynamic toDynamic(const EnrichedMarkdownAccessibilityLabelsStruct &value) {
|
|
2541
|
+
return value.toDynamic();
|
|
2542
|
+
}
|
|
2543
|
+
#endif
|
|
2262
2544
|
class EnrichedMarkdownProps final : public ViewProps {
|
|
2263
2545
|
public:
|
|
2264
2546
|
EnrichedMarkdownProps() = default;
|
|
@@ -2281,6 +2563,7 @@ class EnrichedMarkdownProps final : public ViewProps {
|
|
|
2281
2563
|
std::string spoilerOverlay{std::string{"particles"}};
|
|
2282
2564
|
std::vector<EnrichedMarkdownContextMenuItemsStruct> contextMenuItems{};
|
|
2283
2565
|
EnrichedMarkdownSelectionMenuConfigStruct selectionMenuConfig{};
|
|
2566
|
+
EnrichedMarkdownAccessibilityLabelsStruct accessibilityLabels{};
|
|
2284
2567
|
std::string textBreakStrategy{std::string{"highQuality"}};
|
|
2285
2568
|
std::string lineBreakStrategyIOS{std::string{"none"}};
|
|
2286
2569
|
std::string writingDirection{std::string{"first-strong"}};
|
|
@@ -2521,7 +2804,6 @@ struct EnrichedMarkdownTextInputMarkdownStyleMathStruct {
|
|
|
2521
2804
|
Float paddingVertical{0.0};
|
|
2522
2805
|
SharedColor selectedBackgroundColor{};
|
|
2523
2806
|
SharedColor selectedBorderColor{};
|
|
2524
|
-
std::string fontWeight{};
|
|
2525
2807
|
|
|
2526
2808
|
|
|
2527
2809
|
#ifdef RN_SERIALIZABLE_STATE
|
|
@@ -2539,7 +2821,6 @@ struct EnrichedMarkdownTextInputMarkdownStyleMathStruct {
|
|
|
2539
2821
|
result["paddingVertical"] = paddingVertical;
|
|
2540
2822
|
result["selectedBackgroundColor"] = ::facebook::react::toDynamic(selectedBackgroundColor);
|
|
2541
2823
|
result["selectedBorderColor"] = ::facebook::react::toDynamic(selectedBorderColor);
|
|
2542
|
-
result["fontWeight"] = fontWeight;
|
|
2543
2824
|
return result;
|
|
2544
2825
|
}
|
|
2545
2826
|
#endif
|
|
@@ -2588,10 +2869,6 @@ static inline void fromRawValue(const PropsParserContext& context, const RawValu
|
|
|
2588
2869
|
if (tmp_selectedBorderColor != map.end()) {
|
|
2589
2870
|
fromRawValue(context, tmp_selectedBorderColor->second, result.selectedBorderColor);
|
|
2590
2871
|
}
|
|
2591
|
-
auto tmp_fontWeight = map.find("fontWeight");
|
|
2592
|
-
if (tmp_fontWeight != map.end()) {
|
|
2593
|
-
fromRawValue(context, tmp_fontWeight->second, result.fontWeight);
|
|
2594
|
-
}
|
|
2595
2872
|
}
|
|
2596
2873
|
|
|
2597
2874
|
static inline std::string toString(const EnrichedMarkdownTextInputMarkdownStyleMathStruct &value) {
|
|
@@ -2615,7 +2892,6 @@ struct EnrichedMarkdownTextInputMarkdownStyleMathBlockStruct {
|
|
|
2615
2892
|
Float paddingVertical{0.0};
|
|
2616
2893
|
SharedColor selectedBackgroundColor{};
|
|
2617
2894
|
SharedColor selectedBorderColor{};
|
|
2618
|
-
std::string fontWeight{};
|
|
2619
2895
|
Float marginTop{0.0};
|
|
2620
2896
|
Float marginBottom{0.0};
|
|
2621
2897
|
std::string alignment{};
|
|
@@ -2636,7 +2912,6 @@ struct EnrichedMarkdownTextInputMarkdownStyleMathBlockStruct {
|
|
|
2636
2912
|
result["paddingVertical"] = paddingVertical;
|
|
2637
2913
|
result["selectedBackgroundColor"] = ::facebook::react::toDynamic(selectedBackgroundColor);
|
|
2638
2914
|
result["selectedBorderColor"] = ::facebook::react::toDynamic(selectedBorderColor);
|
|
2639
|
-
result["fontWeight"] = fontWeight;
|
|
2640
2915
|
result["marginTop"] = marginTop;
|
|
2641
2916
|
result["marginBottom"] = marginBottom;
|
|
2642
2917
|
result["alignment"] = alignment;
|
|
@@ -2688,10 +2963,6 @@ static inline void fromRawValue(const PropsParserContext& context, const RawValu
|
|
|
2688
2963
|
if (tmp_selectedBorderColor != map.end()) {
|
|
2689
2964
|
fromRawValue(context, tmp_selectedBorderColor->second, result.selectedBorderColor);
|
|
2690
2965
|
}
|
|
2691
|
-
auto tmp_fontWeight = map.find("fontWeight");
|
|
2692
|
-
if (tmp_fontWeight != map.end()) {
|
|
2693
|
-
fromRawValue(context, tmp_fontWeight->second, result.fontWeight);
|
|
2694
|
-
}
|
|
2695
2966
|
auto tmp_marginTop = map.find("marginTop");
|
|
2696
2967
|
if (tmp_marginTop != map.end()) {
|
|
2697
2968
|
fromRawValue(context, tmp_marginTop->second, result.marginTop);
|
|
@@ -2836,6 +3107,158 @@ static inline void fromRawValue(const PropsParserContext& context, const RawValu
|
|
|
2836
3107
|
}
|
|
2837
3108
|
|
|
2838
3109
|
|
|
3110
|
+
struct EnrichedMarkdownTextInputSelectionMenuConfigStruct {
|
|
3111
|
+
bool format{false};
|
|
3112
|
+
std::string formatLabel{};
|
|
3113
|
+
bool copyAsMarkdown{false};
|
|
3114
|
+
std::string copyAsMarkdownLabel{};
|
|
3115
|
+
|
|
3116
|
+
|
|
3117
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
3118
|
+
bool operator==(const EnrichedMarkdownTextInputSelectionMenuConfigStruct&) const = default;
|
|
3119
|
+
|
|
3120
|
+
folly::dynamic toDynamic() const {
|
|
3121
|
+
folly::dynamic result = folly::dynamic::object();
|
|
3122
|
+
result["format"] = format;
|
|
3123
|
+
result["formatLabel"] = formatLabel;
|
|
3124
|
+
result["copyAsMarkdown"] = copyAsMarkdown;
|
|
3125
|
+
result["copyAsMarkdownLabel"] = copyAsMarkdownLabel;
|
|
3126
|
+
return result;
|
|
3127
|
+
}
|
|
3128
|
+
#endif
|
|
3129
|
+
};
|
|
3130
|
+
|
|
3131
|
+
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextInputSelectionMenuConfigStruct &result) {
|
|
3132
|
+
auto map = (std::unordered_map<std::string, RawValue>)value;
|
|
3133
|
+
|
|
3134
|
+
auto tmp_format = map.find("format");
|
|
3135
|
+
if (tmp_format != map.end()) {
|
|
3136
|
+
fromRawValue(context, tmp_format->second, result.format);
|
|
3137
|
+
}
|
|
3138
|
+
auto tmp_formatLabel = map.find("formatLabel");
|
|
3139
|
+
if (tmp_formatLabel != map.end()) {
|
|
3140
|
+
fromRawValue(context, tmp_formatLabel->second, result.formatLabel);
|
|
3141
|
+
}
|
|
3142
|
+
auto tmp_copyAsMarkdown = map.find("copyAsMarkdown");
|
|
3143
|
+
if (tmp_copyAsMarkdown != map.end()) {
|
|
3144
|
+
fromRawValue(context, tmp_copyAsMarkdown->second, result.copyAsMarkdown);
|
|
3145
|
+
}
|
|
3146
|
+
auto tmp_copyAsMarkdownLabel = map.find("copyAsMarkdownLabel");
|
|
3147
|
+
if (tmp_copyAsMarkdownLabel != map.end()) {
|
|
3148
|
+
fromRawValue(context, tmp_copyAsMarkdownLabel->second, result.copyAsMarkdownLabel);
|
|
3149
|
+
}
|
|
3150
|
+
}
|
|
3151
|
+
|
|
3152
|
+
static inline std::string toString(const EnrichedMarkdownTextInputSelectionMenuConfigStruct &value) {
|
|
3153
|
+
return "[Object EnrichedMarkdownTextInputSelectionMenuConfigStruct]";
|
|
3154
|
+
}
|
|
3155
|
+
|
|
3156
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
3157
|
+
static inline folly::dynamic toDynamic(const EnrichedMarkdownTextInputSelectionMenuConfigStruct &value) {
|
|
3158
|
+
return value.toDynamic();
|
|
3159
|
+
}
|
|
3160
|
+
#endif
|
|
3161
|
+
|
|
3162
|
+
struct EnrichedMarkdownTextInputFormatMenuConfigStruct {
|
|
3163
|
+
bool bold{false};
|
|
3164
|
+
std::string boldLabel{};
|
|
3165
|
+
bool italic{false};
|
|
3166
|
+
std::string italicLabel{};
|
|
3167
|
+
bool underline{false};
|
|
3168
|
+
std::string underlineLabel{};
|
|
3169
|
+
bool strikethrough{false};
|
|
3170
|
+
std::string strikethroughLabel{};
|
|
3171
|
+
bool spoiler{false};
|
|
3172
|
+
std::string spoilerLabel{};
|
|
3173
|
+
bool link{false};
|
|
3174
|
+
std::string linkLabel{};
|
|
3175
|
+
|
|
3176
|
+
|
|
3177
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
3178
|
+
bool operator==(const EnrichedMarkdownTextInputFormatMenuConfigStruct&) const = default;
|
|
3179
|
+
|
|
3180
|
+
folly::dynamic toDynamic() const {
|
|
3181
|
+
folly::dynamic result = folly::dynamic::object();
|
|
3182
|
+
result["bold"] = bold;
|
|
3183
|
+
result["boldLabel"] = boldLabel;
|
|
3184
|
+
result["italic"] = italic;
|
|
3185
|
+
result["italicLabel"] = italicLabel;
|
|
3186
|
+
result["underline"] = underline;
|
|
3187
|
+
result["underlineLabel"] = underlineLabel;
|
|
3188
|
+
result["strikethrough"] = strikethrough;
|
|
3189
|
+
result["strikethroughLabel"] = strikethroughLabel;
|
|
3190
|
+
result["spoiler"] = spoiler;
|
|
3191
|
+
result["spoilerLabel"] = spoilerLabel;
|
|
3192
|
+
result["link"] = link;
|
|
3193
|
+
result["linkLabel"] = linkLabel;
|
|
3194
|
+
return result;
|
|
3195
|
+
}
|
|
3196
|
+
#endif
|
|
3197
|
+
};
|
|
3198
|
+
|
|
3199
|
+
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextInputFormatMenuConfigStruct &result) {
|
|
3200
|
+
auto map = (std::unordered_map<std::string, RawValue>)value;
|
|
3201
|
+
|
|
3202
|
+
auto tmp_bold = map.find("bold");
|
|
3203
|
+
if (tmp_bold != map.end()) {
|
|
3204
|
+
fromRawValue(context, tmp_bold->second, result.bold);
|
|
3205
|
+
}
|
|
3206
|
+
auto tmp_boldLabel = map.find("boldLabel");
|
|
3207
|
+
if (tmp_boldLabel != map.end()) {
|
|
3208
|
+
fromRawValue(context, tmp_boldLabel->second, result.boldLabel);
|
|
3209
|
+
}
|
|
3210
|
+
auto tmp_italic = map.find("italic");
|
|
3211
|
+
if (tmp_italic != map.end()) {
|
|
3212
|
+
fromRawValue(context, tmp_italic->second, result.italic);
|
|
3213
|
+
}
|
|
3214
|
+
auto tmp_italicLabel = map.find("italicLabel");
|
|
3215
|
+
if (tmp_italicLabel != map.end()) {
|
|
3216
|
+
fromRawValue(context, tmp_italicLabel->second, result.italicLabel);
|
|
3217
|
+
}
|
|
3218
|
+
auto tmp_underline = map.find("underline");
|
|
3219
|
+
if (tmp_underline != map.end()) {
|
|
3220
|
+
fromRawValue(context, tmp_underline->second, result.underline);
|
|
3221
|
+
}
|
|
3222
|
+
auto tmp_underlineLabel = map.find("underlineLabel");
|
|
3223
|
+
if (tmp_underlineLabel != map.end()) {
|
|
3224
|
+
fromRawValue(context, tmp_underlineLabel->second, result.underlineLabel);
|
|
3225
|
+
}
|
|
3226
|
+
auto tmp_strikethrough = map.find("strikethrough");
|
|
3227
|
+
if (tmp_strikethrough != map.end()) {
|
|
3228
|
+
fromRawValue(context, tmp_strikethrough->second, result.strikethrough);
|
|
3229
|
+
}
|
|
3230
|
+
auto tmp_strikethroughLabel = map.find("strikethroughLabel");
|
|
3231
|
+
if (tmp_strikethroughLabel != map.end()) {
|
|
3232
|
+
fromRawValue(context, tmp_strikethroughLabel->second, result.strikethroughLabel);
|
|
3233
|
+
}
|
|
3234
|
+
auto tmp_spoiler = map.find("spoiler");
|
|
3235
|
+
if (tmp_spoiler != map.end()) {
|
|
3236
|
+
fromRawValue(context, tmp_spoiler->second, result.spoiler);
|
|
3237
|
+
}
|
|
3238
|
+
auto tmp_spoilerLabel = map.find("spoilerLabel");
|
|
3239
|
+
if (tmp_spoilerLabel != map.end()) {
|
|
3240
|
+
fromRawValue(context, tmp_spoilerLabel->second, result.spoilerLabel);
|
|
3241
|
+
}
|
|
3242
|
+
auto tmp_link = map.find("link");
|
|
3243
|
+
if (tmp_link != map.end()) {
|
|
3244
|
+
fromRawValue(context, tmp_link->second, result.link);
|
|
3245
|
+
}
|
|
3246
|
+
auto tmp_linkLabel = map.find("linkLabel");
|
|
3247
|
+
if (tmp_linkLabel != map.end()) {
|
|
3248
|
+
fromRawValue(context, tmp_linkLabel->second, result.linkLabel);
|
|
3249
|
+
}
|
|
3250
|
+
}
|
|
3251
|
+
|
|
3252
|
+
static inline std::string toString(const EnrichedMarkdownTextInputFormatMenuConfigStruct &value) {
|
|
3253
|
+
return "[Object EnrichedMarkdownTextInputFormatMenuConfigStruct]";
|
|
3254
|
+
}
|
|
3255
|
+
|
|
3256
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
3257
|
+
static inline folly::dynamic toDynamic(const EnrichedMarkdownTextInputFormatMenuConfigStruct &value) {
|
|
3258
|
+
return value.toDynamic();
|
|
3259
|
+
}
|
|
3260
|
+
#endif
|
|
3261
|
+
|
|
2839
3262
|
struct EnrichedMarkdownTextInputLinkRegexStruct {
|
|
2840
3263
|
std::string pattern{};
|
|
2841
3264
|
bool caseInsensitive{false};
|
|
@@ -2918,6 +3341,8 @@ class EnrichedMarkdownTextInputProps final : public ViewProps {
|
|
|
2918
3341
|
std::string fontWeight{};
|
|
2919
3342
|
bool isOnChangeMarkdownSet{false};
|
|
2920
3343
|
std::vector<EnrichedMarkdownTextInputContextMenuItemsStruct> contextMenuItems{};
|
|
3344
|
+
EnrichedMarkdownTextInputSelectionMenuConfigStruct selectionMenuConfig{};
|
|
3345
|
+
EnrichedMarkdownTextInputFormatMenuConfigStruct formatMenuConfig{};
|
|
2921
3346
|
EnrichedMarkdownTextInputLinkRegexStruct linkRegex{};
|
|
2922
3347
|
std::vector<std::string> mentionIndicators{};
|
|
2923
3348
|
std::string writingDirection{std::string{"first-strong"}};
|
|
@@ -4447,7 +4872,6 @@ struct EnrichedMarkdownTextMarkdownStyleMathStruct {
|
|
|
4447
4872
|
Float marginTop{0.0};
|
|
4448
4873
|
Float marginBottom{0.0};
|
|
4449
4874
|
std::string textAlign{};
|
|
4450
|
-
std::string fontWeight{};
|
|
4451
4875
|
|
|
4452
4876
|
|
|
4453
4877
|
#ifdef RN_SERIALIZABLE_STATE
|
|
@@ -4462,7 +4886,6 @@ struct EnrichedMarkdownTextMarkdownStyleMathStruct {
|
|
|
4462
4886
|
result["marginTop"] = marginTop;
|
|
4463
4887
|
result["marginBottom"] = marginBottom;
|
|
4464
4888
|
result["textAlign"] = textAlign;
|
|
4465
|
-
result["fontWeight"] = fontWeight;
|
|
4466
4889
|
return result;
|
|
4467
4890
|
}
|
|
4468
4891
|
#endif
|
|
@@ -4499,10 +4922,6 @@ static inline void fromRawValue(const PropsParserContext& context, const RawValu
|
|
|
4499
4922
|
if (tmp_textAlign != map.end()) {
|
|
4500
4923
|
fromRawValue(context, tmp_textAlign->second, result.textAlign);
|
|
4501
4924
|
}
|
|
4502
|
-
auto tmp_fontWeight = map.find("fontWeight");
|
|
4503
|
-
if (tmp_fontWeight != map.end()) {
|
|
4504
|
-
fromRawValue(context, tmp_fontWeight->second, result.fontWeight);
|
|
4505
|
-
}
|
|
4506
4925
|
}
|
|
4507
4926
|
|
|
4508
4927
|
static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleMathStruct &value) {
|
|
@@ -4517,7 +4936,6 @@ static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleMa
|
|
|
4517
4936
|
|
|
4518
4937
|
struct EnrichedMarkdownTextMarkdownStyleInlineMathStruct {
|
|
4519
4938
|
SharedColor color{};
|
|
4520
|
-
std::string fontWeight{};
|
|
4521
4939
|
|
|
4522
4940
|
|
|
4523
4941
|
#ifdef RN_SERIALIZABLE_STATE
|
|
@@ -4526,7 +4944,6 @@ struct EnrichedMarkdownTextMarkdownStyleInlineMathStruct {
|
|
|
4526
4944
|
folly::dynamic toDynamic() const {
|
|
4527
4945
|
folly::dynamic result = folly::dynamic::object();
|
|
4528
4946
|
result["color"] = ::facebook::react::toDynamic(color);
|
|
4529
|
-
result["fontWeight"] = fontWeight;
|
|
4530
4947
|
return result;
|
|
4531
4948
|
}
|
|
4532
4949
|
#endif
|
|
@@ -4539,10 +4956,6 @@ static inline void fromRawValue(const PropsParserContext& context, const RawValu
|
|
|
4539
4956
|
if (tmp_color != map.end()) {
|
|
4540
4957
|
fromRawValue(context, tmp_color->second, result.color);
|
|
4541
4958
|
}
|
|
4542
|
-
auto tmp_fontWeight = map.find("fontWeight");
|
|
4543
|
-
if (tmp_fontWeight != map.end()) {
|
|
4544
|
-
fromRawValue(context, tmp_fontWeight->second, result.fontWeight);
|
|
4545
|
-
}
|
|
4546
4959
|
}
|
|
4547
4960
|
|
|
4548
4961
|
static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleInlineMathStruct &value) {
|
|
@@ -5136,6 +5549,11 @@ static inline void fromRawValue(const PropsParserContext& context, const RawValu
|
|
|
5136
5549
|
struct EnrichedMarkdownTextSelectionMenuConfigStruct {
|
|
5137
5550
|
bool copyAsMarkdown{false};
|
|
5138
5551
|
bool copyImageUrl{false};
|
|
5552
|
+
std::string copyLabel{};
|
|
5553
|
+
std::string copyAsMarkdownLabel{};
|
|
5554
|
+
std::string copyImageUrlLabel{};
|
|
5555
|
+
std::string copyImageUrlsLabel{};
|
|
5556
|
+
std::vector<std::string> copyImageUrlPluralTemplates{};
|
|
5139
5557
|
|
|
5140
5558
|
|
|
5141
5559
|
#ifdef RN_SERIALIZABLE_STATE
|
|
@@ -5145,6 +5563,11 @@ struct EnrichedMarkdownTextSelectionMenuConfigStruct {
|
|
|
5145
5563
|
folly::dynamic result = folly::dynamic::object();
|
|
5146
5564
|
result["copyAsMarkdown"] = copyAsMarkdown;
|
|
5147
5565
|
result["copyImageUrl"] = copyImageUrl;
|
|
5566
|
+
result["copyLabel"] = copyLabel;
|
|
5567
|
+
result["copyAsMarkdownLabel"] = copyAsMarkdownLabel;
|
|
5568
|
+
result["copyImageUrlLabel"] = copyImageUrlLabel;
|
|
5569
|
+
result["copyImageUrlsLabel"] = copyImageUrlsLabel;
|
|
5570
|
+
result["copyImageUrlPluralTemplates"] = ::facebook::react::toDynamic(copyImageUrlPluralTemplates);
|
|
5148
5571
|
return result;
|
|
5149
5572
|
}
|
|
5150
5573
|
#endif
|
|
@@ -5161,6 +5584,26 @@ static inline void fromRawValue(const PropsParserContext& context, const RawValu
|
|
|
5161
5584
|
if (tmp_copyImageUrl != map.end()) {
|
|
5162
5585
|
fromRawValue(context, tmp_copyImageUrl->second, result.copyImageUrl);
|
|
5163
5586
|
}
|
|
5587
|
+
auto tmp_copyLabel = map.find("copyLabel");
|
|
5588
|
+
if (tmp_copyLabel != map.end()) {
|
|
5589
|
+
fromRawValue(context, tmp_copyLabel->second, result.copyLabel);
|
|
5590
|
+
}
|
|
5591
|
+
auto tmp_copyAsMarkdownLabel = map.find("copyAsMarkdownLabel");
|
|
5592
|
+
if (tmp_copyAsMarkdownLabel != map.end()) {
|
|
5593
|
+
fromRawValue(context, tmp_copyAsMarkdownLabel->second, result.copyAsMarkdownLabel);
|
|
5594
|
+
}
|
|
5595
|
+
auto tmp_copyImageUrlLabel = map.find("copyImageUrlLabel");
|
|
5596
|
+
if (tmp_copyImageUrlLabel != map.end()) {
|
|
5597
|
+
fromRawValue(context, tmp_copyImageUrlLabel->second, result.copyImageUrlLabel);
|
|
5598
|
+
}
|
|
5599
|
+
auto tmp_copyImageUrlsLabel = map.find("copyImageUrlsLabel");
|
|
5600
|
+
if (tmp_copyImageUrlsLabel != map.end()) {
|
|
5601
|
+
fromRawValue(context, tmp_copyImageUrlsLabel->second, result.copyImageUrlsLabel);
|
|
5602
|
+
}
|
|
5603
|
+
auto tmp_copyImageUrlPluralTemplates = map.find("copyImageUrlPluralTemplates");
|
|
5604
|
+
if (tmp_copyImageUrlPluralTemplates != map.end()) {
|
|
5605
|
+
fromRawValue(context, tmp_copyImageUrlPluralTemplates->second, result.copyImageUrlPluralTemplates);
|
|
5606
|
+
}
|
|
5164
5607
|
}
|
|
5165
5608
|
|
|
5166
5609
|
static inline std::string toString(const EnrichedMarkdownTextSelectionMenuConfigStruct &value) {
|
|
@@ -5172,6 +5615,270 @@ static inline folly::dynamic toDynamic(const EnrichedMarkdownTextSelectionMenuCo
|
|
|
5172
5615
|
return value.toDynamic();
|
|
5173
5616
|
}
|
|
5174
5617
|
#endif
|
|
5618
|
+
|
|
5619
|
+
struct EnrichedMarkdownTextAccessibilityLabelsListStruct {
|
|
5620
|
+
std::string bulletPoint{};
|
|
5621
|
+
std::string nestedBulletPoint{};
|
|
5622
|
+
std::string orderedItem{};
|
|
5623
|
+
std::string nestedOrderedItem{};
|
|
5624
|
+
|
|
5625
|
+
|
|
5626
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
5627
|
+
bool operator==(const EnrichedMarkdownTextAccessibilityLabelsListStruct&) const = default;
|
|
5628
|
+
|
|
5629
|
+
folly::dynamic toDynamic() const {
|
|
5630
|
+
folly::dynamic result = folly::dynamic::object();
|
|
5631
|
+
result["bulletPoint"] = bulletPoint;
|
|
5632
|
+
result["nestedBulletPoint"] = nestedBulletPoint;
|
|
5633
|
+
result["orderedItem"] = orderedItem;
|
|
5634
|
+
result["nestedOrderedItem"] = nestedOrderedItem;
|
|
5635
|
+
return result;
|
|
5636
|
+
}
|
|
5637
|
+
#endif
|
|
5638
|
+
};
|
|
5639
|
+
|
|
5640
|
+
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextAccessibilityLabelsListStruct &result) {
|
|
5641
|
+
auto map = (std::unordered_map<std::string, RawValue>)value;
|
|
5642
|
+
|
|
5643
|
+
auto tmp_bulletPoint = map.find("bulletPoint");
|
|
5644
|
+
if (tmp_bulletPoint != map.end()) {
|
|
5645
|
+
fromRawValue(context, tmp_bulletPoint->second, result.bulletPoint);
|
|
5646
|
+
}
|
|
5647
|
+
auto tmp_nestedBulletPoint = map.find("nestedBulletPoint");
|
|
5648
|
+
if (tmp_nestedBulletPoint != map.end()) {
|
|
5649
|
+
fromRawValue(context, tmp_nestedBulletPoint->second, result.nestedBulletPoint);
|
|
5650
|
+
}
|
|
5651
|
+
auto tmp_orderedItem = map.find("orderedItem");
|
|
5652
|
+
if (tmp_orderedItem != map.end()) {
|
|
5653
|
+
fromRawValue(context, tmp_orderedItem->second, result.orderedItem);
|
|
5654
|
+
}
|
|
5655
|
+
auto tmp_nestedOrderedItem = map.find("nestedOrderedItem");
|
|
5656
|
+
if (tmp_nestedOrderedItem != map.end()) {
|
|
5657
|
+
fromRawValue(context, tmp_nestedOrderedItem->second, result.nestedOrderedItem);
|
|
5658
|
+
}
|
|
5659
|
+
}
|
|
5660
|
+
|
|
5661
|
+
static inline std::string toString(const EnrichedMarkdownTextAccessibilityLabelsListStruct &value) {
|
|
5662
|
+
return "[Object EnrichedMarkdownTextAccessibilityLabelsListStruct]";
|
|
5663
|
+
}
|
|
5664
|
+
|
|
5665
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
5666
|
+
static inline folly::dynamic toDynamic(const EnrichedMarkdownTextAccessibilityLabelsListStruct &value) {
|
|
5667
|
+
return value.toDynamic();
|
|
5668
|
+
}
|
|
5669
|
+
#endif
|
|
5670
|
+
|
|
5671
|
+
struct EnrichedMarkdownTextAccessibilityLabelsBlockquoteStruct {
|
|
5672
|
+
std::string quote{};
|
|
5673
|
+
std::string nestedQuote{};
|
|
5674
|
+
|
|
5675
|
+
|
|
5676
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
5677
|
+
bool operator==(const EnrichedMarkdownTextAccessibilityLabelsBlockquoteStruct&) const = default;
|
|
5678
|
+
|
|
5679
|
+
folly::dynamic toDynamic() const {
|
|
5680
|
+
folly::dynamic result = folly::dynamic::object();
|
|
5681
|
+
result["quote"] = quote;
|
|
5682
|
+
result["nestedQuote"] = nestedQuote;
|
|
5683
|
+
return result;
|
|
5684
|
+
}
|
|
5685
|
+
#endif
|
|
5686
|
+
};
|
|
5687
|
+
|
|
5688
|
+
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextAccessibilityLabelsBlockquoteStruct &result) {
|
|
5689
|
+
auto map = (std::unordered_map<std::string, RawValue>)value;
|
|
5690
|
+
|
|
5691
|
+
auto tmp_quote = map.find("quote");
|
|
5692
|
+
if (tmp_quote != map.end()) {
|
|
5693
|
+
fromRawValue(context, tmp_quote->second, result.quote);
|
|
5694
|
+
}
|
|
5695
|
+
auto tmp_nestedQuote = map.find("nestedQuote");
|
|
5696
|
+
if (tmp_nestedQuote != map.end()) {
|
|
5697
|
+
fromRawValue(context, tmp_nestedQuote->second, result.nestedQuote);
|
|
5698
|
+
}
|
|
5699
|
+
}
|
|
5700
|
+
|
|
5701
|
+
static inline std::string toString(const EnrichedMarkdownTextAccessibilityLabelsBlockquoteStruct &value) {
|
|
5702
|
+
return "[Object EnrichedMarkdownTextAccessibilityLabelsBlockquoteStruct]";
|
|
5703
|
+
}
|
|
5704
|
+
|
|
5705
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
5706
|
+
static inline folly::dynamic toDynamic(const EnrichedMarkdownTextAccessibilityLabelsBlockquoteStruct &value) {
|
|
5707
|
+
return value.toDynamic();
|
|
5708
|
+
}
|
|
5709
|
+
#endif
|
|
5710
|
+
|
|
5711
|
+
struct EnrichedMarkdownTextAccessibilityLabelsTableStruct {
|
|
5712
|
+
std::string row{};
|
|
5713
|
+
|
|
5714
|
+
|
|
5715
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
5716
|
+
bool operator==(const EnrichedMarkdownTextAccessibilityLabelsTableStruct&) const = default;
|
|
5717
|
+
|
|
5718
|
+
folly::dynamic toDynamic() const {
|
|
5719
|
+
folly::dynamic result = folly::dynamic::object();
|
|
5720
|
+
result["row"] = row;
|
|
5721
|
+
return result;
|
|
5722
|
+
}
|
|
5723
|
+
#endif
|
|
5724
|
+
};
|
|
5725
|
+
|
|
5726
|
+
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextAccessibilityLabelsTableStruct &result) {
|
|
5727
|
+
auto map = (std::unordered_map<std::string, RawValue>)value;
|
|
5728
|
+
|
|
5729
|
+
auto tmp_row = map.find("row");
|
|
5730
|
+
if (tmp_row != map.end()) {
|
|
5731
|
+
fromRawValue(context, tmp_row->second, result.row);
|
|
5732
|
+
}
|
|
5733
|
+
}
|
|
5734
|
+
|
|
5735
|
+
static inline std::string toString(const EnrichedMarkdownTextAccessibilityLabelsTableStruct &value) {
|
|
5736
|
+
return "[Object EnrichedMarkdownTextAccessibilityLabelsTableStruct]";
|
|
5737
|
+
}
|
|
5738
|
+
|
|
5739
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
5740
|
+
static inline folly::dynamic toDynamic(const EnrichedMarkdownTextAccessibilityLabelsTableStruct &value) {
|
|
5741
|
+
return value.toDynamic();
|
|
5742
|
+
}
|
|
5743
|
+
#endif
|
|
5744
|
+
|
|
5745
|
+
struct EnrichedMarkdownTextAccessibilityLabelsMathStruct {
|
|
5746
|
+
std::string equation{};
|
|
5747
|
+
|
|
5748
|
+
|
|
5749
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
5750
|
+
bool operator==(const EnrichedMarkdownTextAccessibilityLabelsMathStruct&) const = default;
|
|
5751
|
+
|
|
5752
|
+
folly::dynamic toDynamic() const {
|
|
5753
|
+
folly::dynamic result = folly::dynamic::object();
|
|
5754
|
+
result["equation"] = equation;
|
|
5755
|
+
return result;
|
|
5756
|
+
}
|
|
5757
|
+
#endif
|
|
5758
|
+
};
|
|
5759
|
+
|
|
5760
|
+
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextAccessibilityLabelsMathStruct &result) {
|
|
5761
|
+
auto map = (std::unordered_map<std::string, RawValue>)value;
|
|
5762
|
+
|
|
5763
|
+
auto tmp_equation = map.find("equation");
|
|
5764
|
+
if (tmp_equation != map.end()) {
|
|
5765
|
+
fromRawValue(context, tmp_equation->second, result.equation);
|
|
5766
|
+
}
|
|
5767
|
+
}
|
|
5768
|
+
|
|
5769
|
+
static inline std::string toString(const EnrichedMarkdownTextAccessibilityLabelsMathStruct &value) {
|
|
5770
|
+
return "[Object EnrichedMarkdownTextAccessibilityLabelsMathStruct]";
|
|
5771
|
+
}
|
|
5772
|
+
|
|
5773
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
5774
|
+
static inline folly::dynamic toDynamic(const EnrichedMarkdownTextAccessibilityLabelsMathStruct &value) {
|
|
5775
|
+
return value.toDynamic();
|
|
5776
|
+
}
|
|
5777
|
+
#endif
|
|
5778
|
+
|
|
5779
|
+
struct EnrichedMarkdownTextAccessibilityLabelsRotorStruct {
|
|
5780
|
+
std::string headings{};
|
|
5781
|
+
std::string links{};
|
|
5782
|
+
std::string images{};
|
|
5783
|
+
|
|
5784
|
+
|
|
5785
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
5786
|
+
bool operator==(const EnrichedMarkdownTextAccessibilityLabelsRotorStruct&) const = default;
|
|
5787
|
+
|
|
5788
|
+
folly::dynamic toDynamic() const {
|
|
5789
|
+
folly::dynamic result = folly::dynamic::object();
|
|
5790
|
+
result["headings"] = headings;
|
|
5791
|
+
result["links"] = links;
|
|
5792
|
+
result["images"] = images;
|
|
5793
|
+
return result;
|
|
5794
|
+
}
|
|
5795
|
+
#endif
|
|
5796
|
+
};
|
|
5797
|
+
|
|
5798
|
+
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextAccessibilityLabelsRotorStruct &result) {
|
|
5799
|
+
auto map = (std::unordered_map<std::string, RawValue>)value;
|
|
5800
|
+
|
|
5801
|
+
auto tmp_headings = map.find("headings");
|
|
5802
|
+
if (tmp_headings != map.end()) {
|
|
5803
|
+
fromRawValue(context, tmp_headings->second, result.headings);
|
|
5804
|
+
}
|
|
5805
|
+
auto tmp_links = map.find("links");
|
|
5806
|
+
if (tmp_links != map.end()) {
|
|
5807
|
+
fromRawValue(context, tmp_links->second, result.links);
|
|
5808
|
+
}
|
|
5809
|
+
auto tmp_images = map.find("images");
|
|
5810
|
+
if (tmp_images != map.end()) {
|
|
5811
|
+
fromRawValue(context, tmp_images->second, result.images);
|
|
5812
|
+
}
|
|
5813
|
+
}
|
|
5814
|
+
|
|
5815
|
+
static inline std::string toString(const EnrichedMarkdownTextAccessibilityLabelsRotorStruct &value) {
|
|
5816
|
+
return "[Object EnrichedMarkdownTextAccessibilityLabelsRotorStruct]";
|
|
5817
|
+
}
|
|
5818
|
+
|
|
5819
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
5820
|
+
static inline folly::dynamic toDynamic(const EnrichedMarkdownTextAccessibilityLabelsRotorStruct &value) {
|
|
5821
|
+
return value.toDynamic();
|
|
5822
|
+
}
|
|
5823
|
+
#endif
|
|
5824
|
+
|
|
5825
|
+
struct EnrichedMarkdownTextAccessibilityLabelsStruct {
|
|
5826
|
+
EnrichedMarkdownTextAccessibilityLabelsListStruct list{};
|
|
5827
|
+
EnrichedMarkdownTextAccessibilityLabelsBlockquoteStruct blockquote{};
|
|
5828
|
+
EnrichedMarkdownTextAccessibilityLabelsTableStruct table{};
|
|
5829
|
+
EnrichedMarkdownTextAccessibilityLabelsMathStruct math{};
|
|
5830
|
+
EnrichedMarkdownTextAccessibilityLabelsRotorStruct rotor{};
|
|
5831
|
+
|
|
5832
|
+
|
|
5833
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
5834
|
+
bool operator==(const EnrichedMarkdownTextAccessibilityLabelsStruct&) const = default;
|
|
5835
|
+
|
|
5836
|
+
folly::dynamic toDynamic() const {
|
|
5837
|
+
folly::dynamic result = folly::dynamic::object();
|
|
5838
|
+
result["list"] = ::facebook::react::toDynamic(list);
|
|
5839
|
+
result["blockquote"] = ::facebook::react::toDynamic(blockquote);
|
|
5840
|
+
result["table"] = ::facebook::react::toDynamic(table);
|
|
5841
|
+
result["math"] = ::facebook::react::toDynamic(math);
|
|
5842
|
+
result["rotor"] = ::facebook::react::toDynamic(rotor);
|
|
5843
|
+
return result;
|
|
5844
|
+
}
|
|
5845
|
+
#endif
|
|
5846
|
+
};
|
|
5847
|
+
|
|
5848
|
+
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextAccessibilityLabelsStruct &result) {
|
|
5849
|
+
auto map = (std::unordered_map<std::string, RawValue>)value;
|
|
5850
|
+
|
|
5851
|
+
auto tmp_list = map.find("list");
|
|
5852
|
+
if (tmp_list != map.end()) {
|
|
5853
|
+
fromRawValue(context, tmp_list->second, result.list);
|
|
5854
|
+
}
|
|
5855
|
+
auto tmp_blockquote = map.find("blockquote");
|
|
5856
|
+
if (tmp_blockquote != map.end()) {
|
|
5857
|
+
fromRawValue(context, tmp_blockquote->second, result.blockquote);
|
|
5858
|
+
}
|
|
5859
|
+
auto tmp_table = map.find("table");
|
|
5860
|
+
if (tmp_table != map.end()) {
|
|
5861
|
+
fromRawValue(context, tmp_table->second, result.table);
|
|
5862
|
+
}
|
|
5863
|
+
auto tmp_math = map.find("math");
|
|
5864
|
+
if (tmp_math != map.end()) {
|
|
5865
|
+
fromRawValue(context, tmp_math->second, result.math);
|
|
5866
|
+
}
|
|
5867
|
+
auto tmp_rotor = map.find("rotor");
|
|
5868
|
+
if (tmp_rotor != map.end()) {
|
|
5869
|
+
fromRawValue(context, tmp_rotor->second, result.rotor);
|
|
5870
|
+
}
|
|
5871
|
+
}
|
|
5872
|
+
|
|
5873
|
+
static inline std::string toString(const EnrichedMarkdownTextAccessibilityLabelsStruct &value) {
|
|
5874
|
+
return "[Object EnrichedMarkdownTextAccessibilityLabelsStruct]";
|
|
5875
|
+
}
|
|
5876
|
+
|
|
5877
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
5878
|
+
static inline folly::dynamic toDynamic(const EnrichedMarkdownTextAccessibilityLabelsStruct &value) {
|
|
5879
|
+
return value.toDynamic();
|
|
5880
|
+
}
|
|
5881
|
+
#endif
|
|
5175
5882
|
class EnrichedMarkdownTextProps final : public ViewProps {
|
|
5176
5883
|
public:
|
|
5177
5884
|
EnrichedMarkdownTextProps() = default;
|
|
@@ -5194,6 +5901,7 @@ class EnrichedMarkdownTextProps final : public ViewProps {
|
|
|
5194
5901
|
std::string spoilerOverlay{std::string{"particles"}};
|
|
5195
5902
|
std::vector<EnrichedMarkdownTextContextMenuItemsStruct> contextMenuItems{};
|
|
5196
5903
|
EnrichedMarkdownTextSelectionMenuConfigStruct selectionMenuConfig{};
|
|
5904
|
+
EnrichedMarkdownTextAccessibilityLabelsStruct accessibilityLabels{};
|
|
5197
5905
|
std::string textBreakStrategy{std::string{"highQuality"}};
|
|
5198
5906
|
std::string lineBreakStrategyIOS{std::string{"none"}};
|
|
5199
5907
|
std::string writingDirection{std::string{"first-strong"}};
|