react-native-enriched-markdown-scaffold 0.6.0-scaffold.8 → 0.7.4-scaffold.2
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 -0
- 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/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 +89 -11
- 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/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/utils/common/MarkdownViewManagerUtils.kt +30 -0
- 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/views/MathContainerView.kt +24 -2
- 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/generated/ReactCodegen/EnrichedMarkdownTextSpec/Props.cpp +20 -0
- package/ios/generated/ReactCodegen/EnrichedMarkdownTextSpec/Props.h +744 -0
- 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/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 +230 -29
- package/ios/input/styles/ENRMBoldStyleHandler.mm +3 -2
- package/ios/input/styles/ENRMItalicStyleHandler.mm +3 -2
- package/ios/renderer/AttributedRenderer.m +51 -6
- package/ios/renderer/ENRMMathInlineRenderer.m +5 -1
- package/ios/styles/ENRMFontSlot.h +1 -1
- 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/views/ENRMMathContainerView.h +8 -0
- package/ios/views/ENRMMathContainerView.m +7 -5
- 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 -0
- package/lib/module/EnrichedMarkdownTextInput.js +48 -1
- package/lib/module/EnrichedMarkdownTextInput.js.map +1 -1
- package/lib/module/EnrichedMarkdownTextInputNativeComponent.ts +35 -0
- package/lib/module/EnrichedMarkdownTextNativeComponent.ts +37 -0
- 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/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 -0
- package/lib/typescript/src/EnrichedMarkdownNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/EnrichedMarkdownTextInput.d.ts +55 -1
- package/lib/typescript/src/EnrichedMarkdownTextInput.d.ts.map +1 -1
- package/lib/typescript/src/EnrichedMarkdownTextInputNativeComponent.d.ts +30 -0
- package/lib/typescript/src/EnrichedMarkdownTextInputNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/EnrichedMarkdownTextNativeComponent.d.ts +34 -0
- 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/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/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 -0
- package/src/EnrichedMarkdownTextInput.tsx +117 -1
- package/src/EnrichedMarkdownTextInputNativeComponent.ts +35 -0
- package/src/EnrichedMarkdownTextNativeComponent.ts +37 -0
- package/src/accessibilityLabelDefaults.ts +83 -0
- package/src/index.tsx +11 -0
- package/src/native/EnrichedMarkdownText.tsx +120 -6
- package/src/normalizeMenuItem.ts +52 -0
- package/src/types/AccessibilityLabels.ts +118 -0
- package/src/types/MarkdownTextProps.ts +74 -9
- 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
|
@@ -2211,6 +2211,11 @@ static inline void fromRawValue(const PropsParserContext& context, const RawValu
|
|
|
2211
2211
|
struct EnrichedMarkdownSelectionMenuConfigStruct {
|
|
2212
2212
|
bool copyAsMarkdown{false};
|
|
2213
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{};
|
|
2214
2219
|
|
|
2215
2220
|
|
|
2216
2221
|
#ifdef RN_SERIALIZABLE_STATE
|
|
@@ -2220,6 +2225,11 @@ struct EnrichedMarkdownSelectionMenuConfigStruct {
|
|
|
2220
2225
|
folly::dynamic result = folly::dynamic::object();
|
|
2221
2226
|
result["copyAsMarkdown"] = copyAsMarkdown;
|
|
2222
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);
|
|
2223
2233
|
return result;
|
|
2224
2234
|
}
|
|
2225
2235
|
#endif
|
|
@@ -2236,6 +2246,26 @@ static inline void fromRawValue(const PropsParserContext& context, const RawValu
|
|
|
2236
2246
|
if (tmp_copyImageUrl != map.end()) {
|
|
2237
2247
|
fromRawValue(context, tmp_copyImageUrl->second, result.copyImageUrl);
|
|
2238
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
|
+
}
|
|
2239
2269
|
}
|
|
2240
2270
|
|
|
2241
2271
|
static inline std::string toString(const EnrichedMarkdownSelectionMenuConfigStruct &value) {
|
|
@@ -2247,6 +2277,270 @@ static inline folly::dynamic toDynamic(const EnrichedMarkdownSelectionMenuConfig
|
|
|
2247
2277
|
return value.toDynamic();
|
|
2248
2278
|
}
|
|
2249
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
|
|
2250
2544
|
class EnrichedMarkdownProps final : public ViewProps {
|
|
2251
2545
|
public:
|
|
2252
2546
|
EnrichedMarkdownProps() = default;
|
|
@@ -2269,6 +2563,7 @@ class EnrichedMarkdownProps final : public ViewProps {
|
|
|
2269
2563
|
std::string spoilerOverlay{std::string{"particles"}};
|
|
2270
2564
|
std::vector<EnrichedMarkdownContextMenuItemsStruct> contextMenuItems{};
|
|
2271
2565
|
EnrichedMarkdownSelectionMenuConfigStruct selectionMenuConfig{};
|
|
2566
|
+
EnrichedMarkdownAccessibilityLabelsStruct accessibilityLabels{};
|
|
2272
2567
|
std::string textBreakStrategy{std::string{"highQuality"}};
|
|
2273
2568
|
std::string lineBreakStrategyIOS{std::string{"none"}};
|
|
2274
2569
|
std::string writingDirection{std::string{"first-strong"}};
|
|
@@ -2812,6 +3107,158 @@ static inline void fromRawValue(const PropsParserContext& context, const RawValu
|
|
|
2812
3107
|
}
|
|
2813
3108
|
|
|
2814
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
|
+
|
|
2815
3262
|
struct EnrichedMarkdownTextInputLinkRegexStruct {
|
|
2816
3263
|
std::string pattern{};
|
|
2817
3264
|
bool caseInsensitive{false};
|
|
@@ -2894,6 +3341,8 @@ class EnrichedMarkdownTextInputProps final : public ViewProps {
|
|
|
2894
3341
|
std::string fontWeight{};
|
|
2895
3342
|
bool isOnChangeMarkdownSet{false};
|
|
2896
3343
|
std::vector<EnrichedMarkdownTextInputContextMenuItemsStruct> contextMenuItems{};
|
|
3344
|
+
EnrichedMarkdownTextInputSelectionMenuConfigStruct selectionMenuConfig{};
|
|
3345
|
+
EnrichedMarkdownTextInputFormatMenuConfigStruct formatMenuConfig{};
|
|
2897
3346
|
EnrichedMarkdownTextInputLinkRegexStruct linkRegex{};
|
|
2898
3347
|
std::vector<std::string> mentionIndicators{};
|
|
2899
3348
|
std::string writingDirection{std::string{"first-strong"}};
|
|
@@ -5100,6 +5549,11 @@ static inline void fromRawValue(const PropsParserContext& context, const RawValu
|
|
|
5100
5549
|
struct EnrichedMarkdownTextSelectionMenuConfigStruct {
|
|
5101
5550
|
bool copyAsMarkdown{false};
|
|
5102
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{};
|
|
5103
5557
|
|
|
5104
5558
|
|
|
5105
5559
|
#ifdef RN_SERIALIZABLE_STATE
|
|
@@ -5109,6 +5563,11 @@ struct EnrichedMarkdownTextSelectionMenuConfigStruct {
|
|
|
5109
5563
|
folly::dynamic result = folly::dynamic::object();
|
|
5110
5564
|
result["copyAsMarkdown"] = copyAsMarkdown;
|
|
5111
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);
|
|
5112
5571
|
return result;
|
|
5113
5572
|
}
|
|
5114
5573
|
#endif
|
|
@@ -5125,6 +5584,26 @@ static inline void fromRawValue(const PropsParserContext& context, const RawValu
|
|
|
5125
5584
|
if (tmp_copyImageUrl != map.end()) {
|
|
5126
5585
|
fromRawValue(context, tmp_copyImageUrl->second, result.copyImageUrl);
|
|
5127
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
|
+
}
|
|
5128
5607
|
}
|
|
5129
5608
|
|
|
5130
5609
|
static inline std::string toString(const EnrichedMarkdownTextSelectionMenuConfigStruct &value) {
|
|
@@ -5136,6 +5615,270 @@ static inline folly::dynamic toDynamic(const EnrichedMarkdownTextSelectionMenuCo
|
|
|
5136
5615
|
return value.toDynamic();
|
|
5137
5616
|
}
|
|
5138
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
|
|
5139
5882
|
class EnrichedMarkdownTextProps final : public ViewProps {
|
|
5140
5883
|
public:
|
|
5141
5884
|
EnrichedMarkdownTextProps() = default;
|
|
@@ -5158,6 +5901,7 @@ class EnrichedMarkdownTextProps final : public ViewProps {
|
|
|
5158
5901
|
std::string spoilerOverlay{std::string{"particles"}};
|
|
5159
5902
|
std::vector<EnrichedMarkdownTextContextMenuItemsStruct> contextMenuItems{};
|
|
5160
5903
|
EnrichedMarkdownTextSelectionMenuConfigStruct selectionMenuConfig{};
|
|
5904
|
+
EnrichedMarkdownTextAccessibilityLabelsStruct accessibilityLabels{};
|
|
5161
5905
|
std::string textBreakStrategy{std::string{"highQuality"}};
|
|
5162
5906
|
std::string lineBreakStrategyIOS{std::string{"none"}};
|
|
5163
5907
|
std::string writingDirection{std::string{"first-strong"}};
|