react-native-enriched-markdown-scaffold 0.6.0-scaffold.8 → 0.7.4-scaffold.10

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.
Files changed (213) hide show
  1. package/ReactNativeEnrichedMarkdown.podspec +62 -11
  2. package/android/build.gradle +5 -0
  3. package/android/generated/java/com/facebook/react/viewmanagers/EnrichedMarkdownManagerDelegate.java +3 -0
  4. package/android/generated/java/com/facebook/react/viewmanagers/EnrichedMarkdownManagerInterface.java +1 -0
  5. package/android/generated/java/com/facebook/react/viewmanagers/EnrichedMarkdownTextInputManagerDelegate.java +12 -0
  6. package/android/generated/java/com/facebook/react/viewmanagers/EnrichedMarkdownTextInputManagerInterface.java +4 -0
  7. package/android/generated/java/com/facebook/react/viewmanagers/EnrichedMarkdownTextManagerDelegate.java +3 -0
  8. package/android/generated/java/com/facebook/react/viewmanagers/EnrichedMarkdownTextManagerInterface.java +1 -0
  9. package/android/generated/jni/react/renderer/components/EnrichedMarkdownTextSpec/Props.cpp +25 -0
  10. package/android/generated/jni/react/renderer/components/EnrichedMarkdownTextSpec/Props.h +793 -0
  11. package/android/src/main/baseline-prof.txt +75 -2
  12. package/android/src/main/java/com/swmansion/enriched/markdown/EnrichedMarkdown.kt +62 -0
  13. package/android/src/main/java/com/swmansion/enriched/markdown/EnrichedMarkdownInternalText.kt +10 -2
  14. package/android/src/main/java/com/swmansion/enriched/markdown/EnrichedMarkdownManager.kt +10 -0
  15. package/android/src/main/java/com/swmansion/enriched/markdown/EnrichedMarkdownText.kt +9 -2
  16. package/android/src/main/java/com/swmansion/enriched/markdown/EnrichedMarkdownTextManager.kt +10 -0
  17. package/android/src/main/java/com/swmansion/enriched/markdown/MeasurementStore.kt +6 -4
  18. package/android/src/main/java/com/swmansion/enriched/markdown/accessibility/AccessibilityLabels.kt +15 -0
  19. package/android/src/main/java/com/swmansion/enriched/markdown/accessibility/MarkdownAccessibilityHelper.kt +44 -7
  20. package/android/src/main/java/com/swmansion/enriched/markdown/input/EnrichedMarkdownTextInputManager.kt +72 -0
  21. package/android/src/main/java/com/swmansion/enriched/markdown/input/EnrichedMarkdownTextInputView.kt +110 -12
  22. package/android/src/main/java/com/swmansion/enriched/markdown/input/formatting/BlockSyntaxSentinel.kt +69 -0
  23. package/android/src/main/java/com/swmansion/enriched/markdown/input/formatting/FormattingStore.kt +19 -0
  24. package/android/src/main/java/com/swmansion/enriched/markdown/input/formatting/InputParser.kt +84 -6
  25. package/android/src/main/java/com/swmansion/enriched/markdown/input/formatting/InputRemend.kt +1 -0
  26. package/android/src/main/java/com/swmansion/enriched/markdown/input/layout/InputLayoutManager.kt +30 -2
  27. package/android/src/main/java/com/swmansion/enriched/markdown/input/layout/InputMeasurementStore.kt +13 -2
  28. package/android/src/main/java/com/swmansion/enriched/markdown/input/model/MathChipStyle.kt +3 -0
  29. package/android/src/main/java/com/swmansion/enriched/markdown/input/toolbar/InputContextMenu.kt +54 -13
  30. package/android/src/main/java/com/swmansion/enriched/markdown/parser/MarkdownASTNode.kt +17 -0
  31. package/android/src/main/java/com/swmansion/enriched/markdown/renderer/HeadingRenderer.kt +1 -0
  32. package/android/src/main/java/com/swmansion/enriched/markdown/renderer/SpanStyleCache.kt +4 -4
  33. package/android/src/main/java/com/swmansion/enriched/markdown/spans/HeadingSpan.kt +8 -1
  34. package/android/src/main/java/com/swmansion/enriched/markdown/spans/LineHeightSpan.kt +27 -1
  35. package/android/src/main/java/com/swmansion/enriched/markdown/styles/InlineMathStyle.kt +5 -1
  36. package/android/src/main/java/com/swmansion/enriched/markdown/styles/MathFontWeight.kt +25 -0
  37. package/android/src/main/java/com/swmansion/enriched/markdown/styles/MathStyle.kt +12 -1
  38. package/android/src/main/java/com/swmansion/enriched/markdown/utils/common/MarkdownViewManagerUtils.kt +37 -7
  39. package/android/src/main/java/com/swmansion/enriched/markdown/utils/input/MarkdownStyleParser.kt +10 -0
  40. package/android/src/main/java/com/swmansion/enriched/markdown/utils/text/extensions/SpannableExtensions.kt +12 -4
  41. package/android/src/main/java/com/swmansion/enriched/markdown/utils/text/view/LinkEvents.kt +22 -0
  42. package/android/src/main/java/com/swmansion/enriched/markdown/utils/text/view/SelectionActionMode.kt +36 -7
  43. package/android/src/main/java/com/swmansion/enriched/markdown/views/TableContainerView.kt +74 -4
  44. package/android/src/main/jni/CMakeLists.txt +15 -1
  45. package/android/src/math/java/com/swmansion/enriched/markdown/renderer/MathInlineRenderer.kt +2 -0
  46. package/android/src/math/java/com/swmansion/enriched/markdown/spans/MathChipSpan.kt +1 -1
  47. package/android/src/math/java/com/swmansion/enriched/markdown/spans/MathInlinePlaceholderSpan.kt +7 -3
  48. package/android/src/math/java/com/swmansion/enriched/markdown/spans/MathInlineSpan.kt +8 -5
  49. package/android/src/math/java/com/swmansion/enriched/markdown/spans/MathTypeface.kt +30 -0
  50. package/android/src/math/java/com/swmansion/enriched/markdown/views/MathContainerView.kt +27 -3
  51. package/app.plugin.js +2 -1
  52. package/cpp/parser/MD4CParser.cpp +1 -1
  53. package/cpp/wasm/build.sh +9 -9
  54. package/docs/ACCESSIBILITY.md +172 -0
  55. package/docs/API_REFERENCE.md +957 -0
  56. package/docs/COPY_OPTIONS.md +127 -0
  57. package/docs/ELEMENTS_STRUCTURE.md +112 -0
  58. package/docs/IMAGE_CACHING.md +25 -0
  59. package/docs/INPUT.md +281 -0
  60. package/docs/LATEX_MATH.md +198 -0
  61. package/docs/MACOS.md +19 -0
  62. package/docs/MARKDOWN_STREAMING.md +36 -0
  63. package/docs/MENTIONS.md +97 -0
  64. package/docs/RTL.md +82 -0
  65. package/docs/STYLES.md +522 -0
  66. package/docs/TEXT.md +110 -0
  67. package/docs/WEB.md +49 -0
  68. package/ios/EnrichedMarkdown.mm +126 -37
  69. package/ios/EnrichedMarkdownText.mm +84 -16
  70. package/ios/attachments/ENRMMathInlineAttachment+macOS.m +5 -1
  71. package/ios/attachments/ENRMMathInlineAttachment.h +3 -0
  72. package/ios/attachments/ENRMMathInlineAttachment.m +2 -1
  73. package/ios/generated/ReactCodegen/EnrichedMarkdownTextSpec/Props.cpp +25 -0
  74. package/ios/generated/ReactCodegen/EnrichedMarkdownTextSpec/Props.h +793 -0
  75. package/ios/generated/ReactCodegen/EnrichedMarkdownTextSpec/RCTComponentViewHelpers.h +15 -0
  76. package/ios/input/ENRMBlockSyntaxSentinel.h +25 -0
  77. package/ios/input/ENRMBlockSyntaxSentinel.mm +80 -0
  78. package/ios/input/ENRMFormattingStore.h +5 -0
  79. package/ios/input/ENRMFormattingStore.mm +34 -0
  80. package/ios/input/ENRMInputFormatter.h +4 -0
  81. package/ios/input/ENRMInputFormatter.mm +2 -0
  82. package/ios/input/ENRMInputParser.h +5 -0
  83. package/ios/input/ENRMInputParser.mm +79 -6
  84. package/ios/input/ENRMInputTextView.h +2 -0
  85. package/ios/input/ENRMInputTextView.mm +8 -17
  86. package/ios/input/ENRMMarkdownSerializer.mm +1 -1
  87. package/ios/input/EnrichedMarkdownTextInput+ContextMenu.mm +71 -53
  88. package/ios/input/EnrichedMarkdownTextInput+Internal.h +26 -0
  89. package/ios/input/EnrichedMarkdownTextInput.h +1 -0
  90. package/ios/input/EnrichedMarkdownTextInput.mm +249 -31
  91. package/ios/input/InputStylePropsUtils.h +13 -0
  92. package/ios/input/styles/ENRMBoldStyleHandler.mm +3 -2
  93. package/ios/input/styles/ENRMItalicStyleHandler.mm +3 -2
  94. package/ios/internals/MeasurementCache.h +1 -0
  95. package/ios/math/ENRMRaTeXBridge.swift +52 -3
  96. package/ios/parser/ENRMMarkdownParser.h +8 -0
  97. package/ios/parser/ENRMMarkdownParser.mm +11 -0
  98. package/ios/renderer/AttributedRenderer.m +51 -6
  99. package/ios/renderer/ENRMMathInlineRenderer.m +8 -1
  100. package/ios/renderer/ListItemRenderer.m +8 -5
  101. package/ios/styles/ENRMFontSlot.h +1 -1
  102. package/ios/styles/StyleConfig.h +6 -0
  103. package/ios/styles/StyleConfig.mm +36 -0
  104. package/ios/utils/ENRMAccessibilityLabels.h +36 -0
  105. package/ios/utils/ENRMAccessibilityLabels.m +5 -0
  106. package/ios/utils/ENRMMathFontWeight.h +18 -0
  107. package/ios/utils/EditMenuUtils+macOS.m +4 -5
  108. package/ios/utils/EditMenuUtils.h +70 -0
  109. package/ios/utils/EditMenuUtils.m +14 -11
  110. package/ios/utils/LastElementUtils.h +39 -2
  111. package/ios/utils/MarkdownAccessibilityElementBuilder.h +18 -16
  112. package/ios/utils/MarkdownAccessibilityElementBuilder.m +64 -32
  113. package/ios/utils/ParagraphStyleUtils.m +21 -2
  114. package/ios/utils/StylePropsUtils.h +21 -0
  115. package/ios/views/ENRMMathContainerView.h +8 -0
  116. package/ios/views/ENRMMathContainerView.m +10 -6
  117. package/ios/views/ENRMTableIOSGridView.h +40 -0
  118. package/ios/views/ENRMTableIOSGridView.m +216 -0
  119. package/ios/views/EnrichedMarkdownInternalText.h +2 -0
  120. package/ios/views/EnrichedMarkdownInternalText.m +2 -0
  121. package/ios/views/TableContainerView.h +8 -0
  122. package/ios/views/TableContainerView.m +72 -128
  123. package/lib/module/EnrichedMarkdownNativeComponent.ts +40 -0
  124. package/lib/module/EnrichedMarkdownTextInput.js +50 -1
  125. package/lib/module/EnrichedMarkdownTextInput.js.map +1 -1
  126. package/lib/module/EnrichedMarkdownTextInputNativeComponent.ts +47 -0
  127. package/lib/module/EnrichedMarkdownTextNativeComponent.ts +40 -0
  128. package/lib/module/accessibilityLabelDefaults.js +64 -0
  129. package/lib/module/accessibilityLabelDefaults.js.map +1 -0
  130. package/lib/module/index.js +1 -0
  131. package/lib/module/index.js.map +1 -1
  132. package/lib/module/native/EnrichedMarkdownText.js +72 -4
  133. package/lib/module/native/EnrichedMarkdownText.js.map +1 -1
  134. package/lib/module/normalizeMarkdownStyle.js +5 -2
  135. package/lib/module/normalizeMarkdownStyle.js.map +1 -1
  136. package/lib/module/normalizeMarkdownStyle.web.js +5 -2
  137. package/lib/module/normalizeMarkdownStyle.web.js.map +1 -1
  138. package/lib/module/normalizeMarkdownTextInputStyle.js +7 -3
  139. package/lib/module/normalizeMarkdownTextInputStyle.js.map +1 -1
  140. package/lib/module/normalizeMenuItem.js +38 -0
  141. package/lib/module/normalizeMenuItem.js.map +1 -0
  142. package/lib/module/types/AccessibilityLabels.js +2 -0
  143. package/lib/module/types/AccessibilityLabels.js.map +1 -0
  144. package/lib/module/web/globalStyles.js +8 -1
  145. package/lib/module/web/globalStyles.js.map +1 -1
  146. package/lib/module/web/styles.js +3 -1
  147. package/lib/module/web/styles.js.map +1 -1
  148. package/lib/typescript/src/EnrichedMarkdownNativeComponent.d.ts +37 -0
  149. package/lib/typescript/src/EnrichedMarkdownNativeComponent.d.ts.map +1 -1
  150. package/lib/typescript/src/EnrichedMarkdownTextInput.d.ts +57 -1
  151. package/lib/typescript/src/EnrichedMarkdownTextInput.d.ts.map +1 -1
  152. package/lib/typescript/src/EnrichedMarkdownTextInputNativeComponent.d.ts +42 -0
  153. package/lib/typescript/src/EnrichedMarkdownTextInputNativeComponent.d.ts.map +1 -1
  154. package/lib/typescript/src/EnrichedMarkdownTextNativeComponent.d.ts +37 -0
  155. package/lib/typescript/src/EnrichedMarkdownTextNativeComponent.d.ts.map +1 -1
  156. package/lib/typescript/src/accessibilityLabelDefaults.d.ts +16 -0
  157. package/lib/typescript/src/accessibilityLabelDefaults.d.ts.map +1 -0
  158. package/lib/typescript/src/index.d.ts +4 -2
  159. package/lib/typescript/src/index.d.ts.map +1 -1
  160. package/lib/typescript/src/native/EnrichedMarkdownText.d.ts +3 -3
  161. package/lib/typescript/src/native/EnrichedMarkdownText.d.ts.map +1 -1
  162. package/lib/typescript/src/normalizeMarkdownStyle.d.ts.map +1 -1
  163. package/lib/typescript/src/normalizeMarkdownStyle.web.d.ts.map +1 -1
  164. package/lib/typescript/src/normalizeMarkdownTextInputStyle.d.ts +1 -0
  165. package/lib/typescript/src/normalizeMarkdownTextInputStyle.d.ts.map +1 -1
  166. package/lib/typescript/src/normalizeMenuItem.d.ts +7 -0
  167. package/lib/typescript/src/normalizeMenuItem.d.ts.map +1 -0
  168. package/lib/typescript/src/types/AccessibilityLabels.d.ts +114 -0
  169. package/lib/typescript/src/types/AccessibilityLabels.d.ts.map +1 -0
  170. package/lib/typescript/src/types/MarkdownStyle.d.ts +32 -0
  171. package/lib/typescript/src/types/MarkdownStyle.d.ts.map +1 -1
  172. package/lib/typescript/src/types/MarkdownStyleInternal.d.ts +3 -0
  173. package/lib/typescript/src/types/MarkdownStyleInternal.d.ts.map +1 -1
  174. package/lib/typescript/src/types/MarkdownTextProps.d.ts +78 -9
  175. package/lib/typescript/src/types/MarkdownTextProps.d.ts.map +1 -1
  176. package/lib/typescript/src/web/styles.d.ts.map +1 -1
  177. package/package.json +4 -2
  178. package/plugin/build/withAndroidMath.js +19 -0
  179. package/plugin/build/withIosMath.js +28 -0
  180. package/plugin/build/withReactNativeEnrichedMarkdown.js +11 -0
  181. package/plugin/tsconfig.build.json +16 -0
  182. package/src/EnrichedMarkdownNativeComponent.ts +40 -0
  183. package/src/EnrichedMarkdownTextInput.tsx +121 -1
  184. package/src/EnrichedMarkdownTextInputNativeComponent.ts +47 -0
  185. package/src/EnrichedMarkdownTextNativeComponent.ts +40 -0
  186. package/src/accessibilityLabelDefaults.ts +83 -0
  187. package/src/index.tsx +11 -0
  188. package/src/native/EnrichedMarkdownText.tsx +120 -6
  189. package/src/normalizeMarkdownStyle.ts +6 -1
  190. package/src/normalizeMarkdownStyle.web.ts +6 -1
  191. package/src/normalizeMarkdownTextInputStyle.ts +5 -0
  192. package/src/normalizeMenuItem.ts +52 -0
  193. package/src/types/AccessibilityLabels.ts +118 -0
  194. package/src/types/MarkdownStyle.ts +32 -0
  195. package/src/types/MarkdownStyleInternal.ts +3 -0
  196. package/src/types/MarkdownTextProps.ts +74 -9
  197. package/src/web/globalStyles.ts +7 -0
  198. package/src/web/styles.ts +5 -1
  199. package/lib/module/plugin/withAndroidMath.js +0 -20
  200. package/lib/module/plugin/withAndroidMath.js.map +0 -1
  201. package/lib/module/plugin/withIosMath.js +0 -23
  202. package/lib/module/plugin/withIosMath.js.map +0 -1
  203. package/lib/module/plugin/withReactNativeEnrichedMarkdown.js +0 -16
  204. package/lib/module/plugin/withReactNativeEnrichedMarkdown.js.map +0 -1
  205. package/lib/typescript/src/plugin/withAndroidMath.d.ts +0 -5
  206. package/lib/typescript/src/plugin/withAndroidMath.d.ts.map +0 -1
  207. package/lib/typescript/src/plugin/withIosMath.d.ts +0 -5
  208. package/lib/typescript/src/plugin/withIosMath.d.ts.map +0 -1
  209. package/lib/typescript/src/plugin/withReactNativeEnrichedMarkdown.d.ts +0 -6
  210. package/lib/typescript/src/plugin/withReactNativeEnrichedMarkdown.d.ts.map +0 -1
  211. /package/{src/plugin → plugin/src}/withAndroidMath.ts +0 -0
  212. /package/{src/plugin → plugin/src}/withIosMath.ts +0 -0
  213. /package/{src/plugin → plugin/src}/withReactNativeEnrichedMarkdown.ts +0 -0
@@ -1534,6 +1534,7 @@ struct EnrichedMarkdownMarkdownStyleMathStruct {
1534
1534
  Float marginTop{0.0};
1535
1535
  Float marginBottom{0.0};
1536
1536
  std::string textAlign{};
1537
+ std::string fontWeight{};
1537
1538
 
1538
1539
 
1539
1540
  #ifdef RN_SERIALIZABLE_STATE
@@ -1548,6 +1549,7 @@ struct EnrichedMarkdownMarkdownStyleMathStruct {
1548
1549
  result["marginTop"] = marginTop;
1549
1550
  result["marginBottom"] = marginBottom;
1550
1551
  result["textAlign"] = textAlign;
1552
+ result["fontWeight"] = fontWeight;
1551
1553
  return result;
1552
1554
  }
1553
1555
  #endif
@@ -1584,6 +1586,10 @@ static inline void fromRawValue(const PropsParserContext& context, const RawValu
1584
1586
  if (tmp_textAlign != map.end()) {
1585
1587
  fromRawValue(context, tmp_textAlign->second, result.textAlign);
1586
1588
  }
1589
+ auto tmp_fontWeight = map.find("fontWeight");
1590
+ if (tmp_fontWeight != map.end()) {
1591
+ fromRawValue(context, tmp_fontWeight->second, result.fontWeight);
1592
+ }
1587
1593
  }
1588
1594
 
1589
1595
  static inline std::string toString(const EnrichedMarkdownMarkdownStyleMathStruct &value) {
@@ -1598,6 +1604,8 @@ static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleMathSt
1598
1604
 
1599
1605
  struct EnrichedMarkdownMarkdownStyleInlineMathStruct {
1600
1606
  SharedColor color{};
1607
+ Float paddingVertical{0.0};
1608
+ std::string fontWeight{};
1601
1609
 
1602
1610
 
1603
1611
  #ifdef RN_SERIALIZABLE_STATE
@@ -1606,6 +1614,8 @@ struct EnrichedMarkdownMarkdownStyleInlineMathStruct {
1606
1614
  folly::dynamic toDynamic() const {
1607
1615
  folly::dynamic result = folly::dynamic::object();
1608
1616
  result["color"] = ::facebook::react::toDynamic(color);
1617
+ result["paddingVertical"] = paddingVertical;
1618
+ result["fontWeight"] = fontWeight;
1609
1619
  return result;
1610
1620
  }
1611
1621
  #endif
@@ -1618,6 +1628,14 @@ static inline void fromRawValue(const PropsParserContext& context, const RawValu
1618
1628
  if (tmp_color != map.end()) {
1619
1629
  fromRawValue(context, tmp_color->second, result.color);
1620
1630
  }
1631
+ auto tmp_paddingVertical = map.find("paddingVertical");
1632
+ if (tmp_paddingVertical != map.end()) {
1633
+ fromRawValue(context, tmp_paddingVertical->second, result.paddingVertical);
1634
+ }
1635
+ auto tmp_fontWeight = map.find("fontWeight");
1636
+ if (tmp_fontWeight != map.end()) {
1637
+ fromRawValue(context, tmp_fontWeight->second, result.fontWeight);
1638
+ }
1621
1639
  }
1622
1640
 
1623
1641
  static inline std::string toString(const EnrichedMarkdownMarkdownStyleInlineMathStruct &value) {
@@ -2211,6 +2229,11 @@ static inline void fromRawValue(const PropsParserContext& context, const RawValu
2211
2229
  struct EnrichedMarkdownSelectionMenuConfigStruct {
2212
2230
  bool copyAsMarkdown{false};
2213
2231
  bool copyImageUrl{false};
2232
+ std::string copyLabel{};
2233
+ std::string copyAsMarkdownLabel{};
2234
+ std::string copyImageUrlLabel{};
2235
+ std::string copyImageUrlsLabel{};
2236
+ std::vector<std::string> copyImageUrlPluralTemplates{};
2214
2237
 
2215
2238
 
2216
2239
  #ifdef RN_SERIALIZABLE_STATE
@@ -2220,6 +2243,11 @@ struct EnrichedMarkdownSelectionMenuConfigStruct {
2220
2243
  folly::dynamic result = folly::dynamic::object();
2221
2244
  result["copyAsMarkdown"] = copyAsMarkdown;
2222
2245
  result["copyImageUrl"] = copyImageUrl;
2246
+ result["copyLabel"] = copyLabel;
2247
+ result["copyAsMarkdownLabel"] = copyAsMarkdownLabel;
2248
+ result["copyImageUrlLabel"] = copyImageUrlLabel;
2249
+ result["copyImageUrlsLabel"] = copyImageUrlsLabel;
2250
+ result["copyImageUrlPluralTemplates"] = ::facebook::react::toDynamic(copyImageUrlPluralTemplates);
2223
2251
  return result;
2224
2252
  }
2225
2253
  #endif
@@ -2236,6 +2264,26 @@ static inline void fromRawValue(const PropsParserContext& context, const RawValu
2236
2264
  if (tmp_copyImageUrl != map.end()) {
2237
2265
  fromRawValue(context, tmp_copyImageUrl->second, result.copyImageUrl);
2238
2266
  }
2267
+ auto tmp_copyLabel = map.find("copyLabel");
2268
+ if (tmp_copyLabel != map.end()) {
2269
+ fromRawValue(context, tmp_copyLabel->second, result.copyLabel);
2270
+ }
2271
+ auto tmp_copyAsMarkdownLabel = map.find("copyAsMarkdownLabel");
2272
+ if (tmp_copyAsMarkdownLabel != map.end()) {
2273
+ fromRawValue(context, tmp_copyAsMarkdownLabel->second, result.copyAsMarkdownLabel);
2274
+ }
2275
+ auto tmp_copyImageUrlLabel = map.find("copyImageUrlLabel");
2276
+ if (tmp_copyImageUrlLabel != map.end()) {
2277
+ fromRawValue(context, tmp_copyImageUrlLabel->second, result.copyImageUrlLabel);
2278
+ }
2279
+ auto tmp_copyImageUrlsLabel = map.find("copyImageUrlsLabel");
2280
+ if (tmp_copyImageUrlsLabel != map.end()) {
2281
+ fromRawValue(context, tmp_copyImageUrlsLabel->second, result.copyImageUrlsLabel);
2282
+ }
2283
+ auto tmp_copyImageUrlPluralTemplates = map.find("copyImageUrlPluralTemplates");
2284
+ if (tmp_copyImageUrlPluralTemplates != map.end()) {
2285
+ fromRawValue(context, tmp_copyImageUrlPluralTemplates->second, result.copyImageUrlPluralTemplates);
2286
+ }
2239
2287
  }
2240
2288
 
2241
2289
  static inline std::string toString(const EnrichedMarkdownSelectionMenuConfigStruct &value) {
@@ -2247,6 +2295,270 @@ static inline folly::dynamic toDynamic(const EnrichedMarkdownSelectionMenuConfig
2247
2295
  return value.toDynamic();
2248
2296
  }
2249
2297
  #endif
2298
+
2299
+ struct EnrichedMarkdownAccessibilityLabelsListStruct {
2300
+ std::string bulletPoint{};
2301
+ std::string nestedBulletPoint{};
2302
+ std::string orderedItem{};
2303
+ std::string nestedOrderedItem{};
2304
+
2305
+
2306
+ #ifdef RN_SERIALIZABLE_STATE
2307
+ bool operator==(const EnrichedMarkdownAccessibilityLabelsListStruct&) const = default;
2308
+
2309
+ folly::dynamic toDynamic() const {
2310
+ folly::dynamic result = folly::dynamic::object();
2311
+ result["bulletPoint"] = bulletPoint;
2312
+ result["nestedBulletPoint"] = nestedBulletPoint;
2313
+ result["orderedItem"] = orderedItem;
2314
+ result["nestedOrderedItem"] = nestedOrderedItem;
2315
+ return result;
2316
+ }
2317
+ #endif
2318
+ };
2319
+
2320
+ static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownAccessibilityLabelsListStruct &result) {
2321
+ auto map = (std::unordered_map<std::string, RawValue>)value;
2322
+
2323
+ auto tmp_bulletPoint = map.find("bulletPoint");
2324
+ if (tmp_bulletPoint != map.end()) {
2325
+ fromRawValue(context, tmp_bulletPoint->second, result.bulletPoint);
2326
+ }
2327
+ auto tmp_nestedBulletPoint = map.find("nestedBulletPoint");
2328
+ if (tmp_nestedBulletPoint != map.end()) {
2329
+ fromRawValue(context, tmp_nestedBulletPoint->second, result.nestedBulletPoint);
2330
+ }
2331
+ auto tmp_orderedItem = map.find("orderedItem");
2332
+ if (tmp_orderedItem != map.end()) {
2333
+ fromRawValue(context, tmp_orderedItem->second, result.orderedItem);
2334
+ }
2335
+ auto tmp_nestedOrderedItem = map.find("nestedOrderedItem");
2336
+ if (tmp_nestedOrderedItem != map.end()) {
2337
+ fromRawValue(context, tmp_nestedOrderedItem->second, result.nestedOrderedItem);
2338
+ }
2339
+ }
2340
+
2341
+ static inline std::string toString(const EnrichedMarkdownAccessibilityLabelsListStruct &value) {
2342
+ return "[Object EnrichedMarkdownAccessibilityLabelsListStruct]";
2343
+ }
2344
+
2345
+ #ifdef RN_SERIALIZABLE_STATE
2346
+ static inline folly::dynamic toDynamic(const EnrichedMarkdownAccessibilityLabelsListStruct &value) {
2347
+ return value.toDynamic();
2348
+ }
2349
+ #endif
2350
+
2351
+ struct EnrichedMarkdownAccessibilityLabelsBlockquoteStruct {
2352
+ std::string quote{};
2353
+ std::string nestedQuote{};
2354
+
2355
+
2356
+ #ifdef RN_SERIALIZABLE_STATE
2357
+ bool operator==(const EnrichedMarkdownAccessibilityLabelsBlockquoteStruct&) const = default;
2358
+
2359
+ folly::dynamic toDynamic() const {
2360
+ folly::dynamic result = folly::dynamic::object();
2361
+ result["quote"] = quote;
2362
+ result["nestedQuote"] = nestedQuote;
2363
+ return result;
2364
+ }
2365
+ #endif
2366
+ };
2367
+
2368
+ static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownAccessibilityLabelsBlockquoteStruct &result) {
2369
+ auto map = (std::unordered_map<std::string, RawValue>)value;
2370
+
2371
+ auto tmp_quote = map.find("quote");
2372
+ if (tmp_quote != map.end()) {
2373
+ fromRawValue(context, tmp_quote->second, result.quote);
2374
+ }
2375
+ auto tmp_nestedQuote = map.find("nestedQuote");
2376
+ if (tmp_nestedQuote != map.end()) {
2377
+ fromRawValue(context, tmp_nestedQuote->second, result.nestedQuote);
2378
+ }
2379
+ }
2380
+
2381
+ static inline std::string toString(const EnrichedMarkdownAccessibilityLabelsBlockquoteStruct &value) {
2382
+ return "[Object EnrichedMarkdownAccessibilityLabelsBlockquoteStruct]";
2383
+ }
2384
+
2385
+ #ifdef RN_SERIALIZABLE_STATE
2386
+ static inline folly::dynamic toDynamic(const EnrichedMarkdownAccessibilityLabelsBlockquoteStruct &value) {
2387
+ return value.toDynamic();
2388
+ }
2389
+ #endif
2390
+
2391
+ struct EnrichedMarkdownAccessibilityLabelsTableStruct {
2392
+ std::string row{};
2393
+
2394
+
2395
+ #ifdef RN_SERIALIZABLE_STATE
2396
+ bool operator==(const EnrichedMarkdownAccessibilityLabelsTableStruct&) const = default;
2397
+
2398
+ folly::dynamic toDynamic() const {
2399
+ folly::dynamic result = folly::dynamic::object();
2400
+ result["row"] = row;
2401
+ return result;
2402
+ }
2403
+ #endif
2404
+ };
2405
+
2406
+ static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownAccessibilityLabelsTableStruct &result) {
2407
+ auto map = (std::unordered_map<std::string, RawValue>)value;
2408
+
2409
+ auto tmp_row = map.find("row");
2410
+ if (tmp_row != map.end()) {
2411
+ fromRawValue(context, tmp_row->second, result.row);
2412
+ }
2413
+ }
2414
+
2415
+ static inline std::string toString(const EnrichedMarkdownAccessibilityLabelsTableStruct &value) {
2416
+ return "[Object EnrichedMarkdownAccessibilityLabelsTableStruct]";
2417
+ }
2418
+
2419
+ #ifdef RN_SERIALIZABLE_STATE
2420
+ static inline folly::dynamic toDynamic(const EnrichedMarkdownAccessibilityLabelsTableStruct &value) {
2421
+ return value.toDynamic();
2422
+ }
2423
+ #endif
2424
+
2425
+ struct EnrichedMarkdownAccessibilityLabelsMathStruct {
2426
+ std::string equation{};
2427
+
2428
+
2429
+ #ifdef RN_SERIALIZABLE_STATE
2430
+ bool operator==(const EnrichedMarkdownAccessibilityLabelsMathStruct&) const = default;
2431
+
2432
+ folly::dynamic toDynamic() const {
2433
+ folly::dynamic result = folly::dynamic::object();
2434
+ result["equation"] = equation;
2435
+ return result;
2436
+ }
2437
+ #endif
2438
+ };
2439
+
2440
+ static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownAccessibilityLabelsMathStruct &result) {
2441
+ auto map = (std::unordered_map<std::string, RawValue>)value;
2442
+
2443
+ auto tmp_equation = map.find("equation");
2444
+ if (tmp_equation != map.end()) {
2445
+ fromRawValue(context, tmp_equation->second, result.equation);
2446
+ }
2447
+ }
2448
+
2449
+ static inline std::string toString(const EnrichedMarkdownAccessibilityLabelsMathStruct &value) {
2450
+ return "[Object EnrichedMarkdownAccessibilityLabelsMathStruct]";
2451
+ }
2452
+
2453
+ #ifdef RN_SERIALIZABLE_STATE
2454
+ static inline folly::dynamic toDynamic(const EnrichedMarkdownAccessibilityLabelsMathStruct &value) {
2455
+ return value.toDynamic();
2456
+ }
2457
+ #endif
2458
+
2459
+ struct EnrichedMarkdownAccessibilityLabelsRotorStruct {
2460
+ std::string headings{};
2461
+ std::string links{};
2462
+ std::string images{};
2463
+
2464
+
2465
+ #ifdef RN_SERIALIZABLE_STATE
2466
+ bool operator==(const EnrichedMarkdownAccessibilityLabelsRotorStruct&) const = default;
2467
+
2468
+ folly::dynamic toDynamic() const {
2469
+ folly::dynamic result = folly::dynamic::object();
2470
+ result["headings"] = headings;
2471
+ result["links"] = links;
2472
+ result["images"] = images;
2473
+ return result;
2474
+ }
2475
+ #endif
2476
+ };
2477
+
2478
+ static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownAccessibilityLabelsRotorStruct &result) {
2479
+ auto map = (std::unordered_map<std::string, RawValue>)value;
2480
+
2481
+ auto tmp_headings = map.find("headings");
2482
+ if (tmp_headings != map.end()) {
2483
+ fromRawValue(context, tmp_headings->second, result.headings);
2484
+ }
2485
+ auto tmp_links = map.find("links");
2486
+ if (tmp_links != map.end()) {
2487
+ fromRawValue(context, tmp_links->second, result.links);
2488
+ }
2489
+ auto tmp_images = map.find("images");
2490
+ if (tmp_images != map.end()) {
2491
+ fromRawValue(context, tmp_images->second, result.images);
2492
+ }
2493
+ }
2494
+
2495
+ static inline std::string toString(const EnrichedMarkdownAccessibilityLabelsRotorStruct &value) {
2496
+ return "[Object EnrichedMarkdownAccessibilityLabelsRotorStruct]";
2497
+ }
2498
+
2499
+ #ifdef RN_SERIALIZABLE_STATE
2500
+ static inline folly::dynamic toDynamic(const EnrichedMarkdownAccessibilityLabelsRotorStruct &value) {
2501
+ return value.toDynamic();
2502
+ }
2503
+ #endif
2504
+
2505
+ struct EnrichedMarkdownAccessibilityLabelsStruct {
2506
+ EnrichedMarkdownAccessibilityLabelsListStruct list{};
2507
+ EnrichedMarkdownAccessibilityLabelsBlockquoteStruct blockquote{};
2508
+ EnrichedMarkdownAccessibilityLabelsTableStruct table{};
2509
+ EnrichedMarkdownAccessibilityLabelsMathStruct math{};
2510
+ EnrichedMarkdownAccessibilityLabelsRotorStruct rotor{};
2511
+
2512
+
2513
+ #ifdef RN_SERIALIZABLE_STATE
2514
+ bool operator==(const EnrichedMarkdownAccessibilityLabelsStruct&) const = default;
2515
+
2516
+ folly::dynamic toDynamic() const {
2517
+ folly::dynamic result = folly::dynamic::object();
2518
+ result["list"] = ::facebook::react::toDynamic(list);
2519
+ result["blockquote"] = ::facebook::react::toDynamic(blockquote);
2520
+ result["table"] = ::facebook::react::toDynamic(table);
2521
+ result["math"] = ::facebook::react::toDynamic(math);
2522
+ result["rotor"] = ::facebook::react::toDynamic(rotor);
2523
+ return result;
2524
+ }
2525
+ #endif
2526
+ };
2527
+
2528
+ static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownAccessibilityLabelsStruct &result) {
2529
+ auto map = (std::unordered_map<std::string, RawValue>)value;
2530
+
2531
+ auto tmp_list = map.find("list");
2532
+ if (tmp_list != map.end()) {
2533
+ fromRawValue(context, tmp_list->second, result.list);
2534
+ }
2535
+ auto tmp_blockquote = map.find("blockquote");
2536
+ if (tmp_blockquote != map.end()) {
2537
+ fromRawValue(context, tmp_blockquote->second, result.blockquote);
2538
+ }
2539
+ auto tmp_table = map.find("table");
2540
+ if (tmp_table != map.end()) {
2541
+ fromRawValue(context, tmp_table->second, result.table);
2542
+ }
2543
+ auto tmp_math = map.find("math");
2544
+ if (tmp_math != map.end()) {
2545
+ fromRawValue(context, tmp_math->second, result.math);
2546
+ }
2547
+ auto tmp_rotor = map.find("rotor");
2548
+ if (tmp_rotor != map.end()) {
2549
+ fromRawValue(context, tmp_rotor->second, result.rotor);
2550
+ }
2551
+ }
2552
+
2553
+ static inline std::string toString(const EnrichedMarkdownAccessibilityLabelsStruct &value) {
2554
+ return "[Object EnrichedMarkdownAccessibilityLabelsStruct]";
2555
+ }
2556
+
2557
+ #ifdef RN_SERIALIZABLE_STATE
2558
+ static inline folly::dynamic toDynamic(const EnrichedMarkdownAccessibilityLabelsStruct &value) {
2559
+ return value.toDynamic();
2560
+ }
2561
+ #endif
2250
2562
  class EnrichedMarkdownProps final : public ViewProps {
2251
2563
  public:
2252
2564
  EnrichedMarkdownProps() = default;
@@ -2269,6 +2581,7 @@ class EnrichedMarkdownProps final : public ViewProps {
2269
2581
  std::string spoilerOverlay{std::string{"particles"}};
2270
2582
  std::vector<EnrichedMarkdownContextMenuItemsStruct> contextMenuItems{};
2271
2583
  EnrichedMarkdownSelectionMenuConfigStruct selectionMenuConfig{};
2584
+ EnrichedMarkdownAccessibilityLabelsStruct accessibilityLabels{};
2272
2585
  std::string textBreakStrategy{std::string{"highQuality"}};
2273
2586
  std::string lineBreakStrategyIOS{std::string{"none"}};
2274
2587
  std::string writingDirection{std::string{"first-strong"}};
@@ -2509,6 +2822,7 @@ struct EnrichedMarkdownTextInputMarkdownStyleMathStruct {
2509
2822
  Float paddingVertical{0.0};
2510
2823
  SharedColor selectedBackgroundColor{};
2511
2824
  SharedColor selectedBorderColor{};
2825
+ std::string fontWeight{};
2512
2826
 
2513
2827
 
2514
2828
  #ifdef RN_SERIALIZABLE_STATE
@@ -2526,6 +2840,7 @@ struct EnrichedMarkdownTextInputMarkdownStyleMathStruct {
2526
2840
  result["paddingVertical"] = paddingVertical;
2527
2841
  result["selectedBackgroundColor"] = ::facebook::react::toDynamic(selectedBackgroundColor);
2528
2842
  result["selectedBorderColor"] = ::facebook::react::toDynamic(selectedBorderColor);
2843
+ result["fontWeight"] = fontWeight;
2529
2844
  return result;
2530
2845
  }
2531
2846
  #endif
@@ -2574,6 +2889,10 @@ static inline void fromRawValue(const PropsParserContext& context, const RawValu
2574
2889
  if (tmp_selectedBorderColor != map.end()) {
2575
2890
  fromRawValue(context, tmp_selectedBorderColor->second, result.selectedBorderColor);
2576
2891
  }
2892
+ auto tmp_fontWeight = map.find("fontWeight");
2893
+ if (tmp_fontWeight != map.end()) {
2894
+ fromRawValue(context, tmp_fontWeight->second, result.fontWeight);
2895
+ }
2577
2896
  }
2578
2897
 
2579
2898
  static inline std::string toString(const EnrichedMarkdownTextInputMarkdownStyleMathStruct &value) {
@@ -2597,6 +2916,7 @@ struct EnrichedMarkdownTextInputMarkdownStyleMathBlockStruct {
2597
2916
  Float paddingVertical{0.0};
2598
2917
  SharedColor selectedBackgroundColor{};
2599
2918
  SharedColor selectedBorderColor{};
2919
+ std::string fontWeight{};
2600
2920
  Float marginTop{0.0};
2601
2921
  Float marginBottom{0.0};
2602
2922
  std::string alignment{};
@@ -2617,6 +2937,7 @@ struct EnrichedMarkdownTextInputMarkdownStyleMathBlockStruct {
2617
2937
  result["paddingVertical"] = paddingVertical;
2618
2938
  result["selectedBackgroundColor"] = ::facebook::react::toDynamic(selectedBackgroundColor);
2619
2939
  result["selectedBorderColor"] = ::facebook::react::toDynamic(selectedBorderColor);
2940
+ result["fontWeight"] = fontWeight;
2620
2941
  result["marginTop"] = marginTop;
2621
2942
  result["marginBottom"] = marginBottom;
2622
2943
  result["alignment"] = alignment;
@@ -2668,6 +2989,10 @@ static inline void fromRawValue(const PropsParserContext& context, const RawValu
2668
2989
  if (tmp_selectedBorderColor != map.end()) {
2669
2990
  fromRawValue(context, tmp_selectedBorderColor->second, result.selectedBorderColor);
2670
2991
  }
2992
+ auto tmp_fontWeight = map.find("fontWeight");
2993
+ if (tmp_fontWeight != map.end()) {
2994
+ fromRawValue(context, tmp_fontWeight->second, result.fontWeight);
2995
+ }
2671
2996
  auto tmp_marginTop = map.find("marginTop");
2672
2997
  if (tmp_marginTop != map.end()) {
2673
2998
  fromRawValue(context, tmp_marginTop->second, result.marginTop);
@@ -2812,6 +3137,158 @@ static inline void fromRawValue(const PropsParserContext& context, const RawValu
2812
3137
  }
2813
3138
 
2814
3139
 
3140
+ struct EnrichedMarkdownTextInputSelectionMenuConfigStruct {
3141
+ bool format{false};
3142
+ std::string formatLabel{};
3143
+ bool copyAsMarkdown{false};
3144
+ std::string copyAsMarkdownLabel{};
3145
+
3146
+
3147
+ #ifdef RN_SERIALIZABLE_STATE
3148
+ bool operator==(const EnrichedMarkdownTextInputSelectionMenuConfigStruct&) const = default;
3149
+
3150
+ folly::dynamic toDynamic() const {
3151
+ folly::dynamic result = folly::dynamic::object();
3152
+ result["format"] = format;
3153
+ result["formatLabel"] = formatLabel;
3154
+ result["copyAsMarkdown"] = copyAsMarkdown;
3155
+ result["copyAsMarkdownLabel"] = copyAsMarkdownLabel;
3156
+ return result;
3157
+ }
3158
+ #endif
3159
+ };
3160
+
3161
+ static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextInputSelectionMenuConfigStruct &result) {
3162
+ auto map = (std::unordered_map<std::string, RawValue>)value;
3163
+
3164
+ auto tmp_format = map.find("format");
3165
+ if (tmp_format != map.end()) {
3166
+ fromRawValue(context, tmp_format->second, result.format);
3167
+ }
3168
+ auto tmp_formatLabel = map.find("formatLabel");
3169
+ if (tmp_formatLabel != map.end()) {
3170
+ fromRawValue(context, tmp_formatLabel->second, result.formatLabel);
3171
+ }
3172
+ auto tmp_copyAsMarkdown = map.find("copyAsMarkdown");
3173
+ if (tmp_copyAsMarkdown != map.end()) {
3174
+ fromRawValue(context, tmp_copyAsMarkdown->second, result.copyAsMarkdown);
3175
+ }
3176
+ auto tmp_copyAsMarkdownLabel = map.find("copyAsMarkdownLabel");
3177
+ if (tmp_copyAsMarkdownLabel != map.end()) {
3178
+ fromRawValue(context, tmp_copyAsMarkdownLabel->second, result.copyAsMarkdownLabel);
3179
+ }
3180
+ }
3181
+
3182
+ static inline std::string toString(const EnrichedMarkdownTextInputSelectionMenuConfigStruct &value) {
3183
+ return "[Object EnrichedMarkdownTextInputSelectionMenuConfigStruct]";
3184
+ }
3185
+
3186
+ #ifdef RN_SERIALIZABLE_STATE
3187
+ static inline folly::dynamic toDynamic(const EnrichedMarkdownTextInputSelectionMenuConfigStruct &value) {
3188
+ return value.toDynamic();
3189
+ }
3190
+ #endif
3191
+
3192
+ struct EnrichedMarkdownTextInputFormatMenuConfigStruct {
3193
+ bool bold{false};
3194
+ std::string boldLabel{};
3195
+ bool italic{false};
3196
+ std::string italicLabel{};
3197
+ bool underline{false};
3198
+ std::string underlineLabel{};
3199
+ bool strikethrough{false};
3200
+ std::string strikethroughLabel{};
3201
+ bool spoiler{false};
3202
+ std::string spoilerLabel{};
3203
+ bool link{false};
3204
+ std::string linkLabel{};
3205
+
3206
+
3207
+ #ifdef RN_SERIALIZABLE_STATE
3208
+ bool operator==(const EnrichedMarkdownTextInputFormatMenuConfigStruct&) const = default;
3209
+
3210
+ folly::dynamic toDynamic() const {
3211
+ folly::dynamic result = folly::dynamic::object();
3212
+ result["bold"] = bold;
3213
+ result["boldLabel"] = boldLabel;
3214
+ result["italic"] = italic;
3215
+ result["italicLabel"] = italicLabel;
3216
+ result["underline"] = underline;
3217
+ result["underlineLabel"] = underlineLabel;
3218
+ result["strikethrough"] = strikethrough;
3219
+ result["strikethroughLabel"] = strikethroughLabel;
3220
+ result["spoiler"] = spoiler;
3221
+ result["spoilerLabel"] = spoilerLabel;
3222
+ result["link"] = link;
3223
+ result["linkLabel"] = linkLabel;
3224
+ return result;
3225
+ }
3226
+ #endif
3227
+ };
3228
+
3229
+ static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextInputFormatMenuConfigStruct &result) {
3230
+ auto map = (std::unordered_map<std::string, RawValue>)value;
3231
+
3232
+ auto tmp_bold = map.find("bold");
3233
+ if (tmp_bold != map.end()) {
3234
+ fromRawValue(context, tmp_bold->second, result.bold);
3235
+ }
3236
+ auto tmp_boldLabel = map.find("boldLabel");
3237
+ if (tmp_boldLabel != map.end()) {
3238
+ fromRawValue(context, tmp_boldLabel->second, result.boldLabel);
3239
+ }
3240
+ auto tmp_italic = map.find("italic");
3241
+ if (tmp_italic != map.end()) {
3242
+ fromRawValue(context, tmp_italic->second, result.italic);
3243
+ }
3244
+ auto tmp_italicLabel = map.find("italicLabel");
3245
+ if (tmp_italicLabel != map.end()) {
3246
+ fromRawValue(context, tmp_italicLabel->second, result.italicLabel);
3247
+ }
3248
+ auto tmp_underline = map.find("underline");
3249
+ if (tmp_underline != map.end()) {
3250
+ fromRawValue(context, tmp_underline->second, result.underline);
3251
+ }
3252
+ auto tmp_underlineLabel = map.find("underlineLabel");
3253
+ if (tmp_underlineLabel != map.end()) {
3254
+ fromRawValue(context, tmp_underlineLabel->second, result.underlineLabel);
3255
+ }
3256
+ auto tmp_strikethrough = map.find("strikethrough");
3257
+ if (tmp_strikethrough != map.end()) {
3258
+ fromRawValue(context, tmp_strikethrough->second, result.strikethrough);
3259
+ }
3260
+ auto tmp_strikethroughLabel = map.find("strikethroughLabel");
3261
+ if (tmp_strikethroughLabel != map.end()) {
3262
+ fromRawValue(context, tmp_strikethroughLabel->second, result.strikethroughLabel);
3263
+ }
3264
+ auto tmp_spoiler = map.find("spoiler");
3265
+ if (tmp_spoiler != map.end()) {
3266
+ fromRawValue(context, tmp_spoiler->second, result.spoiler);
3267
+ }
3268
+ auto tmp_spoilerLabel = map.find("spoilerLabel");
3269
+ if (tmp_spoilerLabel != map.end()) {
3270
+ fromRawValue(context, tmp_spoilerLabel->second, result.spoilerLabel);
3271
+ }
3272
+ auto tmp_link = map.find("link");
3273
+ if (tmp_link != map.end()) {
3274
+ fromRawValue(context, tmp_link->second, result.link);
3275
+ }
3276
+ auto tmp_linkLabel = map.find("linkLabel");
3277
+ if (tmp_linkLabel != map.end()) {
3278
+ fromRawValue(context, tmp_linkLabel->second, result.linkLabel);
3279
+ }
3280
+ }
3281
+
3282
+ static inline std::string toString(const EnrichedMarkdownTextInputFormatMenuConfigStruct &value) {
3283
+ return "[Object EnrichedMarkdownTextInputFormatMenuConfigStruct]";
3284
+ }
3285
+
3286
+ #ifdef RN_SERIALIZABLE_STATE
3287
+ static inline folly::dynamic toDynamic(const EnrichedMarkdownTextInputFormatMenuConfigStruct &value) {
3288
+ return value.toDynamic();
3289
+ }
3290
+ #endif
3291
+
2815
3292
  struct EnrichedMarkdownTextInputLinkRegexStruct {
2816
3293
  std::string pattern{};
2817
3294
  bool caseInsensitive{false};
@@ -2882,6 +3359,7 @@ class EnrichedMarkdownTextInputProps final : public ViewProps {
2882
3359
  bool editable{false};
2883
3360
  bool autoFocus{false};
2884
3361
  bool scrollEnabled{false};
3362
+ bool blockSyntax{false};
2885
3363
  std::string autoCapitalize{};
2886
3364
  bool multiline{false};
2887
3365
  SharedColor cursorColor{};
@@ -2894,6 +3372,8 @@ class EnrichedMarkdownTextInputProps final : public ViewProps {
2894
3372
  std::string fontWeight{};
2895
3373
  bool isOnChangeMarkdownSet{false};
2896
3374
  std::vector<EnrichedMarkdownTextInputContextMenuItemsStruct> contextMenuItems{};
3375
+ EnrichedMarkdownTextInputSelectionMenuConfigStruct selectionMenuConfig{};
3376
+ EnrichedMarkdownTextInputFormatMenuConfigStruct formatMenuConfig{};
2897
3377
  EnrichedMarkdownTextInputLinkRegexStruct linkRegex{};
2898
3378
  std::vector<std::string> mentionIndicators{};
2899
3379
  std::string writingDirection{std::string{"first-strong"}};
@@ -4423,6 +4903,7 @@ struct EnrichedMarkdownTextMarkdownStyleMathStruct {
4423
4903
  Float marginTop{0.0};
4424
4904
  Float marginBottom{0.0};
4425
4905
  std::string textAlign{};
4906
+ std::string fontWeight{};
4426
4907
 
4427
4908
 
4428
4909
  #ifdef RN_SERIALIZABLE_STATE
@@ -4437,6 +4918,7 @@ struct EnrichedMarkdownTextMarkdownStyleMathStruct {
4437
4918
  result["marginTop"] = marginTop;
4438
4919
  result["marginBottom"] = marginBottom;
4439
4920
  result["textAlign"] = textAlign;
4921
+ result["fontWeight"] = fontWeight;
4440
4922
  return result;
4441
4923
  }
4442
4924
  #endif
@@ -4473,6 +4955,10 @@ static inline void fromRawValue(const PropsParserContext& context, const RawValu
4473
4955
  if (tmp_textAlign != map.end()) {
4474
4956
  fromRawValue(context, tmp_textAlign->second, result.textAlign);
4475
4957
  }
4958
+ auto tmp_fontWeight = map.find("fontWeight");
4959
+ if (tmp_fontWeight != map.end()) {
4960
+ fromRawValue(context, tmp_fontWeight->second, result.fontWeight);
4961
+ }
4476
4962
  }
4477
4963
 
4478
4964
  static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleMathStruct &value) {
@@ -4487,6 +4973,8 @@ static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleMa
4487
4973
 
4488
4974
  struct EnrichedMarkdownTextMarkdownStyleInlineMathStruct {
4489
4975
  SharedColor color{};
4976
+ Float paddingVertical{0.0};
4977
+ std::string fontWeight{};
4490
4978
 
4491
4979
 
4492
4980
  #ifdef RN_SERIALIZABLE_STATE
@@ -4495,6 +4983,8 @@ struct EnrichedMarkdownTextMarkdownStyleInlineMathStruct {
4495
4983
  folly::dynamic toDynamic() const {
4496
4984
  folly::dynamic result = folly::dynamic::object();
4497
4985
  result["color"] = ::facebook::react::toDynamic(color);
4986
+ result["paddingVertical"] = paddingVertical;
4987
+ result["fontWeight"] = fontWeight;
4498
4988
  return result;
4499
4989
  }
4500
4990
  #endif
@@ -4507,6 +4997,14 @@ static inline void fromRawValue(const PropsParserContext& context, const RawValu
4507
4997
  if (tmp_color != map.end()) {
4508
4998
  fromRawValue(context, tmp_color->second, result.color);
4509
4999
  }
5000
+ auto tmp_paddingVertical = map.find("paddingVertical");
5001
+ if (tmp_paddingVertical != map.end()) {
5002
+ fromRawValue(context, tmp_paddingVertical->second, result.paddingVertical);
5003
+ }
5004
+ auto tmp_fontWeight = map.find("fontWeight");
5005
+ if (tmp_fontWeight != map.end()) {
5006
+ fromRawValue(context, tmp_fontWeight->second, result.fontWeight);
5007
+ }
4510
5008
  }
4511
5009
 
4512
5010
  static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleInlineMathStruct &value) {
@@ -5100,6 +5598,11 @@ static inline void fromRawValue(const PropsParserContext& context, const RawValu
5100
5598
  struct EnrichedMarkdownTextSelectionMenuConfigStruct {
5101
5599
  bool copyAsMarkdown{false};
5102
5600
  bool copyImageUrl{false};
5601
+ std::string copyLabel{};
5602
+ std::string copyAsMarkdownLabel{};
5603
+ std::string copyImageUrlLabel{};
5604
+ std::string copyImageUrlsLabel{};
5605
+ std::vector<std::string> copyImageUrlPluralTemplates{};
5103
5606
 
5104
5607
 
5105
5608
  #ifdef RN_SERIALIZABLE_STATE
@@ -5109,6 +5612,11 @@ struct EnrichedMarkdownTextSelectionMenuConfigStruct {
5109
5612
  folly::dynamic result = folly::dynamic::object();
5110
5613
  result["copyAsMarkdown"] = copyAsMarkdown;
5111
5614
  result["copyImageUrl"] = copyImageUrl;
5615
+ result["copyLabel"] = copyLabel;
5616
+ result["copyAsMarkdownLabel"] = copyAsMarkdownLabel;
5617
+ result["copyImageUrlLabel"] = copyImageUrlLabel;
5618
+ result["copyImageUrlsLabel"] = copyImageUrlsLabel;
5619
+ result["copyImageUrlPluralTemplates"] = ::facebook::react::toDynamic(copyImageUrlPluralTemplates);
5112
5620
  return result;
5113
5621
  }
5114
5622
  #endif
@@ -5125,6 +5633,26 @@ static inline void fromRawValue(const PropsParserContext& context, const RawValu
5125
5633
  if (tmp_copyImageUrl != map.end()) {
5126
5634
  fromRawValue(context, tmp_copyImageUrl->second, result.copyImageUrl);
5127
5635
  }
5636
+ auto tmp_copyLabel = map.find("copyLabel");
5637
+ if (tmp_copyLabel != map.end()) {
5638
+ fromRawValue(context, tmp_copyLabel->second, result.copyLabel);
5639
+ }
5640
+ auto tmp_copyAsMarkdownLabel = map.find("copyAsMarkdownLabel");
5641
+ if (tmp_copyAsMarkdownLabel != map.end()) {
5642
+ fromRawValue(context, tmp_copyAsMarkdownLabel->second, result.copyAsMarkdownLabel);
5643
+ }
5644
+ auto tmp_copyImageUrlLabel = map.find("copyImageUrlLabel");
5645
+ if (tmp_copyImageUrlLabel != map.end()) {
5646
+ fromRawValue(context, tmp_copyImageUrlLabel->second, result.copyImageUrlLabel);
5647
+ }
5648
+ auto tmp_copyImageUrlsLabel = map.find("copyImageUrlsLabel");
5649
+ if (tmp_copyImageUrlsLabel != map.end()) {
5650
+ fromRawValue(context, tmp_copyImageUrlsLabel->second, result.copyImageUrlsLabel);
5651
+ }
5652
+ auto tmp_copyImageUrlPluralTemplates = map.find("copyImageUrlPluralTemplates");
5653
+ if (tmp_copyImageUrlPluralTemplates != map.end()) {
5654
+ fromRawValue(context, tmp_copyImageUrlPluralTemplates->second, result.copyImageUrlPluralTemplates);
5655
+ }
5128
5656
  }
5129
5657
 
5130
5658
  static inline std::string toString(const EnrichedMarkdownTextSelectionMenuConfigStruct &value) {
@@ -5136,6 +5664,270 @@ static inline folly::dynamic toDynamic(const EnrichedMarkdownTextSelectionMenuCo
5136
5664
  return value.toDynamic();
5137
5665
  }
5138
5666
  #endif
5667
+
5668
+ struct EnrichedMarkdownTextAccessibilityLabelsListStruct {
5669
+ std::string bulletPoint{};
5670
+ std::string nestedBulletPoint{};
5671
+ std::string orderedItem{};
5672
+ std::string nestedOrderedItem{};
5673
+
5674
+
5675
+ #ifdef RN_SERIALIZABLE_STATE
5676
+ bool operator==(const EnrichedMarkdownTextAccessibilityLabelsListStruct&) const = default;
5677
+
5678
+ folly::dynamic toDynamic() const {
5679
+ folly::dynamic result = folly::dynamic::object();
5680
+ result["bulletPoint"] = bulletPoint;
5681
+ result["nestedBulletPoint"] = nestedBulletPoint;
5682
+ result["orderedItem"] = orderedItem;
5683
+ result["nestedOrderedItem"] = nestedOrderedItem;
5684
+ return result;
5685
+ }
5686
+ #endif
5687
+ };
5688
+
5689
+ static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextAccessibilityLabelsListStruct &result) {
5690
+ auto map = (std::unordered_map<std::string, RawValue>)value;
5691
+
5692
+ auto tmp_bulletPoint = map.find("bulletPoint");
5693
+ if (tmp_bulletPoint != map.end()) {
5694
+ fromRawValue(context, tmp_bulletPoint->second, result.bulletPoint);
5695
+ }
5696
+ auto tmp_nestedBulletPoint = map.find("nestedBulletPoint");
5697
+ if (tmp_nestedBulletPoint != map.end()) {
5698
+ fromRawValue(context, tmp_nestedBulletPoint->second, result.nestedBulletPoint);
5699
+ }
5700
+ auto tmp_orderedItem = map.find("orderedItem");
5701
+ if (tmp_orderedItem != map.end()) {
5702
+ fromRawValue(context, tmp_orderedItem->second, result.orderedItem);
5703
+ }
5704
+ auto tmp_nestedOrderedItem = map.find("nestedOrderedItem");
5705
+ if (tmp_nestedOrderedItem != map.end()) {
5706
+ fromRawValue(context, tmp_nestedOrderedItem->second, result.nestedOrderedItem);
5707
+ }
5708
+ }
5709
+
5710
+ static inline std::string toString(const EnrichedMarkdownTextAccessibilityLabelsListStruct &value) {
5711
+ return "[Object EnrichedMarkdownTextAccessibilityLabelsListStruct]";
5712
+ }
5713
+
5714
+ #ifdef RN_SERIALIZABLE_STATE
5715
+ static inline folly::dynamic toDynamic(const EnrichedMarkdownTextAccessibilityLabelsListStruct &value) {
5716
+ return value.toDynamic();
5717
+ }
5718
+ #endif
5719
+
5720
+ struct EnrichedMarkdownTextAccessibilityLabelsBlockquoteStruct {
5721
+ std::string quote{};
5722
+ std::string nestedQuote{};
5723
+
5724
+
5725
+ #ifdef RN_SERIALIZABLE_STATE
5726
+ bool operator==(const EnrichedMarkdownTextAccessibilityLabelsBlockquoteStruct&) const = default;
5727
+
5728
+ folly::dynamic toDynamic() const {
5729
+ folly::dynamic result = folly::dynamic::object();
5730
+ result["quote"] = quote;
5731
+ result["nestedQuote"] = nestedQuote;
5732
+ return result;
5733
+ }
5734
+ #endif
5735
+ };
5736
+
5737
+ static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextAccessibilityLabelsBlockquoteStruct &result) {
5738
+ auto map = (std::unordered_map<std::string, RawValue>)value;
5739
+
5740
+ auto tmp_quote = map.find("quote");
5741
+ if (tmp_quote != map.end()) {
5742
+ fromRawValue(context, tmp_quote->second, result.quote);
5743
+ }
5744
+ auto tmp_nestedQuote = map.find("nestedQuote");
5745
+ if (tmp_nestedQuote != map.end()) {
5746
+ fromRawValue(context, tmp_nestedQuote->second, result.nestedQuote);
5747
+ }
5748
+ }
5749
+
5750
+ static inline std::string toString(const EnrichedMarkdownTextAccessibilityLabelsBlockquoteStruct &value) {
5751
+ return "[Object EnrichedMarkdownTextAccessibilityLabelsBlockquoteStruct]";
5752
+ }
5753
+
5754
+ #ifdef RN_SERIALIZABLE_STATE
5755
+ static inline folly::dynamic toDynamic(const EnrichedMarkdownTextAccessibilityLabelsBlockquoteStruct &value) {
5756
+ return value.toDynamic();
5757
+ }
5758
+ #endif
5759
+
5760
+ struct EnrichedMarkdownTextAccessibilityLabelsTableStruct {
5761
+ std::string row{};
5762
+
5763
+
5764
+ #ifdef RN_SERIALIZABLE_STATE
5765
+ bool operator==(const EnrichedMarkdownTextAccessibilityLabelsTableStruct&) const = default;
5766
+
5767
+ folly::dynamic toDynamic() const {
5768
+ folly::dynamic result = folly::dynamic::object();
5769
+ result["row"] = row;
5770
+ return result;
5771
+ }
5772
+ #endif
5773
+ };
5774
+
5775
+ static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextAccessibilityLabelsTableStruct &result) {
5776
+ auto map = (std::unordered_map<std::string, RawValue>)value;
5777
+
5778
+ auto tmp_row = map.find("row");
5779
+ if (tmp_row != map.end()) {
5780
+ fromRawValue(context, tmp_row->second, result.row);
5781
+ }
5782
+ }
5783
+
5784
+ static inline std::string toString(const EnrichedMarkdownTextAccessibilityLabelsTableStruct &value) {
5785
+ return "[Object EnrichedMarkdownTextAccessibilityLabelsTableStruct]";
5786
+ }
5787
+
5788
+ #ifdef RN_SERIALIZABLE_STATE
5789
+ static inline folly::dynamic toDynamic(const EnrichedMarkdownTextAccessibilityLabelsTableStruct &value) {
5790
+ return value.toDynamic();
5791
+ }
5792
+ #endif
5793
+
5794
+ struct EnrichedMarkdownTextAccessibilityLabelsMathStruct {
5795
+ std::string equation{};
5796
+
5797
+
5798
+ #ifdef RN_SERIALIZABLE_STATE
5799
+ bool operator==(const EnrichedMarkdownTextAccessibilityLabelsMathStruct&) const = default;
5800
+
5801
+ folly::dynamic toDynamic() const {
5802
+ folly::dynamic result = folly::dynamic::object();
5803
+ result["equation"] = equation;
5804
+ return result;
5805
+ }
5806
+ #endif
5807
+ };
5808
+
5809
+ static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextAccessibilityLabelsMathStruct &result) {
5810
+ auto map = (std::unordered_map<std::string, RawValue>)value;
5811
+
5812
+ auto tmp_equation = map.find("equation");
5813
+ if (tmp_equation != map.end()) {
5814
+ fromRawValue(context, tmp_equation->second, result.equation);
5815
+ }
5816
+ }
5817
+
5818
+ static inline std::string toString(const EnrichedMarkdownTextAccessibilityLabelsMathStruct &value) {
5819
+ return "[Object EnrichedMarkdownTextAccessibilityLabelsMathStruct]";
5820
+ }
5821
+
5822
+ #ifdef RN_SERIALIZABLE_STATE
5823
+ static inline folly::dynamic toDynamic(const EnrichedMarkdownTextAccessibilityLabelsMathStruct &value) {
5824
+ return value.toDynamic();
5825
+ }
5826
+ #endif
5827
+
5828
+ struct EnrichedMarkdownTextAccessibilityLabelsRotorStruct {
5829
+ std::string headings{};
5830
+ std::string links{};
5831
+ std::string images{};
5832
+
5833
+
5834
+ #ifdef RN_SERIALIZABLE_STATE
5835
+ bool operator==(const EnrichedMarkdownTextAccessibilityLabelsRotorStruct&) const = default;
5836
+
5837
+ folly::dynamic toDynamic() const {
5838
+ folly::dynamic result = folly::dynamic::object();
5839
+ result["headings"] = headings;
5840
+ result["links"] = links;
5841
+ result["images"] = images;
5842
+ return result;
5843
+ }
5844
+ #endif
5845
+ };
5846
+
5847
+ static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextAccessibilityLabelsRotorStruct &result) {
5848
+ auto map = (std::unordered_map<std::string, RawValue>)value;
5849
+
5850
+ auto tmp_headings = map.find("headings");
5851
+ if (tmp_headings != map.end()) {
5852
+ fromRawValue(context, tmp_headings->second, result.headings);
5853
+ }
5854
+ auto tmp_links = map.find("links");
5855
+ if (tmp_links != map.end()) {
5856
+ fromRawValue(context, tmp_links->second, result.links);
5857
+ }
5858
+ auto tmp_images = map.find("images");
5859
+ if (tmp_images != map.end()) {
5860
+ fromRawValue(context, tmp_images->second, result.images);
5861
+ }
5862
+ }
5863
+
5864
+ static inline std::string toString(const EnrichedMarkdownTextAccessibilityLabelsRotorStruct &value) {
5865
+ return "[Object EnrichedMarkdownTextAccessibilityLabelsRotorStruct]";
5866
+ }
5867
+
5868
+ #ifdef RN_SERIALIZABLE_STATE
5869
+ static inline folly::dynamic toDynamic(const EnrichedMarkdownTextAccessibilityLabelsRotorStruct &value) {
5870
+ return value.toDynamic();
5871
+ }
5872
+ #endif
5873
+
5874
+ struct EnrichedMarkdownTextAccessibilityLabelsStruct {
5875
+ EnrichedMarkdownTextAccessibilityLabelsListStruct list{};
5876
+ EnrichedMarkdownTextAccessibilityLabelsBlockquoteStruct blockquote{};
5877
+ EnrichedMarkdownTextAccessibilityLabelsTableStruct table{};
5878
+ EnrichedMarkdownTextAccessibilityLabelsMathStruct math{};
5879
+ EnrichedMarkdownTextAccessibilityLabelsRotorStruct rotor{};
5880
+
5881
+
5882
+ #ifdef RN_SERIALIZABLE_STATE
5883
+ bool operator==(const EnrichedMarkdownTextAccessibilityLabelsStruct&) const = default;
5884
+
5885
+ folly::dynamic toDynamic() const {
5886
+ folly::dynamic result = folly::dynamic::object();
5887
+ result["list"] = ::facebook::react::toDynamic(list);
5888
+ result["blockquote"] = ::facebook::react::toDynamic(blockquote);
5889
+ result["table"] = ::facebook::react::toDynamic(table);
5890
+ result["math"] = ::facebook::react::toDynamic(math);
5891
+ result["rotor"] = ::facebook::react::toDynamic(rotor);
5892
+ return result;
5893
+ }
5894
+ #endif
5895
+ };
5896
+
5897
+ static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextAccessibilityLabelsStruct &result) {
5898
+ auto map = (std::unordered_map<std::string, RawValue>)value;
5899
+
5900
+ auto tmp_list = map.find("list");
5901
+ if (tmp_list != map.end()) {
5902
+ fromRawValue(context, tmp_list->second, result.list);
5903
+ }
5904
+ auto tmp_blockquote = map.find("blockquote");
5905
+ if (tmp_blockquote != map.end()) {
5906
+ fromRawValue(context, tmp_blockquote->second, result.blockquote);
5907
+ }
5908
+ auto tmp_table = map.find("table");
5909
+ if (tmp_table != map.end()) {
5910
+ fromRawValue(context, tmp_table->second, result.table);
5911
+ }
5912
+ auto tmp_math = map.find("math");
5913
+ if (tmp_math != map.end()) {
5914
+ fromRawValue(context, tmp_math->second, result.math);
5915
+ }
5916
+ auto tmp_rotor = map.find("rotor");
5917
+ if (tmp_rotor != map.end()) {
5918
+ fromRawValue(context, tmp_rotor->second, result.rotor);
5919
+ }
5920
+ }
5921
+
5922
+ static inline std::string toString(const EnrichedMarkdownTextAccessibilityLabelsStruct &value) {
5923
+ return "[Object EnrichedMarkdownTextAccessibilityLabelsStruct]";
5924
+ }
5925
+
5926
+ #ifdef RN_SERIALIZABLE_STATE
5927
+ static inline folly::dynamic toDynamic(const EnrichedMarkdownTextAccessibilityLabelsStruct &value) {
5928
+ return value.toDynamic();
5929
+ }
5930
+ #endif
5139
5931
  class EnrichedMarkdownTextProps final : public ViewProps {
5140
5932
  public:
5141
5933
  EnrichedMarkdownTextProps() = default;
@@ -5158,6 +5950,7 @@ class EnrichedMarkdownTextProps final : public ViewProps {
5158
5950
  std::string spoilerOverlay{std::string{"particles"}};
5159
5951
  std::vector<EnrichedMarkdownTextContextMenuItemsStruct> contextMenuItems{};
5160
5952
  EnrichedMarkdownTextSelectionMenuConfigStruct selectionMenuConfig{};
5953
+ EnrichedMarkdownTextAccessibilityLabelsStruct accessibilityLabels{};
5161
5954
  std::string textBreakStrategy{std::string{"highQuality"}};
5162
5955
  std::string lineBreakStrategyIOS{std::string{"none"}};
5163
5956
  std::string writingDirection{std::string{"first-strong"}};