diff --git a/.github/ci-paths.yml b/.github/ci-paths.yml
index 87fc924b6..baf6de02e 100644
--- a/.github/ci-paths.yml
+++ b/.github/ci-paths.yml
@@ -50,6 +50,7 @@ desktop:
app:
- "packages/app/**"
- "packages/expo-two-way-audio/**"
+ - "packages/react-native-enriched-markdown/**"
sdk:
- "packages/plugin/**"
@@ -80,6 +81,7 @@ browser:
- "packages/app/index.ts"
- "packages/app/*config.{cjs,js,ts}"
- "packages/app/package.json"
+ - "packages/react-native-enriched-markdown/**"
relay:
- "packages/relay/**"
diff --git a/.oxfmtrc.json b/.oxfmtrc.json
index 5838c7dc1..e5fab8507 100644
--- a/.oxfmtrc.json
+++ b/.oxfmtrc.json
@@ -11,5 +11,10 @@
"arrowParens": "always",
"bracketSameLine": false,
"bracketSpacing": true,
- "ignorePatterns": ["*.lock", "**/*.gen.ts", "**/*.gen.tsx"]
+ "ignorePatterns": [
+ "*.lock",
+ "**/*.gen.ts",
+ "**/*.gen.tsx",
+ "packages/react-native-enriched-markdown/**"
+ ]
}
diff --git a/.oxlintrc.json b/.oxlintrc.json
index fdbb91730..474a249b0 100644
--- a/.oxlintrc.json
+++ b/.oxlintrc.json
@@ -3,7 +3,7 @@
"options": {
"typeAware": false
},
- "ignorePatterns": [".dev/**"],
+ "ignorePatterns": [".dev/**", "packages/react-native-enriched-markdown/**"],
"plugins": ["react", "react-perf", "unicorn", "typescript", "oxc", "import", "promise"],
"jsPlugins": ["./scripts/oxlint/paseo-plugin.mjs"],
"categories": {
diff --git a/CLAUDE.md b/CLAUDE.md
index 1496bd407..e188836ab 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -56,7 +56,7 @@ At the start of non-trivial work, list `docs/` and skim anything relevant to the
| [docs/terminal-rendering.md](docs/terminal-rendering.md) | Native terminal view: xterm owns the grid, cluster placement, emoji widths, mixed-direction limits, render regression |
| [docs/agent-stream-performance.md](docs/agent-stream-performance.md) | Assistant text pipeline — coalescing window, paced reveal, why arrival lumps are smoothed at render |
| [docs/agent-stream-disclosure.md](docs/agent-stream-disclosure.md) | Expand/collapse in the chat timeline — hold contract, native anchor sequence, frame spacing, render-window cost |
-| [docs/markdown-renderer.md](docs/markdown-renderer.md) | Shared Markdown engine, native selection, links, images and library constraints |
+| [docs/markdown-renderer.md](docs/markdown-renderer.md) | Shared Markdown engine, the vendored library fork, native selection, links, images and library constraints |
| [docs/native-text-selection.md](docs/native-text-selection.md) | Native diagram grouping, selection boundaries and leading inline image limitations |
| [docs/file-observation.md](docs/file-observation.md) | Recursive watcher ownership, Linux constraints, teardown invariants, and Parcel comparison |
| [docs/testing.md](docs/testing.md) | TDD workflow, determinism, real dependencies over mocks, test organization |
diff --git a/docs/markdown-renderer.md b/docs/markdown-renderer.md
index 1bde975d2..5f7a3d1af 100644
--- a/docs/markdown-renderer.md
+++ b/docs/markdown-renderer.md
@@ -14,19 +14,38 @@ Workspace file links use the shared file-link resolver. The workspace supplies i
Pass `external` for author-controlled Markdown from outside the host, such as a plugin README. It follows the registry's overview contract in `packages/protocol/src/plugin-overview.ts`, which the website also uses: only absolute https links and images work, and any other destination renders as its label or alt text. The parser still autolinks bare `http://`, `www.` and email text, so a link press checks the URL again and opens only https. None of the workspace recognition above applies, so `Node.js` is prose, not a file. The lines of a paragraph join, as they do on the README's forge.
-Resolve workspace image paths over the existing session RPC, then give the library a cached native file URL or web blob URL. HTTP(S) images pass through unchanged. This preserves relay, SSH and local socket connections, which do not expose a daemon HTTP endpoint. Each mounted renderer owns its image acquisition identity, so a later reply reads a rewritten path again while the earlier mounted reply retains its snapshot. Image taps open the attachment lightbox. File previews resolve relative images against the Markdown file's directory. An image alone on its line becomes its own paragraph before the library sees it, so it renders as a block on every platform; the library only treats sole-child paragraph images as blocks, and with hard soft breaks every newline is a break node, which left own-line images inline on iOS and web. Images that share a line with text stay inline at line height and keep their aspect ratio. A linked image counts as an image, so review-bot badges such as `[](url) Confidence` stay inline on web; the library's web renderer only checked direct paragraph children, so it rendered them as full-width block images (local patch in `patches/react-native-enriched-markdown+*.patch`).
+Resolve workspace image paths over the existing session RPC, then give the library a cached native file URL or web blob URL. HTTP(S) images pass through unchanged. This preserves relay, SSH and local socket connections, which do not expose a daemon HTTP endpoint. Each mounted renderer owns its image acquisition identity, so a later reply reads a rewritten path again while the earlier mounted reply retains its snapshot. Image taps open the attachment lightbox. File previews resolve relative images against the Markdown file's directory. An image alone on its line becomes its own paragraph before the library sees it, so it renders as a block on every platform; the library only treats sole-child paragraph images as blocks, and with hard soft breaks every newline is a break node, which left own-line images inline on iOS and web. Images that share a line with text stay inline at line height and keep their aspect ratio. A linked image counts as an image, so review-bot badges such as `[](url) Confidence` stay inline on web; the library's web renderer only checked direct paragraph children, so it rendered them as full-width block images (fixed in the fork).
+
+## The fork
+
+The library is a private workspace, `packages/react-native-enriched-markdown`. It is upstream [enriched-markdown](https://github.com/software-mansion/enriched-markdown) at npm `1.2.0-nightly-20261014-766fc0e67` (upstream commit `766fc0e67`) plus Paseo's changes, which lived in a `patch-package` patch until the package moved into the repository. It is never published. Keep the name `react-native-enriched-markdown`: autolinking, the Gradle project `:react-native-enriched-markdown`, the CocoaPods spec and app imports all use it.
+
+The package keeps the npm tarball's layout, including its build output:
+
+- Metro, Vitest and TypeScript load `lib/`, not `src/`. A JavaScript change edits `src/` and the matching `lib/module` and `lib/typescript` files.
+- `android/generated` and `ios/generated` are checked-in codegen output (`includesGeneratedCode`). A change to a native component spec regenerates both; `scripts/postinstall-patches.test.mjs` compares them against the specs.
+- `src/web/wasm/md4c.js` and `lib/module/web/wasm/md4c.js` are an Emscripten build of `cpp/md4c`. A parser change rebuilds them with upstream's `packages/core/cpp/wasm/build.sh`.
+- Upstream's Gradle, CMake and CocoaPods scripts detect upstream's own monorepo by the paths `packages/core` and a root `vendor/`. Do not add either path to this repository.
+- `postinstall.mjs` downloads the tree-sitter grammars into the ignored `cpp/highlight/vendor/grammars` and `vendor/tree-sitter`. The `enriched-markdown` block in `packages/app/package.json` chooses the languages.
+
+CI does not build native code or run the fork's Robolectric suites. Run `npm run test:android --workspace=@getpaseo/app` for Android changes. Native changes require a client rebuild; JavaScript refresh cannot enable compiled grammars.
+
+Some fork changes are backports. A sync past the upstream version drops them in favour of upstream's code:
+
+| Fork change | Upstream | Released in |
+| ----------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------- |
+| Android measurements survive parent clones | [#924](https://github.com/software-mansion/enriched-markdown/pull/924) | after `1.2.0-nightly-20261019-926ef06f0` |
+| Android nested list items start their text after their own marker | [#1015](https://github.com/software-mansion/enriched-markdown/pull/1015), [#1023](https://github.com/software-mansion/enriched-markdown/pull/1023) (Android) | `1.2.0` |
## Engine constraints
-The pinned nightly has the same React Native package and core source trees as upstream commit `73ac5085eb1fdc743973b3473d4dba65abad5261`. Compatibility was checked with React Native 0.81.5. Native dependencies must be rebuilt when changing the highlighting configuration; JavaScript refresh cannot enable compiled grammars.
-
Math and video are disabled. Task lists and admonitions are enabled; task checkboxes are read-only. Source adaptation spaces adjacent empty GFM table delimiters before escaping prose spoiler delimiters and decodes entity text before the engine can discard it. Code spans and fences keep their literal source. Comment HTML is normalized to Markdown before parsing; details show their summary and body expanded.
Mermaid fences use the existing isolated diagram runtime and fullscreen viewer. Web dispatches them through the library’s code-block override. Native has no block-renderer hook, so the renderer extracts only Mermaid fences and places the existing WebView host between library-rendered segments. This is the only block exception; see [native selection limitations](native-text-selection.md) for diagram grouping and leading inline images. Streaming keeps the last valid diagram visible while the next revision renders.
-Native code blocks use the library's copy control and compiled grammars. Web code blocks use `HighlightedCodeBlock` through the library's `renderers.codeBlock` override. Selection copy has to tell links Paseo recognized in the text (paths, forge references, code spans) from links in the Markdown, so the web link renderer marks the recognized ones. Plain-text paste carries them as the text the reply showed, and rich paste keeps them as links only when they point to an `http` or `https` URL. Authored links and parser autolinks such as a bare `www.example.com` copy as links. The patch also keeps the library's block spacing around the web code block override, preserves web list numbering and link titles, marks pending parses with `aria-busy` so Find waits for rendered text, and carries link syntax through native and web tap events. Web inline code inside a link inherits only the link colour; its code font, size and background stay intact. Keep link variants colour-only: native pills replace text runs and prevent paths from wrapping; Android pills also use the surrounding block’s font size. The package patch is tracked by [upstream PR #997](https://github.com/software-mansion/enriched-markdown/pull/997); remove the patch when the pinned release includes it.
+Native code blocks use the library's copy control and compiled grammars. Web code blocks use `HighlightedCodeBlock` through the library's `renderers.codeBlock` override. Selection copy has to tell links Paseo recognized in the text (paths, forge references, code spans) from links in the Markdown, so the web link renderer marks the recognized ones. Plain-text paste carries them as the text the reply showed, and rich paste keeps them as links only when they point to an `http` or `https` URL. Authored links and parser autolinks such as a bare `www.example.com` copy as links. The fork also keeps the library's block spacing around the web code block override, preserves web list numbering and link titles, marks pending parses with `aria-busy` so Find waits for rendered text, and carries link syntax through native and web tap events. Web inline code inside a link inherits only the link colour; its code font, size and background stay intact. Keep link variants colour-only: native pills replace text runs and prevent paths from wrapping; Android pills also use the surrounding block’s font size. [Upstream PR #997](https://github.com/software-mansion/enriched-markdown/pull/997) tracks these changes.
-The package patch also keeps overflowing native horizontal blocks in control of their drags: Android claims parent interception at touch-down and releases it for vertical drags so the chat list can scroll; iOS keeps its scroll recognizer active for outward drags at the leading edge. This prevents compact sidebar pans from taking block scrolling without changing sidebar swipes on prose or non-overflowing blocks. Native changes require a client rebuild.
+The fork also keeps overflowing native horizontal blocks in control of their drags: Android claims parent interception at touch-down and releases it for vertical drags so the chat list can scroll; iOS keeps its scroll recognizer active for outward drags at the leading edge. This prevents compact sidebar pans from taking block scrolling without changing sidebar swipes on prose or non-overflowing blocks. Native changes require a client rebuild.
On iOS a newly mounted Markdown view paints empty for a frame or more after it is laid out at its measured height: the library parses even a view's first content on a background queue and applies it in a later main-queue turn. Expanding a turn in chat therefore shows its rows in place with the text arriving a frame later (165 ms when the mount keeps the main thread busy). Android paints the text in the first frame. Rendering a view's first content synchronously fixes the frame but costs frame time when a fling mounts history rows, so the app keeps the library's behavior until [enriched-markdown #1131](https://github.com/software-mansion/enriched-markdown/issues/1131) is resolved.
diff --git a/knip.json b/knip.json
index e4f5cec73..0879c2862 100644
--- a/knip.json
+++ b/knip.json
@@ -72,6 +72,7 @@
"project": ["src/**/*.ts"]
}
},
+ "ignoreWorkspaces": ["packages/react-native-enriched-markdown"],
"ignoreDependencies": [
"sherpa-onnx-node",
"@playwright/test",
diff --git a/nix/desktop-package.nix b/nix/desktop-package.nix
index 48cbd9bbb..fe4515ad7 100644
--- a/nix/desktop-package.nix
+++ b/nix/desktop-package.nix
@@ -30,6 +30,8 @@ buildNpmPackage {
# Exclude mobile-only platform code (we only need the web/electron build)
!(lib.hasPrefix "/packages/app/android" relPath)
&& !(lib.hasPrefix "/packages/app/ios" relPath)
+ && !(lib.hasPrefix "/packages/react-native-enriched-markdown/android" relPath)
+ && !(lib.hasPrefix "/packages/react-native-enriched-markdown/ios" relPath)
# Website is unrelated to the desktop app
&& !(lib.hasPrefix "/packages/website" relPath)
# Documentation, CI definitions and agent/editor configuration. None of
diff --git a/package-lock.json b/package-lock.json
index 2294a85b3..7fcf3f35f 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -12,6 +12,7 @@
"workspaces": [
"plugins",
"packages/expo-two-way-audio",
+ "packages/react-native-enriched-markdown",
"packages/highlight",
"packages/plugin",
"packages/protocol",
@@ -31902,6 +31903,10 @@
"react-native": "*"
}
},
+ "node_modules/react-native-enriched-markdown": {
+ "resolved": "packages/react-native-enriched-markdown",
+ "link": true
+ },
"node_modules/react-native-gesture-handler": {
"version": "2.32.0",
"resolved": "https://registry.npmjs.org/react-native-gesture-handler/-/react-native-gesture-handler-2.32.0.tgz",
@@ -37561,7 +37566,7 @@
"react-native": "0.86.3",
"react-native-draggable-flatlist": "^4.0.3",
"react-native-edge-to-edge": "^1.7.0",
- "react-native-enriched-markdown": "1.2.0-nightly-20261014-766fc0e67",
+ "react-native-enriched-markdown": "*",
"react-native-gesture-handler": "~2.32.0",
"react-native-keyboard-controller": "1.21.12",
"react-native-nitro-modules": "0.35.5",
@@ -39474,23 +39479,6 @@
"dev": true,
"license": "MIT"
},
- "packages/app/node_modules/react-native-enriched-markdown": {
- "version": "1.2.0-nightly-20261014-766fc0e67",
- "resolved": "https://registry.npmjs.org/react-native-enriched-markdown/-/react-native-enriched-markdown-1.2.0-nightly-20261014-766fc0e67.tgz",
- "integrity": "sha512-PyYAAVJAyjlcqHXgSnzxok13MDmyxs/nt46hHIOBdCc0prfaL2Ef6nYkZu7fFCeaETOJXd/xQr4n2/79I+gvdA==",
- "hasInstallScript": true,
- "license": "MIT",
- "peerDependencies": {
- "katex": ">=0.16.0",
- "react": "*",
- "react-native": "*"
- },
- "peerDependenciesMeta": {
- "katex": {
- "optional": true
- }
- }
- },
"packages/app/node_modules/react-native-keyboard-controller": {
"version": "1.21.12",
"resolved": "https://registry.npmjs.org/react-native-keyboard-controller/-/react-native-keyboard-controller-1.21.12.tgz",
@@ -40303,6 +40291,21 @@
"node": ">=10"
}
},
+ "packages/react-native-enriched-markdown": {
+ "version": "0.17.1",
+ "hasInstallScript": true,
+ "license": "MIT",
+ "peerDependencies": {
+ "katex": ">=0.16.0",
+ "react": "*",
+ "react-native": "*"
+ },
+ "peerDependenciesMeta": {
+ "katex": {
+ "optional": true
+ }
+ }
+ },
"packages/relay": {
"name": "@getpaseo/relay",
"version": "0.17.3",
diff --git a/package.json b/package.json
index 315249878..8ea1d2792 100644
--- a/package.json
+++ b/package.json
@@ -23,6 +23,7 @@
"workspaces": [
"plugins",
"packages/expo-two-way-audio",
+ "packages/react-native-enriched-markdown",
"packages/highlight",
"packages/plugin",
"packages/protocol",
diff --git a/packages/app/e2e/mobile/markdown-formatting/README.md b/packages/app/e2e/mobile/markdown-formatting/README.md
index 28cdb87c6..51f9fbe86 100644
--- a/packages/app/e2e/mobile/markdown-formatting/README.md
+++ b/packages/app/e2e/mobile/markdown-formatting/README.md
@@ -28,12 +28,13 @@ bounds cannot establish measurement parity.
compares them with the shipped headers. This catches missing C++ fields in the
measurement path, which the Kotlin tests cannot exercise.
-The package patch contains `InlineCodeFormattingTest`, which exercises actual
-Android spans in Robolectric native graphics mode, covering draw and measurement,
-span order, code inside paragraph/heading sizes, bold/italic composition, and
-links preserving code and emphasized prose fonts.
-It runs in the existing `test:android` CI job. To run only this regression locally,
-from `packages/app/android` after Expo prebuild:
+The vendored library (`packages/react-native-enriched-markdown`) contains
+`InlineCodeFormattingTest`, which exercises actual Android spans in Robolectric
+native graphics mode, covering draw and measurement, span order, code inside
+paragraph/heading sizes, bold/italic composition, and links preserving code and
+emphasized prose fonts. It runs in `npm run test:android`; CI does not run it.
+To run only this regression locally, from `packages/app/android` after Expo
+prebuild:
```sh
./gradlew :react-native-enriched-markdown:testDebugUnitTest \
diff --git a/packages/app/package.json b/packages/app/package.json
index d2ee413ce..43703353d 100644
--- a/packages/app/package.json
+++ b/packages/app/package.json
@@ -40,7 +40,7 @@
"dev:ios": "npm --prefix ../.. run build:client && cross-env APP_VARIANT=development expo run:ios",
"build:apk": "npm --prefix ../.. run build:apk",
"build:apk:arm64": "npm --prefix ../.. run build:apk:arm64",
- "test:android": "expo prebuild --platform android --no-install && cd android && ./gradlew :paseo-native-trace:testReleaseUnitTest :paseo-hardware-keyboard:testReleaseUnitTest :react-native-enriched-markdown:testReleaseUnitTest --tests '*InlineCodeFormattingTest' --no-daemon --max-workers=2 -Dorg.gradle.parallel=false"
+ "test:android": "expo prebuild --platform android --no-install && cd android && ./gradlew :paseo-native-trace:testReleaseUnitTest :paseo-hardware-keyboard:testReleaseUnitTest :react-native-enriched-markdown:testReleaseUnitTest --tests '*InlineCodeFormattingTest' --tests '*ListRenderingTest' --tests '*TaskListInteractionTest' --tests '*ListBlockquoteMeasurementTest' --no-daemon --max-workers=2 -Dorg.gradle.parallel=false"
},
"dependencies": {
"@codemirror/commands": "6.10.4",
@@ -125,7 +125,7 @@
"react-native": "0.86.3",
"react-native-draggable-flatlist": "^4.0.3",
"react-native-edge-to-edge": "^1.7.0",
- "react-native-enriched-markdown": "1.2.0-nightly-20261014-766fc0e67",
+ "react-native-enriched-markdown": "*",
"react-native-gesture-handler": "~2.32.0",
"react-native-keyboard-controller": "1.21.12",
"react-native-nitro-modules": "0.35.5",
diff --git a/packages/react-native-enriched-markdown/.gitignore b/packages/react-native-enriched-markdown/.gitignore
new file mode 100644
index 000000000..79ebd0345
--- /dev/null
+++ b/packages/react-native-enriched-markdown/.gitignore
@@ -0,0 +1,10 @@
+# Native assets the postinstall script downloads (see postinstall.mjs).
+/cpp/highlight/vendor/grammars/
+/cpp/highlight/vendor/tree-sitter/
+/ios/vendor/
+/ios/vendor.staging/
+/ios/vendor.backup/
+
+# Android build output when Gradle builds this library from source.
+/android/.cxx/
+/android/.gradle/
diff --git a/packages/react-native-enriched-markdown/LICENSE b/packages/react-native-enriched-markdown/LICENSE
new file mode 100644
index 000000000..8d7210586
--- /dev/null
+++ b/packages/react-native-enriched-markdown/LICENSE
@@ -0,0 +1,20 @@
+MIT License
+
+Copyright (c) 2025 Software Mansion
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/packages/react-native-enriched-markdown/README.md b/packages/react-native-enriched-markdown/README.md
new file mode 100644
index 000000000..9bb27e015
--- /dev/null
+++ b/packages/react-native-enriched-markdown/README.md
@@ -0,0 +1,287 @@
+
+
+
+
+
+
+
+
+
+# react-native-enriched-markdown
+
+`react-native-enriched-markdown` is a powerful React Native library that renders Markdown content as native text and provides a rich text input with Markdown output. It supports iOS, Android, macOS, and Web, and requires the New Architecture (Fabric) for native platforms.
+
+### EnrichedMarkdownText
+
+- ⚡ Fully native text rendering (no WebView)
+- 🌐 Web support via [react-native-web](https://necolas.github.io/react-native-web/) + [md4c](https://github.com/mity/md4c) compiled to WebAssembly
+- 🎯 High-performance Markdown parsing with [md4c](https://github.com/mity/md4c)
+- 📐 CommonMark standard compliant
+- 📊 GitHub Flavored Markdown (GFM)
+- 🧮 LaTeX math rendering (block `$$...$$` with `flavor="github"`, inline `$...$` in all flavors)
+- 🔀 [Markdown Streaming](../../docs-md/MARKDOWN_STREAMING.md) support (via [react-native-streamdown](https://github.com/software-mansion-labs/react-native-streamdown))
+- 🎨 Fully customizable styles for all elements
+- ✨ Text selection and copy support
+- 📌 Custom text selection context menu items
+- 🔗 Interactive link handling with [per-URL-pattern styling](../../docs-md/MENTIONS.md#link-variants-styling) (`linkVariants`)
+- 💊 [Native link pills](../../docs-md/MENTIONS.md#native-link-pills) — links as rounded chips with an icon and label, per URL pattern or per link (iOS, Android)
+- 📎 [Long-press menus for links](../../docs-md/API_REFERENCE.md#linkcontextmenuitems) with your own items per URL pattern (`linkContextMenuItems`, iOS 17+)
+- 👤 Renders mentions as styled links (compatible with `EnrichedMarkdownTextInput` mention output)
+- 🙈 Spoiler text with animated particle overlay and tap-to-reveal
+- 🖼️ Native image interactions (iOS: Copy, Save to Camera Roll)
+- 🎬 Native video playback — block-level videos via HTML `` tag
+- 🌐 Native platform features (Translate, Look Up, Search Web, Share)
+- 🗣️ Accessibility support (VoiceOver on iOS, TalkBack on Android, semantic HTML on web)
+- 🔄 Full RTL (right-to-left) support including text, lists, blockquotes, tables, and task lists
+
+### EnrichedMarkdownTextInput
+
+- ✏️ Rich text input with Markdown output
+- 🕹️ Imperative API for toggling styles and managing links
+- 📋 Native context menu with formatting submenu
+- 🔍 Real-time style state detection
+- 🔗 Auto-link detection with customizable regex
+- 🔄 Smart copy/paste with Markdown preservation
+- 🎨 Customizable bold, italic, and link colors
+- 👤 [Mentions](../../docs-md/MENTIONS.md) with configurable indicators, suggestion lifecycle events, and per-pattern link styling
+
+Since 2012 [Software Mansion](https://swmansion.com) is a software agency with experience in building web and mobile apps. We are Core React Native Contributors and experts in dealing with all kinds of React Native issues.
+We can help you build your next dream product –
+[Hire us](https://swmansion.com/contact/projects?utm_source=react-native-enriched-markdown&utm_medium=readme).
+
+## Table of Contents
+
+- [Prerequisites](#prerequisites)
+- [Installation](#installation)
+- [Native assets (install-time download)](../../docs-md/NATIVE_ASSETS.md)
+- [EnrichedMarkdownText](#enrichedmarkdowntext-1)
+ - [Usage](../../docs-md/TEXT.md#usage)
+ - [Supported Markdown Elements](../../docs-md/TEXT.md#supported-markdown-elements)
+ - [Copy Options](../../docs-md/TEXT.md#copy-options)
+ - [Accessibility](../../docs-md/TEXT.md#accessibility)
+ - [RTL Support](../../docs-md/TEXT.md#rtl-support)
+ - [Customizing Styles](../../docs-md/TEXT.md#customizing-styles)
+ - [LaTeX Math](../../docs-md/LATEX_MATH.md)
+ - [Image Caching](../../docs-md/IMAGE_CACHING.md)
+ - [Markdown Streaming](../../docs-md/MARKDOWN_STREAMING.md)
+- [EnrichedMarkdownTextInput](#enrichedmarkdowntextinput-1)
+ - [Usage](../../docs-md/INPUT.md#usage)
+ - [Inline Styles](../../docs-md/INPUT.md#inline-styles)
+ - [Links](../../docs-md/INPUT.md#links)
+ - [Auto-Link Detection](../../docs-md/INPUT.md#auto-link-detection)
+ - [Mentions](../../docs-md/MENTIONS.md)
+ - [Style Detection](../../docs-md/INPUT.md#style-detection)
+ - [Other Events](../../docs-md/INPUT.md#other-events)
+ - [Customizing Styles](../../docs-md/INPUT.md#customizing-enrichedmarkdowntextinput--styles)
+- [API Reference](#api-reference)
+- [Testing with Jest](../../docs-md/TESTING.md)
+- [Web Support](../../docs-md/WEB.md)
+- [macOS Support](../../docs-md/MACOS.md)
+- [Compatibility Table](#compatibility-table)
+- [Contributing](#contributing)
+- [Future Plans](#future-plans)
+- [License](#license)
+
+## Prerequisites
+
+**Native (iOS / Android / macOS)**
+
+- Requires [the React Native New Architecture (Fabric)](https://reactnative.dev/architecture/landing-page)
+- See [Compatibility Table](#compatibility-table) for supported React Native versions
+- macOS support via [react-native-macos](https://github.com/microsoft/react-native-macos) `0.81+`
+
+**Web**
+
+- Requires [`react-native-web`](https://necolas.github.io/react-native-web/) and Metro (or another bundler with `.web.tsx` platform resolution)
+- No New Architecture requirement — the web renderer runs entirely in JavaScript via WebAssembly
+- Only `EnrichedMarkdownText` is supported on web (`EnrichedMarkdownTextInput` is native-only)
+- LaTeX math requires the optional [`katex`](https://katex.org/) peer dependency
+
+## Installation
+
+### Web
+
+No steps beyond having `react-native-web` configured. For LaTeX math, install the optional peer dependency:
+
+```sh
+npm install katex
+# or
+yarn add katex
+```
+
+See [Web Support](../../docs-md/WEB.md) for full setup details, supported features, and prop behaviour.
+
+### Bare React Native app (iOS / Android)
+
+#### 1. Install the library
+
+```sh
+yarn add react-native-enriched-markdown
+```
+
+> [!TIP]
+> To try the latest features before they land in a stable release, install the nightly build:
+>
+> ```sh
+> yarn add react-native-enriched-markdown@nightly
+> ```
+>
+> Nightly versions are published to npm automatically and may contain breaking changes.
+
+> [!NOTE]
+> On install, a `postinstall` script downloads the large native assets used by code highlighting
+> and iOS LaTeX math (kept out of the npm tarball to keep it ~1 MB). This needs network access to
+> `registry.npmjs.org` and `github.com`. If you install offline, with `--ignore-scripts`, or with
+> **pnpm** (which blocks dependency scripts by default), see
+> [Native assets](../../docs-md/NATIVE_ASSETS.md) for how to restore them.
+
+#### Configuration
+
+Add an `"enriched-markdown"` block to your app's `package.json` to configure which features are enabled:
+
+```json
+{
+ "enriched-markdown": {
+ "enableCodeHighlight": true,
+ "enableMath": true,
+ "enableVideo": true,
+ "codeHighlightLanguages": ["javascript", "typescript", "python", "swift", "kotlin"]
+ }
+}
+```
+
+| Key | Type | Default | Description |
+|---|---|---|---|
+| `enableCodeHighlight` | `boolean` | `true` | Download and compile tree-sitter grammars for syntax highlighting |
+| `enableMath` | `boolean` | `true` | Download [RaTeX](https://ratex.lites.dev/) for LaTeX math rendering (iOS) and include the Maven dependency (Android) |
+| `enableVideo` | `boolean` | `true` | Enable native video playback. Adds Media3 ExoPlayer (~2-3 MB) on Android; uses built-in AVKit on iOS. Set to `false` to exclude the dependency |
+| `codeHighlightLanguages` | `string[]` | all default grammars | Subset of languages to compile (reduces binary size). Ignored when `enableCodeHighlight` is `false`; an empty array `[]` compiles none (same as disabling). |
+
+Your app's `package.json` is the single source of truth. `postinstall` reads it to decide
+what to **download** into `node_modules`, and the native build (iOS podspec / Android
+`build.gradle`) reads it directly to decide what to **compile and link** — no Podfile ENV
+vars or `gradle.properties` edits needed. Changing a value takes effect on your next
+`pod install` / native rebuild; **enabling** a feature that was off also needs a reinstall
+(`npm install` / `npm rebuild react-native-enriched-markdown`) so its assets get downloaded.
+
+> [!IMPORTANT]
+> **iOS applies config at `pod install`, not at build time.** After editing the `enriched-markdown`
+> block, run `pod install` (a plain `run-ios` reuses the previously resolved pod). When **disabling** a
+> feature that was already compiled in — or narrowing `codeHighlightLanguages` — also do a clean build
+> (`Product > Clean Build Folder`), since Xcode's incremental build can link a stale pod library.
+> Android reconfigures on every build and needs neither step.
+
+> [!TIP]
+> If you don't use a feature, disabling it skips the download **and** excludes it from the native build.
+> See [Skipping the download](../../docs-md/NATIVE_ASSETS.md#skipping-the-download-opt-out) for details.
+
+> [!NOTE]
+> **Monorepos:** the native build reads the **app's** `package.json` (the one next to
+> `ios/`/`android/`), so each app can enable/disable features independently. The download
+> opt-out is resolved where you run the install — usually the workspace root — so to skip a
+> download entirely, put the opt-out in the **root** `package.json`.
+
+> [!NOTE]
+> Migrating from the Expo config plugin or the `ENV` / `gradle.properties` build flags? See
+> [Breaking changes](../../docs-md/BREAKING_CHANGES.md).
+
+#### 2. Install iOS / macOS dependencies
+
+The library includes native code so you will need to re-build the native app.
+
+```sh
+# iOS
+cd ios && bundle install && bundle exec pod install
+
+# macOS (react-native-macos)
+cd macos && bundle install && bundle exec pod install
+```
+
+### Expo app
+
+#### 1. Install the library
+
+```sh
+npx expo install react-native-enriched-markdown
+```
+
+#### 2. Run prebuild
+
+The library includes native code so you will need to re-build the native app.
+
+```sh
+npx expo prebuild
+```
+
+> [!NOTE]
+> The library won't work in Expo Go as it needs native changes.
+
+> [!NOTE]
+> `npx expo install` runs the same `postinstall` asset download described under
+> [Native assets](../../docs-md/NATIVE_ASSETS.md); it needs network access and does not work with Yarn PnP.
+
+> [!IMPORTANT]
+> **iOS: Save to Camera Roll**
+>
+> If your Markdown content includes images and you want users to save them to their photo library, add the following to your `Info.plist`:
+>
+> ```xml
+> NSPhotoLibraryAddUsageDescription
+> This app needs access to your photo library to save images.
+> ```
+
+## EnrichedMarkdownText
+
+See [EnrichedMarkdownText](../../docs-md/TEXT.md) for detailed documentation on usage examples, GFM tables, task lists, link handling, supported elements, copy options, accessibility, RTL support, and customizing styles. Mentions created by `EnrichedMarkdownTextInput` render as styled links — use [`linkVariants`](../../docs-md/MENTIONS.md#link-variants-styling) to customize their appearance.
+
+## EnrichedMarkdownTextInput
+
+See [EnrichedMarkdownTextInput](../../docs-md/INPUT.md) for detailed documentation on usage examples, inline styles, links, style detection, events, and customizing styles.
+
+## API Reference
+
+See the [API Reference](../../docs-md/API_REFERENCE.md) for a detailed overview of all the props, methods, and events available.
+
+## Web Support
+
+See [Web Support](../../docs-md/WEB.md) for details on supported features, web-specific prop behaviour, and known limitations.
+
+## macOS Support
+
+`react-native-enriched-markdown` supports macOS via [react-native-macos](https://github.com/microsoft/react-native-macos). See [macOS Support](../../docs-md/MACOS.md) for details on macOS-specific features, known limitations, and the example app.
+
+## Future Plans
+
+We're actively working on expanding the capabilities of `react-native-enriched-markdown`. Here's what's on the roadmap:
+
+- `EnrichedMarkdownTextInput`: headings, lists, blockquotes, code blocks, inline images
+- `EnrichedMarkdownTextInput` web support
+- macOS: block math rendering, VoiceOver accessibility, tail fade-in animation
+- Web: spoiler text, streaming animation, configurable link `target`, copy options (Copy as Markdown, multi-format clipboard)
+
+## Compatibility Table
+
+| | 0.82 | 0.83 | 0.84 | 0.85 | 0.86 | 0.87 |
+| ----------- | :--: | :--: | :--: | :--: | :--: | :--: |
+| **nightly** | ⛔ | ✅ | ✅ | ✅ | ✅ | ✅ |
+| **1.1.x** | ⛔ | ✅ | ✅ | ✅ | ✅ | ✅ |
+| **1.0.x** | ⛔ | ✅ | ✅ | ✅ | ✅ | ✅ |
+| **0.7.0** | ⛔ | ✅ | ✅ | ✅ | ✅ | ✅ |
+| **0.6.0** | ⛔ | ✅ | ✅ | ✅ | ⛔ | ⛔ |
+| **0.5.0** | ⛔ | ✅ | ✅ | ✅ | ⛔ | ⛔ |
+| **0.4.x** | ✅ | ✅ | ✅ | ⛔ | ⛔ | ⛔ |
+| **0.3.0** | ✅ | ✅ | ✅ | ⛔ | ⛔ | ⛔ |
+
+## Contributing
+
+See the [contributing guide](../../CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.
+
+## License
+
+`react-native-enriched-markdown` library is licensed under [The MIT License](../../LICENSE).
+
+---
+
+Built by [Software Mansion](https://swmansion.com/).
+
+[ ](https://swmansion.com/)
diff --git a/packages/react-native-enriched-markdown/ReactNativeEnrichedMarkdown.podspec b/packages/react-native-enriched-markdown/ReactNativeEnrichedMarkdown.podspec
new file mode 100644
index 000000000..b16404913
--- /dev/null
+++ b/packages/react-native-enriched-markdown/ReactNativeEnrichedMarkdown.podspec
@@ -0,0 +1,150 @@
+require "json"
+
+package = JSON.parse(File.read(File.join(__dir__, "package.json")))
+
+monorepo = File.exist?(File.expand_path("../core/EnrichedMarkdownCore.podspec", __dir__))
+cpp_root = monorepo ? "$(PODS_TARGET_SRCROOT)/../core/cpp" : "$(PODS_TARGET_SRCROOT)/cpp"
+
+require File.join(__dir__, "cpp/highlight/code_highlight_podspec.rb")
+# In the monorepo the C++ (including tree-sitter highlighting) compiles in the
+# EnrichedMarkdownCore pod; only the published, core-less build compiles it here.
+code_highlight = monorepo ? EnrichedMarkdownCodeHighlight.disabled : EnrichedMarkdownCodeHighlight.config(__dir__)
+
+Pod::Spec.new do |s|
+ s.name = "ReactNativeEnrichedMarkdown"
+ s.version = package["version"]
+ s.summary = package["description"]
+ s.homepage = package["homepage"]
+ s.license = package["license"]
+ s.authors = package["author"]
+
+ s.platforms = { :ios => min_ios_version_supported, :osx => '14.0' }
+ s.source = { :git => "https://github.com/software-mansion/enriched-markdown.git", :tag => "#{s.version}" }
+
+ if monorepo
+ s.private_header_files = "ios/**/*.h"
+ s.source_files = "ios/**/*.{h,m,mm,cpp,swift}"
+ s.dependency "EnrichedMarkdownCore"
+ else
+ s.private_header_files = "ios/**/*.h", "cpp/**/*.{h,hpp}"
+ s.source_files = ["ios/**/*.{h,m,mm,cpp,swift}", "cpp/md4c/*.{c,h}", "cpp/parser/*.{hpp,cpp}", "cpp/highlight/*.{hpp,cpp}"] + code_highlight[:source_files]
+ s.preserve_paths = "cpp/highlight/vendor/**/*" if code_highlight[:enabled]
+ end
+
+ # LaTeX math rendering (RaTeX, iOS only). RaTeX ships as a prebuilt static XCFramework
+ # vendored under ios/vendor (restored by vendor/vendor-ratex.mjs at postinstall); it
+ # links under CocoaPods default static linkage and needs neither `use_frameworks!` nor
+ # SPM interop.
+ #
+ # The app package.json "enriched-markdown" block is the source of truth; ENV is a
+ # deprecated fallback. `math_explicit` tracks an active opt-in (vs the implicit
+ # default), which decides the missing-framework behavior below.
+ config = EnrichedMarkdownConfig.consumer_config
+ # "present" mirrors the code-highlight side (see code_highlight_podspec.rb, which
+ # gates on grammars/.stamp): the vendor script writes ios/vendor/.stamp only after
+ # the XCFramework, the four Swift sources, and the fonts have all landed and it
+ # swaps the tree into place atomically. Gating on the XCFramework directory alone
+ # would treat a half-finished download (framework extracted, Swift sources/fonts
+ # still missing) as ready and compile the RaTeX bridge against sources that are not
+ # there, failing several hundred lines into the pod build with an opaque Swift
+ # "cannot find type 'RaTeXRenderer' in scope" (#745).
+ ratex_dir = File.join(__dir__, 'ios/vendor')
+ # File.file? (not File.exist?) so a stray .stamp/ directory can't pass the check and
+ # reintroduce the #745 failure mode; the vendor script only ever writes it as a file.
+ ratex_present = File.directory?(File.join(ratex_dir, 'RaTeX.xcframework')) &&
+ File.file?(File.join(ratex_dir, '.stamp'))
+ math_flag = ENV['ENRICHED_MARKDOWN_ENABLE_MATH']
+
+ if config.key?('enableMath')
+ math_requested = config['enableMath'] != false
+ math_explicit = math_requested
+ if math_flag
+ EnrichedMarkdownConfig.warn_once(:math_env, '[ReactNativeEnrichedMarkdown] DEPRECATED: ENV[\'ENRICHED_MARKDOWN_ENABLE_MATH\'] ' \
+ 'is ignored when "enriched-markdown".enableMath is set in your package.json.')
+ end
+ elsif math_flag
+ EnrichedMarkdownConfig.warn_once(:math_env, '[ReactNativeEnrichedMarkdown] DEPRECATED: ENV[\'ENRICHED_MARKDOWN_ENABLE_MATH\'] ' \
+ 'will be removed in a future version. Configure via "enriched-markdown".enableMath in your package.json instead.')
+ math_requested = math_flag == '1'
+ math_explicit = math_requested
+ else
+ math_requested = true
+ math_explicit = false
+ end
+
+ # RaTeX is downloaded at postinstall and kept out of the tarball. Reconcile the
+ # request with the vendored tree: an explicit opt-in with the tree missing or
+ # incomplete fails loud; on by default but missing (a partial/failed download, or a
+ # monorepo root opt-out) falls back to a clean build without math.
+ enable_math = math_requested && ratex_present
+ if !math_requested
+ EnrichedMarkdownConfig.warn_once(:math_disabled, '[ReactNativeEnrichedMarkdown] LaTeX math disabled via ' \
+ '"enriched-markdown".enableMath = false in your app package.json.')
+ elsif !ratex_present
+ if math_explicit
+ raise '[ReactNativeEnrichedMarkdown] LaTeX math is enabled but the vendored RaTeX ' \
+ 'assets are missing or incomplete at ios/vendor (need RaTeX.xcframework, the core ' \
+ 'Swift sources, the fonts, and the .stamp the vendor script writes on success). ' \
+ 'Reinstall to fetch them: `npm rebuild react-native-enriched-markdown`. ' \
+ 'To disable math, set "enriched-markdown".enableMath = false in your app package.json. ' \
+ 'Troubleshooting: https://github.com/software-mansion/enriched-markdown/blob/main/docs-md/NATIVE_ASSETS.md'
+ end
+ EnrichedMarkdownConfig.warn_once(:math_disabled, '[ReactNativeEnrichedMarkdown] LaTeX math disabled: the vendored RaTeX ' \
+ 'assets were not found or are incomplete at ios/vendor. If this is unintended, re-run ' \
+ '`node node_modules/react-native-enriched-markdown/postinstall.mjs`.')
+ end
+
+ # The RaTeX XCFramework bundles its own module.modulemap and headers; never let the
+ # broad ios/**/*.h and ios/**/*.swift globs treat its internals as pod sources.
+ exclude = ["ios/vendor/RaTeX.xcframework/**/*"]
+ # ios/math holds the RaTeX bridge; ios/vendor/*.swift are RaTeX's vendored core Swift
+ # sources. Both compile into this pod's module only when math is enabled.
+ exclude += ["ios/math/**/*.swift", "ios/vendor/*.swift"] unless enable_math
+ s.exclude_files = exclude
+ # Bounded decoding of native pill icons.
+ s.frameworks = "ImageIO"
+
+ # Video playback (AVKit, built into iOS — no external framework or vendored asset).
+ # Default on: consumers opt out via "enriched-markdown".enableVideo = false in package.json.
+ enable_video = config.key?('enableVideo') ? config['enableVideo'] != false : true
+
+ preprocessor_defs = "$(inherited) MD4C_USE_UTF8=1#{code_highlight[:defines]}"
+ if enable_video
+ preprocessor_defs += ' ENRICHED_MARKDOWN_VIDEO=1'
+ end
+ if enable_math
+ preprocessor_defs += ' ENRICHED_MARKDOWN_MATH=1'
+ # enable_math already implies ratex_present, i.e. a complete vendored tree marked by
+ # ios/vendor/.stamp (the reconciliation above raises on an explicit opt-in with a
+ # missing/incomplete tree and disables the default-on path), so the vendored
+ # references below always resolve.
+ # Prebuilt static XCFramework (device + simulator[arm64,x86_64] + macOS). Vendored
+ # rather than pulled via spm_dependency, which compiled RaTeX's Swift wrapper per
+ # requested arch (breaking universal simulator builds, #527) and double-collected
+ # its XCFramework signature during archive assembly (#491).
+ s.vendored_frameworks = 'ios/vendor/RaTeX.xcframework'
+ # RaTeXFontLoader.loadFromCocoaPodsBundle() resolves "RaTeXCoreFonts.bundle" by name,
+ # so this resource-bundle name is load-bearing -- keep it exactly RaTeXCoreFonts.
+ s.resource_bundles = { 'RaTeXCoreFonts' => ['ios/vendor/Fonts/*.ttf'] }
+ end
+
+ pod_xcconfig = {
+ 'HEADER_SEARCH_PATHS' => ([
+ "\"#{cpp_root}/md4c\"", "\"#{cpp_root}/parser\"", "\"#{cpp_root}/highlight\"",
+ "\"$(PODS_TARGET_SRCROOT)/ios/internals\"", "\"$(PODS_TARGET_SRCROOT)/ios/input/internals\""
+ ] + code_highlight[:header_paths].map { |p| "\"$(PODS_TARGET_SRCROOT)/#{p}\"" }).join(" "),
+ 'GCC_PREPROCESSOR_DEFINITIONS' => preprocessor_defs,
+ 'CLANG_CXX_LANGUAGE_STANDARD' => 'c++17',
+ 'DEFINES_MODULE' => 'YES'
+ }
+
+ # No EXCLUDED_ARCHS dance: the vendored simulator slice (ios-arm64_x86_64-simulator)
+ # already contains x86_64, so universal simulator builds resolve on both arches.
+ s.pod_target_xcconfig = pod_xcconfig
+
+ # No script phases: vendoring a single prebuilt XCFramework means there is no
+ # spm_dependency-generated duplicate RaTeXFFI modulemap to strip, and only one
+ # signature is collected during archive assembly, so nothing collides.
+
+ install_modules_dependencies(s)
+end
diff --git a/packages/react-native-enriched-markdown/android/build.gradle b/packages/react-native-enriched-markdown/android/build.gradle
new file mode 100644
index 000000000..4ae876da9
--- /dev/null
+++ b/packages/react-native-enriched-markdown/android/build.gradle
@@ -0,0 +1,312 @@
+buildscript {
+ ext.getExtOrDefault = {name ->
+ return rootProject.ext.has(name) ? rootProject.ext.get(name) : project.properties['EnrichedMarkdown_' + name]
+ }
+
+ repositories {
+ google()
+ mavenCentral()
+ }
+
+ dependencies {
+ classpath "com.android.tools.build:gradle:8.7.2"
+ // noinspection DifferentKotlinGradleVersion
+ classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${getExtOrDefault('kotlinVersion')}"
+ }
+}
+
+apply plugin: "com.android.library"
+// Android Gradle Plugin 9 ships built-in Kotlin support and applies the Kotlin
+// plugin itself. Applying it a second time fails the configuration phase with
+// "Cannot add extension with name 'kotlin'". Apply it only when AGP is not
+// providing Kotlin: AGP 8 and older, or AGP 9 with android.builtInKotlin=false.
+def shouldApplyKotlinPlugin() {
+ def agpMajor = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION.tokenize('.')[0].toInteger()
+ if (agpMajor <= 8) {
+ return true
+ }
+ // AGP 10 removes the opt-out: built-in Kotlin is always active there.
+ if (agpMajor >= 10) {
+ return false
+ }
+ def propertyVal = providers.gradleProperty("android.builtInKotlin").orNull
+ def builtInKotlinEnabled = propertyVal != null ? propertyVal.toBoolean() : true
+ return !builtInKotlinEnabled
+}
+
+if (shouldApplyKotlinPlugin()) {
+ apply plugin: "kotlin-android"
+}
+
+apply plugin: "com.facebook.react"
+
+def getExtOrIntegerDefault(name) {
+ return rootProject.ext.has(name) ? rootProject.ext.get(name) : (project.properties["EnrichedMarkdown_" + name]).toInteger()
+}
+
+// The consumer app's package.json "enriched-markdown" block is the build-time source of
+// truth for feature toggles (mirrors the iOS podspecs and react-native-worklets). It is
+// read from the Gradle build root -- "/package.json", one level above the "/android"
+// dir -- so in a monorepo it resolves to the app being built, not the workspace root.
+// Per-app config therefore works; the download side (postinstall) is a separate,
+// install-time decision. Gradle properties remain a deprecated fallback.
+def consumerConfig = [:]
+def consumerAppName = null
+def consumerPackageJson = new File(rootProject.projectDir, "../package.json")
+if (consumerPackageJson.exists()) {
+ def parsed = new groovy.json.JsonSlurper().parse(consumerPackageJson)
+ if (parsed instanceof Map) {
+ if (parsed["enriched-markdown"] instanceof Map) {
+ consumerConfig = parsed["enriched-markdown"]
+ }
+ consumerAppName = parsed["name"]
+ }
+}
+
+// Filesystem-safe per-app slug: package.json "name", else the app directory name -- the
+// same source and fallback the iOS podspec uses (installation root's parent), so both
+// platforms derive an identical slug for the same app. It keys the per-app generated
+// code-highlight registry (generated-) below so the artifact layout matches iOS and
+// two monorepo apps with different custom language sets never share one dir.
+def consumerAppSlug = (consumerAppName ?: rootProject.projectDir.parentFile?.name ?: "app").toString()
+ .replaceAll('[^A-Za-z0-9._-]+', '-').replaceAll('^-+|-+$', '')
+if (!consumerAppSlug) consumerAppSlug = "app"
+
+// Video: package.json > default true. Android video uses Media3 ExoPlayer as a Maven
+// dependency. Disable via "enriched-markdown".enableVideo = false to save ~2-3 MB.
+def enableVideo = consumerConfig.containsKey("enableVideo") ? consumerConfig.enableVideo != false : true
+
+// Math: package.json > gradle property (deprecated) > default true. Android math is a
+// Maven dependency (no downloaded asset), so the flag simply includes or excludes it --
+// there is nothing to be missing, hence no throw as on iOS.
+def mathProp = rootProject.findProperty("enrichedMarkdown.enableMath") ?: findProperty("enrichedMarkdown.enableMath")
+def enableMath
+if (consumerConfig.containsKey("enableMath")) {
+ enableMath = consumerConfig.enableMath != false
+ if (mathProp != null) {
+ logger.warn("[ReactNativeEnrichedMarkdown] DEPRECATED: enrichedMarkdown.enableMath gradle property " +
+ "is ignored when \"enriched-markdown\".enableMath is set in your package.json.")
+ }
+} else if (mathProp != null) {
+ logger.warn("[ReactNativeEnrichedMarkdown] DEPRECATED: enrichedMarkdown.enableMath gradle property " +
+ "will be removed in a future version. Configure via \"enriched-markdown\".enableMath in your package.json instead.")
+ enableMath = mathProp.toString().toBoolean()
+} else {
+ enableMath = true
+}
+
+// Default grammar set derived from the single source of truth,
+// vendor/grammar-versions.json (every grammar with default:true), so the compiled
+// grammars always match the registry gen-registry generates from the same
+// manifest. Resolved in both layouts like gen-registry.mjs below:
+// "../../../vendor" in the monorepo, "../cpp/highlight" when published.
+def grammarManifest = [
+ new File(projectDir, "../../../vendor/grammar-versions.json"),
+ new File(projectDir, "../cpp/highlight/grammar-versions.json"),
+].find { it.exists() }
+if (grammarManifest == null) {
+ throw new GradleException("[code-highlight] grammar-versions.json not found; cannot resolve the default language set. Build from the monorepo or a published tarball.")
+}
+def defaultCodeHighlightLanguages = new groovy.json.JsonSlurper().parse(grammarManifest)
+ .grammars.findAll { id, spec -> spec['default'] }.collect { id, spec -> id }
+// Code highlight enable: package.json > gradle property (deprecated) > default on.
+// `codeHighlightExplicit` tracks an active opt-in (vs the implicit default), which
+// decides the missing-grammars behavior below.
+def codeHighlightProp = rootProject.findProperty("enrichedMarkdown.enableCodeHighlight") ?: findProperty("enrichedMarkdown.enableCodeHighlight")
+def codeHighlightStamp = new File(projectDir, "../cpp/highlight/vendor/grammars/.stamp")
+def codeHighlightRequested
+def codeHighlightExplicit
+if (consumerConfig.containsKey("enableCodeHighlight")) {
+ codeHighlightRequested = consumerConfig.enableCodeHighlight != false
+ codeHighlightExplicit = codeHighlightRequested
+ if (codeHighlightProp != null) {
+ logger.warn("[ReactNativeEnrichedMarkdown] DEPRECATED: enrichedMarkdown.enableCodeHighlight gradle property " +
+ "is ignored when \"enriched-markdown\".enableCodeHighlight is set in your package.json.")
+ }
+} else if (codeHighlightProp != null) {
+ logger.warn("[ReactNativeEnrichedMarkdown] DEPRECATED: enrichedMarkdown.enableCodeHighlight gradle property " +
+ "will be removed in a future version. Configure via \"enriched-markdown\".enableCodeHighlight in your package.json instead.")
+ codeHighlightRequested = codeHighlightProp.toString().toBoolean()
+ codeHighlightExplicit = codeHighlightRequested
+} else {
+ codeHighlightRequested = true
+ codeHighlightExplicit = false
+}
+
+// The grammars/.stamp marker is written only after every grammar source is fully vendored
+// at postinstall. An explicit opt-in with the grammars missing fails loud with the fix; on
+// by default but missing (a partial/failed download, or a monorepo root opt-out) falls back
+// to a clean no-op build. Gating on the stamp also keeps CMake from being fed missing sources.
+def enableCodeHighlight
+if (!codeHighlightRequested) {
+ enableCodeHighlight = false
+} else if (codeHighlightStamp.exists()) {
+ enableCodeHighlight = true
+} else if (codeHighlightExplicit) {
+ throw new GradleException("[ReactNativeEnrichedMarkdown] code highlighting is enabled but the tree-sitter " +
+ "grammars are not installed. Reinstall to fetch them: `npm rebuild react-native-enriched-markdown`. " +
+ "To disable, set \"enriched-markdown\".enableCodeHighlight = false in your app package.json. " +
+ "Troubleshooting: https://github.com/software-mansion/enriched-markdown/blob/main/docs-md/NATIVE_ASSETS.md")
+} else {
+ enableCodeHighlight = false
+}
+
+// Languages: package.json > gradle property (deprecated) > manifest defaults. An explicit
+// empty array disables all languages (codeHighlightActive below); only the default/property
+// paths fall back to the manifest set.
+def codeHighlightLanguagesProp = rootProject.findProperty("enrichedMarkdown.codeHighlightLanguages") ?: findProperty("enrichedMarkdown.codeHighlightLanguages")
+def codeHighlightLanguages
+if (consumerConfig.get("codeHighlightLanguages") instanceof List) {
+ codeHighlightLanguages = consumerConfig.codeHighlightLanguages.collect { it.toString().trim() }.findAll { it }
+ if (codeHighlightLanguagesProp != null) {
+ logger.warn("[ReactNativeEnrichedMarkdown] DEPRECATED: enrichedMarkdown.codeHighlightLanguages gradle property " +
+ "is ignored when \"enriched-markdown\".codeHighlightLanguages is set in your package.json.")
+ }
+} else if (codeHighlightLanguagesProp) {
+ logger.warn("[ReactNativeEnrichedMarkdown] DEPRECATED: enrichedMarkdown.codeHighlightLanguages gradle property " +
+ "will be removed in a future version. Configure via \"enriched-markdown\".codeHighlightLanguages in your package.json instead.")
+ codeHighlightLanguages = codeHighlightLanguagesProp.toString().split(",").collect { it.trim() }.findAll { it }
+} else {
+ codeHighlightLanguages = defaultCodeHighlightLanguages
+}
+def codeHighlightActive = enableCodeHighlight && !codeHighlightLanguages.isEmpty()
+
+android {
+ namespace "com.swmansion.enriched.markdown"
+
+ compileSdkVersion getExtOrIntegerDefault("compileSdkVersion")
+
+ defaultConfig {
+ minSdkVersion getExtOrIntegerDefault("minSdkVersion")
+ targetSdkVersion getExtOrIntegerDefault("targetSdkVersion")
+ consumerProguardFiles "consumer-rules.pro"
+ buildConfigField "boolean", "ENABLE_MATH", "${enableMath}"
+ buildConfigField "boolean", "ENABLE_VIDEO", "${enableVideo}"
+ buildConfigField "boolean", "ENABLE_CODE_HIGHLIGHT", "${codeHighlightActive}"
+ }
+
+ buildFeatures {
+ buildConfig true
+ }
+
+ testOptions {
+ unitTests.includeAndroidResources = true
+ }
+
+ buildTypes {
+ release {
+ minifyEnabled false
+ }
+ }
+
+ lintOptions {
+ disable "GradleCompatible"
+ }
+
+ compileOptions {
+ sourceCompatibility JavaVersion.VERSION_1_8
+ targetCompatibility JavaVersion.VERSION_1_8
+ }
+
+ sourceSets {
+ main {
+ java.srcDirs += [
+ "generated/java",
+ "generated/jni"
+ ]
+ if (enableMath) {
+ java.srcDirs += ["src/math/java"]
+ }
+ if (enableVideo) {
+ java.srcDirs += ["src/video/java"]
+ }
+ }
+ }
+}
+
+// Code-block syntax highlighting (tree-sitter) native wiring. This module owns
+// no externalNativeBuild block: RN autolinking compiles src/main/jni/CMakeLists.txt
+// as part of the consumer app's native build, so the app -- not this library --
+// owns the CMake arguments. The enable flag + selected grammars therefore reach
+// CMake through a config file written here during configuration (before any
+// native build task runs) and include()d by CMakeLists.txt.
+def highlightConfigDir = new File(projectDir, "build/generated/highlight")
+highlightConfigDir.mkdirs()
+def highlightConfigFile = new File(highlightConfigDir, "highlight-config.cmake")
+if (codeHighlightActive) {
+ def vendorDir = new File(projectDir, "../cpp/highlight/vendor").canonicalPath
+ def committedGenerated = new File(vendorDir, "generated")
+ def generatedDir
+ if (codeHighlightLanguages.toSorted() == defaultCodeHighlightLanguages.toSorted() && committedGenerated.exists()) {
+ // Common case: the committed default-set registry ships in-tree, no codegen.
+ generatedDir = committedGenerated
+ } else {
+ // Custom language set: regenerate the registry from the vendored .scm files into a
+ // per-app dir (generated-), mirroring iOS. Android rewrites this on every
+ // gradle configure so it never had iOS's persistent clash, but keying per app keeps
+ // the two platforms' artifact layout identical. (highlight-config.cmake itself stays
+ // at the CMakeLists-fixed shared path and is rewritten each configure.)
+ generatedDir = new File(highlightConfigDir, "generated-${consumerAppSlug}")
+ generatedDir.mkdirs()
+ def genScript = [
+ new File(projectDir, "../../../vendor/gen-registry.mjs"),
+ new File(projectDir, "../cpp/highlight/gen-registry.mjs"),
+ ].find { it.exists() }
+ if (genScript == null) {
+ throw new GradleException("enrichedMarkdown.codeHighlightLanguages is customized but vendor/gen-registry.mjs was not found. Use the default language set or build from the monorepo.")
+ }
+ // Run node directly via ProcessBuilder rather than Project.exec {}, which was
+ // removed in Gradle 9. Runs at configuration time (before the native build),
+ // and surfaces gen-registry's own stderr on failure.
+ def genCmd = ["node", genScript.canonicalPath, "--vendor-dir", vendorDir,
+ "--languages", codeHighlightLanguages.join(","), "--out", generatedDir.canonicalPath]
+ def genProc = new ProcessBuilder(genCmd).redirectErrorStream(true).start()
+ def genOut = genProc.inputStream.text
+ def genExit = genProc.waitFor()
+ if (genExit != 0) {
+ throw new GradleException("[code-highlight] gen-registry.mjs failed (exit ${genExit}):\n${genOut}")
+ }
+ }
+ highlightConfigFile.text = """\
+set(ENRICHED_MARKDOWN_CODE_HIGHLIGHT ON)
+set(ENRICHED_MARKDOWN_HIGHLIGHT_LANGUAGES "${codeHighlightLanguages.join(';')}")
+set(ENRICHED_MARKDOWN_HIGHLIGHT_GENERATED_DIR "${generatedDir.canonicalPath.replace('\\', '/')}")
+"""
+} else {
+ highlightConfigFile.text = "set(ENRICHED_MARKDOWN_CODE_HIGHLIGHT OFF)\n"
+}
+
+repositories {
+ mavenCentral()
+ google()
+}
+
+def kotlin_version = getExtOrDefault("kotlinVersion")
+
+dependencies {
+ // JVM unit tests (Robolectric) for the library's Kotlin spans/renderers. Run with
+ // `./gradlew :react-native-enriched-markdown:testDebugUnitTest` from an app that
+ // autolinks this module (e.g. apps/react-native-example/android). Mirrors the
+ // standalone @enriched-markdown/android test stack.
+ testImplementation "junit:junit:4.13.2"
+ testImplementation "org.robolectric:robolectric:4.14.1"
+ implementation "com.facebook.react:react-android"
+ implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
+ // Baseline Profile installer for AOT compilation hints
+ implementation "androidx.profileinstaller:profileinstaller:1.3.1"
+ // LaTeX math rendering (optional — set enrichedMarkdown.enableMath=false in gradle.properties to exclude)
+ if (enableMath) {
+ implementation("io.github.erweixin:ratex-android:0.1.14")
+ }
+ // Video playback (optional — set "enriched-markdown".enableVideo = false in package.json to exclude)
+ if (enableVideo) {
+ implementation("androidx.media3:media3-exoplayer:1.6.0")
+ implementation("androidx.media3:media3-ui:1.6.0")
+ }
+}
+
+react {
+ jsRootDir = file("../src/")
+ libraryName = "EnrichedMarkdownText"
+ codegenJavaPackageName = "com.swmansion.enriched.markdown"
+}
diff --git a/packages/react-native-enriched-markdown/android/consumer-rules.pro b/packages/react-native-enriched-markdown/android/consumer-rules.pro
new file mode 100644
index 000000000..c81d9d6bd
--- /dev/null
+++ b/packages/react-native-enriched-markdown/android/consumer-rules.pro
@@ -0,0 +1,24 @@
+# ProGuard/R8 consumer rules for react-native-enriched-markdown
+#
+# JNI: Classes accessed from C++ (jni-adapter.cpp) via FindClass/GetFieldID.
+# R8 cannot trace hardcoded string lookups in native code.
+
+-keep class com.swmansion.enriched.markdown.parser.MarkdownASTNode { *; }
+-keep class com.swmansion.enriched.markdown.parser.MarkdownASTNode$NodeType { *; }
+-keep class com.swmansion.enriched.markdown.parser.Md4cFlags { *; }
+-keep class com.swmansion.enriched.markdown.parser.TextLinkMatching { *; }
+-keep class com.swmansion.enriched.markdown.utils.common.LinkRegexConfig { *; }
+
+# Reflection: Math classes loaded via Class.forName when enableMath=true.
+-keep class com.swmansion.enriched.markdown.spans.MathInlineSpan { *; }
+-keep class com.swmansion.enriched.markdown.spans.MathInlinePlaceholderSpan { *; }
+-keep class com.swmansion.enriched.markdown.spans.MathMeasureHelper { *; }
+-keep class com.swmansion.enriched.markdown.views.MathContainerView { *; }
+-keep class com.swmansion.enriched.markdown.renderer.MathInlineRenderer { *; }
+
+# Reflection: Video container loaded via Class.forName when enableVideo=true.
+-keep class com.swmansion.enriched.markdown.segments.VideoContainerView { *; }
+
+# RaTeX uses JNI to instantiate Java objects from native code.
+# R8 cannot trace these lookups and will strip or rename the referenced classes.
+-keep class io.ratex.** { *; }
diff --git a/packages/react-native-enriched-markdown/android/generated/java/com/facebook/react/viewmanagers/EnrichedMarkdownManagerDelegate.java b/packages/react-native-enriched-markdown/android/generated/java/com/facebook/react/viewmanagers/EnrichedMarkdownManagerDelegate.java
new file mode 100644
index 000000000..8dd4e6b84
--- /dev/null
+++ b/packages/react-native-enriched-markdown/android/generated/java/com/facebook/react/viewmanagers/EnrichedMarkdownManagerDelegate.java
@@ -0,0 +1,123 @@
+/**
+* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
+*
+* Do not edit this file as changes may cause incorrect behavior and will be lost
+* once the code is regenerated.
+*
+* @generated by codegen project: GeneratePropsJavaDelegate.js
+*/
+
+package com.facebook.react.viewmanagers;
+
+import android.view.View;
+import androidx.annotation.Nullable;
+import com.facebook.react.bridge.ColorPropConverter;
+import com.facebook.react.bridge.ReadableArray;
+import com.facebook.react.bridge.ReadableMap;
+import com.facebook.react.uimanager.BaseViewManager;
+import com.facebook.react.uimanager.BaseViewManagerDelegate;
+import com.facebook.react.uimanager.LayoutShadowNode;
+
+@SuppressWarnings("deprecation")
+public class EnrichedMarkdownManagerDelegate & EnrichedMarkdownManagerInterface> extends BaseViewManagerDelegate {
+ public EnrichedMarkdownManagerDelegate(U viewManager) {
+ super(viewManager);
+ }
+ @Override
+ public void setProperty(T view, String propName, @Nullable Object value) {
+ switch (propName) {
+ case "markdown":
+ mViewManager.setMarkdown(view, value == null ? null : (String) value);
+ break;
+ case "markdownStyle":
+ mViewManager.setMarkdownStyle(view, (ReadableMap) value);
+ break;
+ case "enableImagePress":
+ mViewManager.setEnableImagePress(view, value == null ? false : (boolean) value);
+ break;
+ case "enableTaskListItemToggle":
+ mViewManager.setEnableTaskListItemToggle(view, value == null ? true : (boolean) value);
+ break;
+ case "enableCodeBlockPress":
+ mViewManager.setEnableCodeBlockPress(view, value == null ? false : (boolean) value);
+ break;
+ case "enableBlockContextMenu":
+ mViewManager.setEnableBlockContextMenu(view, value == null ? true : (boolean) value);
+ break;
+ case "enableLinkPreview":
+ mViewManager.setEnableLinkPreview(view, value == null ? true : (boolean) value);
+ break;
+ case "selectable":
+ mViewManager.setSelectable(view, value == null ? false : (boolean) value);
+ break;
+ case "selectionColor":
+ mViewManager.setSelectionColor(view, ColorPropConverter.getColor(value, view.getContext()));
+ break;
+ case "selectionHandleColor":
+ mViewManager.setSelectionHandleColor(view, ColorPropConverter.getColor(value, view.getContext()));
+ break;
+ case "md4cFlags":
+ mViewManager.setMd4cFlags(view, (ReadableMap) value);
+ break;
+ case "isGFM":
+ mViewManager.setIsGFM(view, value == null ? true : (boolean) value);
+ break;
+ case "allowFontScaling":
+ mViewManager.setAllowFontScaling(view, value == null ? true : (boolean) value);
+ break;
+ case "maxFontSizeMultiplier":
+ mViewManager.setMaxFontSizeMultiplier(view, value == null ? 0f : ((Double) value).floatValue());
+ break;
+ case "allowTrailingMargin":
+ mViewManager.setAllowTrailingMargin(view, value == null ? false : (boolean) value);
+ break;
+ case "streamingAnimation":
+ mViewManager.setStreamingAnimation(view, value == null ? false : (boolean) value);
+ break;
+ case "streamingConfig":
+ mViewManager.setStreamingConfig(view, (ReadableMap) value);
+ break;
+ case "spoilerOverlay":
+ mViewManager.setSpoilerOverlay(view, value == null ? "particles" : (String) value);
+ break;
+ case "contextMenuItems":
+ mViewManager.setContextMenuItems(view, (ReadableArray) value);
+ break;
+ case "imageRequestHeaders":
+ mViewManager.setImageRequestHeaders(view, (ReadableArray) value);
+ break;
+ case "linkPillContent":
+ mViewManager.setLinkPillContent(view, (ReadableArray) value);
+ break;
+ case "linkRecognition":
+ mViewManager.setLinkRecognition(view, (ReadableMap) value);
+ break;
+ case "linkContextMenuItems":
+ mViewManager.setLinkContextMenuItems(view, (ReadableArray) value);
+ break;
+ case "selectionMenuConfig":
+ mViewManager.setSelectionMenuConfig(view, (ReadableMap) value);
+ break;
+ case "accessibilityLabels":
+ mViewManager.setAccessibilityLabels(view, (ReadableMap) value);
+ break;
+ case "textBreakStrategy":
+ mViewManager.setTextBreakStrategy(view, value == null ? "highQuality" : (String) value);
+ break;
+ case "lineBreakStrategyIOS":
+ mViewManager.setLineBreakStrategyIOS(view, value == null ? "none" : (String) value);
+ break;
+ case "writingDirection":
+ mViewManager.setWritingDirection(view, value == null ? "first-strong" : (String) value);
+ break;
+ case "numberOfLines":
+ mViewManager.setNumberOfLines(view, value == null ? 0 : ((Double) value).intValue());
+ break;
+ case "ellipsizeMode":
+ mViewManager.setEllipsizeMode(view, value == null ? "tail" : (String) value);
+ break;
+ default:
+ super.setProperty(view, propName, value);
+ }
+ }
+}
diff --git a/packages/react-native-enriched-markdown/android/generated/java/com/facebook/react/viewmanagers/EnrichedMarkdownManagerInterface.java b/packages/react-native-enriched-markdown/android/generated/java/com/facebook/react/viewmanagers/EnrichedMarkdownManagerInterface.java
new file mode 100644
index 000000000..b85801f96
--- /dev/null
+++ b/packages/react-native-enriched-markdown/android/generated/java/com/facebook/react/viewmanagers/EnrichedMarkdownManagerInterface.java
@@ -0,0 +1,49 @@
+/**
+* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
+*
+* Do not edit this file as changes may cause incorrect behavior and will be lost
+* once the code is regenerated.
+*
+* @generated by codegen project: GeneratePropsJavaInterface.js
+*/
+
+package com.facebook.react.viewmanagers;
+
+import android.view.View;
+import androidx.annotation.Nullable;
+import com.facebook.react.bridge.ReadableArray;
+import com.facebook.react.bridge.ReadableMap;
+import com.facebook.react.uimanager.ViewManagerWithGeneratedInterface;
+
+public interface EnrichedMarkdownManagerInterface extends ViewManagerWithGeneratedInterface {
+ void setMarkdown(T view, @Nullable String value);
+ void setMarkdownStyle(T view, @Nullable ReadableMap value);
+ void setEnableImagePress(T view, boolean value);
+ void setEnableTaskListItemToggle(T view, boolean value);
+ void setEnableCodeBlockPress(T view, boolean value);
+ void setEnableBlockContextMenu(T view, boolean value);
+ void setEnableLinkPreview(T view, boolean value);
+ void setSelectable(T view, boolean value);
+ void setSelectionColor(T view, @Nullable Integer value);
+ void setSelectionHandleColor(T view, @Nullable Integer value);
+ void setMd4cFlags(T view, @Nullable ReadableMap value);
+ void setIsGFM(T view, boolean value);
+ void setAllowFontScaling(T view, boolean value);
+ void setMaxFontSizeMultiplier(T view, float value);
+ void setAllowTrailingMargin(T view, boolean value);
+ void setStreamingAnimation(T view, boolean value);
+ void setStreamingConfig(T view, @Nullable ReadableMap value);
+ void setSpoilerOverlay(T view, @Nullable String value);
+ void setContextMenuItems(T view, @Nullable ReadableArray value);
+ void setImageRequestHeaders(T view, @Nullable ReadableArray value);
+ void setLinkPillContent(T view, @Nullable ReadableArray value);
+ void setLinkRecognition(T view, @Nullable ReadableMap value);
+ void setLinkContextMenuItems(T view, @Nullable ReadableArray value);
+ void setSelectionMenuConfig(T view, @Nullable ReadableMap value);
+ void setAccessibilityLabels(T view, @Nullable ReadableMap value);
+ void setTextBreakStrategy(T view, @Nullable String value);
+ void setLineBreakStrategyIOS(T view, @Nullable String value);
+ void setWritingDirection(T view, @Nullable String value);
+ void setNumberOfLines(T view, int value);
+ void setEllipsizeMode(T view, @Nullable String value);
+}
diff --git a/packages/react-native-enriched-markdown/android/generated/java/com/facebook/react/viewmanagers/EnrichedMarkdownTextInputManagerDelegate.java b/packages/react-native-enriched-markdown/android/generated/java/com/facebook/react/viewmanagers/EnrichedMarkdownTextInputManagerDelegate.java
new file mode 100644
index 000000000..2f3cc4719
--- /dev/null
+++ b/packages/react-native-enriched-markdown/android/generated/java/com/facebook/react/viewmanagers/EnrichedMarkdownTextInputManagerDelegate.java
@@ -0,0 +1,180 @@
+/**
+* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
+*
+* Do not edit this file as changes may cause incorrect behavior and will be lost
+* once the code is regenerated.
+*
+* @generated by codegen project: GeneratePropsJavaDelegate.js
+*/
+
+package com.facebook.react.viewmanagers;
+
+import android.view.View;
+import androidx.annotation.Nullable;
+import com.facebook.react.bridge.ColorPropConverter;
+import com.facebook.react.bridge.ReadableArray;
+import com.facebook.react.bridge.ReadableMap;
+import com.facebook.react.uimanager.BaseViewManager;
+import com.facebook.react.uimanager.BaseViewManagerDelegate;
+import com.facebook.react.uimanager.LayoutShadowNode;
+
+@SuppressWarnings("deprecation")
+public class EnrichedMarkdownTextInputManagerDelegate & EnrichedMarkdownTextInputManagerInterface> extends BaseViewManagerDelegate {
+ public EnrichedMarkdownTextInputManagerDelegate(U viewManager) {
+ super(viewManager);
+ }
+ @Override
+ public void setProperty(T view, String propName, @Nullable Object value) {
+ switch (propName) {
+ case "defaultValue":
+ mViewManager.setDefaultValue(view, value == null ? null : (String) value);
+ break;
+ case "placeholder":
+ mViewManager.setPlaceholder(view, value == null ? null : (String) value);
+ break;
+ case "placeholderTextColor":
+ mViewManager.setPlaceholderTextColor(view, ColorPropConverter.getColor(value, view.getContext()));
+ break;
+ case "editable":
+ mViewManager.setEditable(view, value == null ? false : (boolean) value);
+ break;
+ case "autoFocus":
+ mViewManager.setAutoFocus(view, value == null ? false : (boolean) value);
+ break;
+ case "scrollEnabled":
+ mViewManager.setScrollEnabled(view, value == null ? false : (boolean) value);
+ break;
+ case "markdownShortcuts":
+ mViewManager.setMarkdownShortcuts(view, (ReadableMap) value);
+ break;
+ case "autoCapitalize":
+ mViewManager.setAutoCapitalize(view, value == null ? null : (String) value);
+ break;
+ case "multiline":
+ mViewManager.setMultiline(view, value == null ? false : (boolean) value);
+ break;
+ case "cursorColor":
+ mViewManager.setCursorColor(view, ColorPropConverter.getColor(value, view.getContext()));
+ break;
+ case "selectionColor":
+ mViewManager.setSelectionColor(view, ColorPropConverter.getColor(value, view.getContext()));
+ break;
+ case "markdownStyle":
+ mViewManager.setMarkdownStyle(view, (ReadableMap) value);
+ break;
+ case "color":
+ mViewManager.setColor(view, ColorPropConverter.getColor(value, view.getContext()));
+ break;
+ case "fontSize":
+ mViewManager.setFontSize(view, value == null ? 0f : ((Double) value).floatValue());
+ break;
+ case "lineHeight":
+ mViewManager.setLineHeight(view, value == null ? 0f : ((Double) value).floatValue());
+ break;
+ case "fontFamily":
+ mViewManager.setFontFamily(view, value == null ? null : (String) value);
+ break;
+ case "fontWeight":
+ mViewManager.setFontWeight(view, value == null ? null : (String) value);
+ break;
+ case "isOnChangeMarkdownSet":
+ mViewManager.setIsOnChangeMarkdownSet(view, value == null ? false : (boolean) value);
+ break;
+ case "contextMenuItems":
+ mViewManager.setContextMenuItems(view, (ReadableArray) value);
+ break;
+ case "selectionMenuConfig":
+ mViewManager.setSelectionMenuConfig(view, (ReadableMap) value);
+ break;
+ case "formatMenuConfig":
+ mViewManager.setFormatMenuConfig(view, (ReadableMap) value);
+ break;
+ case "linkRegex":
+ mViewManager.setLinkRegex(view, (ReadableMap) value);
+ break;
+ case "mentionIndicators":
+ mViewManager.setMentionIndicators(view, (ReadableArray) value);
+ break;
+ case "writingDirection":
+ mViewManager.setWritingDirection(view, value == null ? "first-strong" : (String) value);
+ break;
+ default:
+ super.setProperty(view, propName, value);
+ }
+ }
+
+ @Override
+ public void receiveCommand(T view, String commandName, ReadableArray args) {
+ switch (commandName) {
+ case "focus":
+ mViewManager.focus(view);
+ break;
+ case "blur":
+ mViewManager.blur(view);
+ break;
+ case "setValue":
+ mViewManager.setValue(view, args.getString(0));
+ break;
+ case "setSelection":
+ mViewManager.setSelection(view, args.getInt(0), args.getInt(1));
+ break;
+ case "toggleBold":
+ mViewManager.toggleBold(view);
+ break;
+ case "toggleItalic":
+ mViewManager.toggleItalic(view);
+ break;
+ case "toggleUnderline":
+ mViewManager.toggleUnderline(view);
+ break;
+ case "toggleStrikethrough":
+ mViewManager.toggleStrikethrough(view);
+ break;
+ case "toggleSpoiler":
+ mViewManager.toggleSpoiler(view);
+ break;
+ case "toggleHeading":
+ mViewManager.toggleHeading(view, args.getInt(0));
+ break;
+ case "toggleUnorderedList":
+ mViewManager.toggleUnorderedList(view);
+ break;
+ case "toggleOrderedList":
+ mViewManager.toggleOrderedList(view);
+ break;
+ case "indentList":
+ mViewManager.indentList(view);
+ break;
+ case "outdentList":
+ mViewManager.outdentList(view);
+ break;
+ case "setLink":
+ mViewManager.setLink(view, args.getString(0));
+ break;
+ case "insertLink":
+ mViewManager.insertLink(view, args.getString(0), args.getString(1));
+ break;
+ case "insertText":
+ mViewManager.insertText(view, args.getString(0));
+ break;
+ case "insertMention":
+ mViewManager.insertMention(view, args.getString(0), args.getString(1));
+ break;
+ case "startMention":
+ mViewManager.startMention(view, args.getString(0));
+ break;
+ case "removeLink":
+ mViewManager.removeLink(view);
+ break;
+ case "copyToClipboard":
+ mViewManager.copyToClipboard(view);
+ break;
+ case "requestMarkdown":
+ mViewManager.requestMarkdown(view, args.getInt(0));
+ break;
+ case "requestCaretRect":
+ mViewManager.requestCaretRect(view, args.getInt(0));
+ break;
+ }
+ }
+}
diff --git a/packages/react-native-enriched-markdown/android/generated/java/com/facebook/react/viewmanagers/EnrichedMarkdownTextInputManagerInterface.java b/packages/react-native-enriched-markdown/android/generated/java/com/facebook/react/viewmanagers/EnrichedMarkdownTextInputManagerInterface.java
new file mode 100644
index 000000000..90aad4a6c
--- /dev/null
+++ b/packages/react-native-enriched-markdown/android/generated/java/com/facebook/react/viewmanagers/EnrichedMarkdownTextInputManagerInterface.java
@@ -0,0 +1,66 @@
+/**
+* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
+*
+* Do not edit this file as changes may cause incorrect behavior and will be lost
+* once the code is regenerated.
+*
+* @generated by codegen project: GeneratePropsJavaInterface.js
+*/
+
+package com.facebook.react.viewmanagers;
+
+import android.view.View;
+import androidx.annotation.Nullable;
+import com.facebook.react.bridge.ReadableArray;
+import com.facebook.react.bridge.ReadableMap;
+import com.facebook.react.uimanager.ViewManagerWithGeneratedInterface;
+
+public interface EnrichedMarkdownTextInputManagerInterface extends ViewManagerWithGeneratedInterface {
+ void setDefaultValue(T view, @Nullable String value);
+ void setPlaceholder(T view, @Nullable String value);
+ void setPlaceholderTextColor(T view, @Nullable Integer value);
+ void setEditable(T view, boolean value);
+ void setAutoFocus(T view, boolean value);
+ void setScrollEnabled(T view, boolean value);
+ void setMarkdownShortcuts(T view, @Nullable ReadableMap value);
+ void setAutoCapitalize(T view, @Nullable String value);
+ void setMultiline(T view, boolean value);
+ void setCursorColor(T view, @Nullable Integer value);
+ void setSelectionColor(T view, @Nullable Integer value);
+ void setMarkdownStyle(T view, @Nullable ReadableMap value);
+ void setColor(T view, @Nullable Integer value);
+ void setFontSize(T view, float value);
+ void setLineHeight(T view, float value);
+ void setFontFamily(T view, @Nullable String value);
+ void setFontWeight(T view, @Nullable String value);
+ void setIsOnChangeMarkdownSet(T view, boolean value);
+ void setContextMenuItems(T view, @Nullable ReadableArray value);
+ void setSelectionMenuConfig(T view, @Nullable ReadableMap value);
+ void setFormatMenuConfig(T view, @Nullable ReadableMap value);
+ void setLinkRegex(T view, @Nullable ReadableMap value);
+ void setMentionIndicators(T view, @Nullable ReadableArray value);
+ void setWritingDirection(T view, @Nullable String value);
+ void focus(T view);
+ void blur(T view);
+ void setValue(T view, String markdown);
+ void setSelection(T view, int start, int end);
+ void toggleBold(T view);
+ void toggleItalic(T view);
+ void toggleUnderline(T view);
+ void toggleStrikethrough(T view);
+ void toggleSpoiler(T view);
+ void toggleHeading(T view, int level);
+ void toggleUnorderedList(T view);
+ void toggleOrderedList(T view);
+ void indentList(T view);
+ void outdentList(T view);
+ void setLink(T view, String url);
+ void insertLink(T view, String text, String url);
+ void insertText(T view, String text);
+ void insertMention(T view, String displayText, String url);
+ void startMention(T view, String indicator);
+ void removeLink(T view);
+ void copyToClipboard(T view);
+ void requestMarkdown(T view, int requestId);
+ void requestCaretRect(T view, int requestId);
+}
diff --git a/packages/react-native-enriched-markdown/android/generated/java/com/facebook/react/viewmanagers/EnrichedMarkdownTextManagerDelegate.java b/packages/react-native-enriched-markdown/android/generated/java/com/facebook/react/viewmanagers/EnrichedMarkdownTextManagerDelegate.java
new file mode 100644
index 000000000..c325d5e41
--- /dev/null
+++ b/packages/react-native-enriched-markdown/android/generated/java/com/facebook/react/viewmanagers/EnrichedMarkdownTextManagerDelegate.java
@@ -0,0 +1,123 @@
+/**
+* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
+*
+* Do not edit this file as changes may cause incorrect behavior and will be lost
+* once the code is regenerated.
+*
+* @generated by codegen project: GeneratePropsJavaDelegate.js
+*/
+
+package com.facebook.react.viewmanagers;
+
+import android.view.View;
+import androidx.annotation.Nullable;
+import com.facebook.react.bridge.ColorPropConverter;
+import com.facebook.react.bridge.ReadableArray;
+import com.facebook.react.bridge.ReadableMap;
+import com.facebook.react.uimanager.BaseViewManager;
+import com.facebook.react.uimanager.BaseViewManagerDelegate;
+import com.facebook.react.uimanager.LayoutShadowNode;
+
+@SuppressWarnings("deprecation")
+public class EnrichedMarkdownTextManagerDelegate & EnrichedMarkdownTextManagerInterface> extends BaseViewManagerDelegate {
+ public EnrichedMarkdownTextManagerDelegate(U viewManager) {
+ super(viewManager);
+ }
+ @Override
+ public void setProperty(T view, String propName, @Nullable Object value) {
+ switch (propName) {
+ case "markdown":
+ mViewManager.setMarkdown(view, value == null ? null : (String) value);
+ break;
+ case "markdownStyle":
+ mViewManager.setMarkdownStyle(view, (ReadableMap) value);
+ break;
+ case "enableImagePress":
+ mViewManager.setEnableImagePress(view, value == null ? false : (boolean) value);
+ break;
+ case "enableTaskListItemToggle":
+ mViewManager.setEnableTaskListItemToggle(view, value == null ? true : (boolean) value);
+ break;
+ case "enableCodeBlockPress":
+ mViewManager.setEnableCodeBlockPress(view, value == null ? false : (boolean) value);
+ break;
+ case "enableBlockContextMenu":
+ mViewManager.setEnableBlockContextMenu(view, value == null ? true : (boolean) value);
+ break;
+ case "enableLinkPreview":
+ mViewManager.setEnableLinkPreview(view, value == null ? true : (boolean) value);
+ break;
+ case "selectable":
+ mViewManager.setSelectable(view, value == null ? false : (boolean) value);
+ break;
+ case "selectionColor":
+ mViewManager.setSelectionColor(view, ColorPropConverter.getColor(value, view.getContext()));
+ break;
+ case "selectionHandleColor":
+ mViewManager.setSelectionHandleColor(view, ColorPropConverter.getColor(value, view.getContext()));
+ break;
+ case "md4cFlags":
+ mViewManager.setMd4cFlags(view, (ReadableMap) value);
+ break;
+ case "isGFM":
+ mViewManager.setIsGFM(view, value == null ? false : (boolean) value);
+ break;
+ case "allowFontScaling":
+ mViewManager.setAllowFontScaling(view, value == null ? true : (boolean) value);
+ break;
+ case "maxFontSizeMultiplier":
+ mViewManager.setMaxFontSizeMultiplier(view, value == null ? 0f : ((Double) value).floatValue());
+ break;
+ case "allowTrailingMargin":
+ mViewManager.setAllowTrailingMargin(view, value == null ? false : (boolean) value);
+ break;
+ case "streamingAnimation":
+ mViewManager.setStreamingAnimation(view, value == null ? false : (boolean) value);
+ break;
+ case "streamingConfig":
+ mViewManager.setStreamingConfig(view, (ReadableMap) value);
+ break;
+ case "spoilerOverlay":
+ mViewManager.setSpoilerOverlay(view, value == null ? "particles" : (String) value);
+ break;
+ case "contextMenuItems":
+ mViewManager.setContextMenuItems(view, (ReadableArray) value);
+ break;
+ case "imageRequestHeaders":
+ mViewManager.setImageRequestHeaders(view, (ReadableArray) value);
+ break;
+ case "linkPillContent":
+ mViewManager.setLinkPillContent(view, (ReadableArray) value);
+ break;
+ case "linkRecognition":
+ mViewManager.setLinkRecognition(view, (ReadableMap) value);
+ break;
+ case "linkContextMenuItems":
+ mViewManager.setLinkContextMenuItems(view, (ReadableArray) value);
+ break;
+ case "selectionMenuConfig":
+ mViewManager.setSelectionMenuConfig(view, (ReadableMap) value);
+ break;
+ case "accessibilityLabels":
+ mViewManager.setAccessibilityLabels(view, (ReadableMap) value);
+ break;
+ case "textBreakStrategy":
+ mViewManager.setTextBreakStrategy(view, value == null ? "highQuality" : (String) value);
+ break;
+ case "lineBreakStrategyIOS":
+ mViewManager.setLineBreakStrategyIOS(view, value == null ? "none" : (String) value);
+ break;
+ case "writingDirection":
+ mViewManager.setWritingDirection(view, value == null ? "first-strong" : (String) value);
+ break;
+ case "numberOfLines":
+ mViewManager.setNumberOfLines(view, value == null ? 0 : ((Double) value).intValue());
+ break;
+ case "ellipsizeMode":
+ mViewManager.setEllipsizeMode(view, value == null ? "tail" : (String) value);
+ break;
+ default:
+ super.setProperty(view, propName, value);
+ }
+ }
+}
diff --git a/packages/react-native-enriched-markdown/android/generated/java/com/facebook/react/viewmanagers/EnrichedMarkdownTextManagerInterface.java b/packages/react-native-enriched-markdown/android/generated/java/com/facebook/react/viewmanagers/EnrichedMarkdownTextManagerInterface.java
new file mode 100644
index 000000000..5c044e7c4
--- /dev/null
+++ b/packages/react-native-enriched-markdown/android/generated/java/com/facebook/react/viewmanagers/EnrichedMarkdownTextManagerInterface.java
@@ -0,0 +1,49 @@
+/**
+* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
+*
+* Do not edit this file as changes may cause incorrect behavior and will be lost
+* once the code is regenerated.
+*
+* @generated by codegen project: GeneratePropsJavaInterface.js
+*/
+
+package com.facebook.react.viewmanagers;
+
+import android.view.View;
+import androidx.annotation.Nullable;
+import com.facebook.react.bridge.ReadableArray;
+import com.facebook.react.bridge.ReadableMap;
+import com.facebook.react.uimanager.ViewManagerWithGeneratedInterface;
+
+public interface EnrichedMarkdownTextManagerInterface extends ViewManagerWithGeneratedInterface {
+ void setMarkdown(T view, @Nullable String value);
+ void setMarkdownStyle(T view, @Nullable ReadableMap value);
+ void setEnableImagePress(T view, boolean value);
+ void setEnableTaskListItemToggle(T view, boolean value);
+ void setEnableCodeBlockPress(T view, boolean value);
+ void setEnableBlockContextMenu(T view, boolean value);
+ void setEnableLinkPreview(T view, boolean value);
+ void setSelectable(T view, boolean value);
+ void setSelectionColor(T view, @Nullable Integer value);
+ void setSelectionHandleColor(T view, @Nullable Integer value);
+ void setMd4cFlags(T view, @Nullable ReadableMap value);
+ void setIsGFM(T view, boolean value);
+ void setAllowFontScaling(T view, boolean value);
+ void setMaxFontSizeMultiplier(T view, float value);
+ void setAllowTrailingMargin(T view, boolean value);
+ void setStreamingAnimation(T view, boolean value);
+ void setStreamingConfig(T view, @Nullable ReadableMap value);
+ void setSpoilerOverlay(T view, @Nullable String value);
+ void setContextMenuItems(T view, @Nullable ReadableArray value);
+ void setImageRequestHeaders(T view, @Nullable ReadableArray value);
+ void setLinkPillContent(T view, @Nullable ReadableArray value);
+ void setLinkRecognition(T view, @Nullable ReadableMap value);
+ void setLinkContextMenuItems(T view, @Nullable ReadableArray value);
+ void setSelectionMenuConfig(T view, @Nullable ReadableMap value);
+ void setAccessibilityLabels(T view, @Nullable ReadableMap value);
+ void setTextBreakStrategy(T view, @Nullable String value);
+ void setLineBreakStrategyIOS(T view, @Nullable String value);
+ void setWritingDirection(T view, @Nullable String value);
+ void setNumberOfLines(T view, int value);
+ void setEllipsizeMode(T view, @Nullable String value);
+}
diff --git a/packages/react-native-enriched-markdown/android/generated/jni/react/renderer/components/EnrichedMarkdownTextSpec/ComponentDescriptors.cpp b/packages/react-native-enriched-markdown/android/generated/jni/react/renderer/components/EnrichedMarkdownTextSpec/ComponentDescriptors.cpp
new file mode 100644
index 000000000..4d59d5193
--- /dev/null
+++ b/packages/react-native-enriched-markdown/android/generated/jni/react/renderer/components/EnrichedMarkdownTextSpec/ComponentDescriptors.cpp
@@ -0,0 +1,22 @@
+
+/**
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
+ *
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
+ * once the code is regenerated.
+ *
+ * @generated by codegen project: GenerateComponentDescriptorCpp.js
+ */
+
+#include "ComponentDescriptors.h"
+#include
+#include
+
+namespace facebook::react {
+
+void EnrichedMarkdownTextSpec_registerComponentDescriptorsFromCodegen(
+ std::shared_ptr registry) {
+
+}
+
+} // namespace facebook::react
diff --git a/packages/react-native-enriched-markdown/android/generated/jni/react/renderer/components/EnrichedMarkdownTextSpec/ComponentDescriptors.h b/packages/react-native-enriched-markdown/android/generated/jni/react/renderer/components/EnrichedMarkdownTextSpec/ComponentDescriptors.h
new file mode 100644
index 000000000..06510880a
--- /dev/null
+++ b/packages/react-native-enriched-markdown/android/generated/jni/react/renderer/components/EnrichedMarkdownTextSpec/ComponentDescriptors.h
@@ -0,0 +1,24 @@
+
+/**
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
+ *
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
+ * once the code is regenerated.
+ *
+ * @generated by codegen project: GenerateComponentDescriptorH.js
+ */
+
+#pragma once
+
+#include "ShadowNodes.h"
+#include
+#include
+
+namespace facebook::react {
+
+
+
+void EnrichedMarkdownTextSpec_registerComponentDescriptorsFromCodegen(
+ std::shared_ptr registry);
+
+} // namespace facebook::react
diff --git a/packages/react-native-enriched-markdown/android/generated/jni/react/renderer/components/EnrichedMarkdownTextSpec/EventEmitters.cpp b/packages/react-native-enriched-markdown/android/generated/jni/react/renderer/components/EnrichedMarkdownTextSpec/EventEmitters.cpp
new file mode 100644
index 000000000..94997f7d6
--- /dev/null
+++ b/packages/react-native-enriched-markdown/android/generated/jni/react/renderer/components/EnrichedMarkdownTextSpec/EventEmitters.cpp
@@ -0,0 +1,455 @@
+
+/**
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
+ *
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
+ * once the code is regenerated.
+ *
+ * @generated by codegen project: GenerateEventEmitterCpp.js
+ */
+
+#include "EventEmitters.h"
+
+
+namespace facebook::react {
+
+void EnrichedMarkdownEventEmitter::onLinkPress(OnLinkPress event) const {
+ dispatchEvent("linkPress", [event=std::move(event)](jsi::Runtime &runtime) {
+ auto payload = jsi::Object(runtime);
+ payload.setProperty(runtime, "url", event.url);
+ payload.setProperty(runtime, "sourceType", event.sourceType);
+ return payload;
+ });
+}
+
+
+void EnrichedMarkdownEventEmitter::onLinkLongPress(OnLinkLongPress event) const {
+ dispatchEvent("linkLongPress", [event=std::move(event)](jsi::Runtime &runtime) {
+ auto payload = jsi::Object(runtime);
+ payload.setProperty(runtime, "url", event.url);
+ return payload;
+ });
+}
+
+
+void EnrichedMarkdownEventEmitter::onImagePress(OnImagePress event) const {
+ dispatchEvent("imagePress", [event=std::move(event)](jsi::Runtime &runtime) {
+ auto payload = jsi::Object(runtime);
+ payload.setProperty(runtime, "url", event.url);
+payload.setProperty(runtime, "altText", event.altText);
+ return payload;
+ });
+}
+
+
+void EnrichedMarkdownEventEmitter::onTaskListItemPress(OnTaskListItemPress event) const {
+ dispatchEvent("taskListItemPress", [event=std::move(event)](jsi::Runtime &runtime) {
+ auto payload = jsi::Object(runtime);
+ payload.setProperty(runtime, "index", event.index);
+payload.setProperty(runtime, "checked", event.checked);
+payload.setProperty(runtime, "text", event.text);
+ return payload;
+ });
+}
+
+
+void EnrichedMarkdownEventEmitter::onCopyPress(OnCopyPress event) const {
+ dispatchEvent("copyPress", [event=std::move(event)](jsi::Runtime &runtime) {
+ auto payload = jsi::Object(runtime);
+ payload.setProperty(runtime, "code", event.code);
+payload.setProperty(runtime, "language", event.language);
+ return payload;
+ });
+}
+
+
+void EnrichedMarkdownEventEmitter::onCodeBlockPress(OnCodeBlockPress event) const {
+ dispatchEvent("codeBlockPress", [event=std::move(event)](jsi::Runtime &runtime) {
+ auto payload = jsi::Object(runtime);
+ payload.setProperty(runtime, "code", event.code);
+payload.setProperty(runtime, "language", event.language);
+ return payload;
+ });
+}
+
+
+void EnrichedMarkdownEventEmitter::onLatexError(OnLatexError event) const {
+ dispatchEvent("latexError", [event=std::move(event)](jsi::Runtime &runtime) {
+ auto payload = jsi::Object(runtime);
+ payload.setProperty(runtime, "source", event.source);
+payload.setProperty(runtime, "message", event.message);
+payload.setProperty(runtime, "displayMode", event.displayMode);
+ return payload;
+ });
+}
+
+
+void EnrichedMarkdownEventEmitter::onLinkContextMenuItemPress(OnLinkContextMenuItemPress event) const {
+ dispatchEvent("linkContextMenuItemPress", [event=std::move(event)](jsi::Runtime &runtime) {
+ auto payload = jsi::Object(runtime);
+ payload.setProperty(runtime, "url", event.url);
+payload.setProperty(runtime, "pattern", event.pattern);
+payload.setProperty(runtime, "itemText", event.itemText);
+ return payload;
+ });
+}
+
+
+void EnrichedMarkdownEventEmitter::onContextMenuItemPress(OnContextMenuItemPress event) const {
+ dispatchEvent("contextMenuItemPress", [event=std::move(event)](jsi::Runtime &runtime) {
+ auto payload = jsi::Object(runtime);
+ payload.setProperty(runtime, "itemText", event.itemText);
+payload.setProperty(runtime, "selectedText", event.selectedText);
+payload.setProperty(runtime, "selectionStart", event.selectionStart);
+payload.setProperty(runtime, "selectionEnd", event.selectionEnd);
+ return payload;
+ });
+}
+
+
+void EnrichedMarkdownTextInputEventEmitter::onChangeText(OnChangeText event) const {
+ dispatchEvent("changeText", [event=std::move(event)](jsi::Runtime &runtime) {
+ auto payload = jsi::Object(runtime);
+ payload.setProperty(runtime, "value", event.value);
+ return payload;
+ });
+}
+
+
+void EnrichedMarkdownTextInputEventEmitter::onChangeMarkdown(OnChangeMarkdown event) const {
+ dispatchEvent("changeMarkdown", [event=std::move(event)](jsi::Runtime &runtime) {
+ auto payload = jsi::Object(runtime);
+ payload.setProperty(runtime, "value", event.value);
+ return payload;
+ });
+}
+
+
+void EnrichedMarkdownTextInputEventEmitter::onChangeSelection(OnChangeSelection event) const {
+ dispatchEvent("changeSelection", [event=std::move(event)](jsi::Runtime &runtime) {
+ auto payload = jsi::Object(runtime);
+ payload.setProperty(runtime, "start", event.start);
+payload.setProperty(runtime, "end", event.end);
+ return payload;
+ });
+}
+
+
+void EnrichedMarkdownTextInputEventEmitter::onInputKeyPress(OnInputKeyPress event) const {
+ dispatchEvent("inputKeyPress", [event=std::move(event)](jsi::Runtime &runtime) {
+ auto payload = jsi::Object(runtime);
+ payload.setProperty(runtime, "key", event.key);
+ return payload;
+ });
+}
+
+
+void EnrichedMarkdownTextInputEventEmitter::onChangeState(OnChangeState event) const {
+ dispatchEvent("changeState", [event=std::move(event)](jsi::Runtime &runtime) {
+ auto payload = jsi::Object(runtime);
+ {
+ auto bold = jsi::Object(runtime);
+ bold.setProperty(runtime, "isActive", event.bold.isActive);
+ payload.setProperty(runtime, "bold", bold);
+}
+{
+ auto italic = jsi::Object(runtime);
+ italic.setProperty(runtime, "isActive", event.italic.isActive);
+ payload.setProperty(runtime, "italic", italic);
+}
+{
+ auto underline = jsi::Object(runtime);
+ underline.setProperty(runtime, "isActive", event.underline.isActive);
+ payload.setProperty(runtime, "underline", underline);
+}
+{
+ auto strikethrough = jsi::Object(runtime);
+ strikethrough.setProperty(runtime, "isActive", event.strikethrough.isActive);
+ payload.setProperty(runtime, "strikethrough", strikethrough);
+}
+{
+ auto spoiler = jsi::Object(runtime);
+ spoiler.setProperty(runtime, "isActive", event.spoiler.isActive);
+ payload.setProperty(runtime, "spoiler", spoiler);
+}
+{
+ auto link = jsi::Object(runtime);
+ link.setProperty(runtime, "isActive", event.link.isActive);
+ link.setProperty(runtime, "destination", event.link.destination);
+ payload.setProperty(runtime, "link", link);
+}
+{
+ auto heading = jsi::Object(runtime);
+ heading.setProperty(runtime, "isActive", event.heading.isActive);
+ heading.setProperty(runtime, "level", event.heading.level);
+ payload.setProperty(runtime, "heading", heading);
+}
+{
+ auto unorderedList = jsi::Object(runtime);
+ unorderedList.setProperty(runtime, "isActive", event.unorderedList.isActive);
+ unorderedList.setProperty(runtime, "depth", event.unorderedList.depth);
+ payload.setProperty(runtime, "unorderedList", unorderedList);
+}
+{
+ auto orderedList = jsi::Object(runtime);
+ orderedList.setProperty(runtime, "isActive", event.orderedList.isActive);
+ orderedList.setProperty(runtime, "depth", event.orderedList.depth);
+ payload.setProperty(runtime, "orderedList", orderedList);
+}
+ return payload;
+ });
+}
+
+
+void EnrichedMarkdownTextInputEventEmitter::onInputFocus(OnInputFocus event) const {
+ dispatchEvent("inputFocus", [event=std::move(event)](jsi::Runtime &runtime) {
+ auto payload = jsi::Object(runtime);
+ payload.setProperty(runtime, "target", event.target);
+ return payload;
+ });
+}
+
+
+void EnrichedMarkdownTextInputEventEmitter::onInputBlur(OnInputBlur event) const {
+ dispatchEvent("inputBlur", [event=std::move(event)](jsi::Runtime &runtime) {
+ auto payload = jsi::Object(runtime);
+ payload.setProperty(runtime, "target", event.target);
+ return payload;
+ });
+}
+
+
+void EnrichedMarkdownTextInputEventEmitter::onRequestMarkdownResult(OnRequestMarkdownResult event) const {
+ dispatchEvent("requestMarkdownResult", [event=std::move(event)](jsi::Runtime &runtime) {
+ auto payload = jsi::Object(runtime);
+ payload.setProperty(runtime, "requestId", event.requestId);
+payload.setProperty(runtime, "markdown", event.markdown);
+ return payload;
+ });
+}
+
+
+void EnrichedMarkdownTextInputEventEmitter::onRequestCaretRectResult(OnRequestCaretRectResult event) const {
+ dispatchEvent("requestCaretRectResult", [event=std::move(event)](jsi::Runtime &runtime) {
+ auto payload = jsi::Object(runtime);
+ payload.setProperty(runtime, "requestId", event.requestId);
+payload.setProperty(runtime, "x", event.x);
+payload.setProperty(runtime, "y", event.y);
+payload.setProperty(runtime, "width", event.width);
+payload.setProperty(runtime, "height", event.height);
+ return payload;
+ });
+}
+
+
+void EnrichedMarkdownTextInputEventEmitter::onCaretRectChange(OnCaretRectChange event) const {
+ dispatchEvent("caretRectChange", [event=std::move(event)](jsi::Runtime &runtime) {
+ auto payload = jsi::Object(runtime);
+ payload.setProperty(runtime, "x", event.x);
+payload.setProperty(runtime, "y", event.y);
+payload.setProperty(runtime, "width", event.width);
+payload.setProperty(runtime, "height", event.height);
+ return payload;
+ });
+}
+
+
+void EnrichedMarkdownTextInputEventEmitter::onContextMenuItemPress(OnContextMenuItemPress event) const {
+ dispatchEvent("contextMenuItemPress", [event=std::move(event)](jsi::Runtime &runtime) {
+ auto payload = jsi::Object(runtime);
+ payload.setProperty(runtime, "itemText", event.itemText);
+payload.setProperty(runtime, "selectedText", event.selectedText);
+payload.setProperty(runtime, "selectionStart", event.selectionStart);
+payload.setProperty(runtime, "selectionEnd", event.selectionEnd);
+{
+ auto styleState = jsi::Object(runtime);
+ {
+ auto bold = jsi::Object(runtime);
+ bold.setProperty(runtime, "isActive", event.styleState.bold.isActive);
+ styleState.setProperty(runtime, "bold", bold);
+ }
+ {
+ auto italic = jsi::Object(runtime);
+ italic.setProperty(runtime, "isActive", event.styleState.italic.isActive);
+ styleState.setProperty(runtime, "italic", italic);
+ }
+ {
+ auto underline = jsi::Object(runtime);
+ underline.setProperty(runtime, "isActive", event.styleState.underline.isActive);
+ styleState.setProperty(runtime, "underline", underline);
+ }
+ {
+ auto strikethrough = jsi::Object(runtime);
+ strikethrough.setProperty(runtime, "isActive", event.styleState.strikethrough.isActive);
+ styleState.setProperty(runtime, "strikethrough", strikethrough);
+ }
+ {
+ auto spoiler = jsi::Object(runtime);
+ spoiler.setProperty(runtime, "isActive", event.styleState.spoiler.isActive);
+ styleState.setProperty(runtime, "spoiler", spoiler);
+ }
+ {
+ auto link = jsi::Object(runtime);
+ link.setProperty(runtime, "isActive", event.styleState.link.isActive);
+ link.setProperty(runtime, "destination", event.styleState.link.destination);
+ styleState.setProperty(runtime, "link", link);
+ }
+ {
+ auto heading = jsi::Object(runtime);
+ heading.setProperty(runtime, "isActive", event.styleState.heading.isActive);
+ heading.setProperty(runtime, "level", event.styleState.heading.level);
+ styleState.setProperty(runtime, "heading", heading);
+ }
+ {
+ auto unorderedList = jsi::Object(runtime);
+ unorderedList.setProperty(runtime, "isActive", event.styleState.unorderedList.isActive);
+ unorderedList.setProperty(runtime, "depth", event.styleState.unorderedList.depth);
+ styleState.setProperty(runtime, "unorderedList", unorderedList);
+ }
+ {
+ auto orderedList = jsi::Object(runtime);
+ orderedList.setProperty(runtime, "isActive", event.styleState.orderedList.isActive);
+ orderedList.setProperty(runtime, "depth", event.styleState.orderedList.depth);
+ styleState.setProperty(runtime, "orderedList", orderedList);
+ }
+ payload.setProperty(runtime, "styleState", styleState);
+}
+ return payload;
+ });
+}
+
+
+void EnrichedMarkdownTextInputEventEmitter::onLinkDetected(OnLinkDetected event) const {
+ dispatchEvent("linkDetected", [event=std::move(event)](jsi::Runtime &runtime) {
+ auto payload = jsi::Object(runtime);
+ payload.setProperty(runtime, "text", event.text);
+payload.setProperty(runtime, "url", event.url);
+payload.setProperty(runtime, "start", event.start);
+payload.setProperty(runtime, "end", event.end);
+ return payload;
+ });
+}
+
+
+void EnrichedMarkdownTextInputEventEmitter::onStartMention(OnStartMention event) const {
+ dispatchEvent("startMention", [event=std::move(event)](jsi::Runtime &runtime) {
+ auto payload = jsi::Object(runtime);
+ payload.setProperty(runtime, "indicator", event.indicator);
+ return payload;
+ });
+}
+
+
+void EnrichedMarkdownTextInputEventEmitter::onChangeMention(OnChangeMention event) const {
+ dispatchEvent("changeMention", [event=std::move(event)](jsi::Runtime &runtime) {
+ auto payload = jsi::Object(runtime);
+ payload.setProperty(runtime, "indicator", event.indicator);
+payload.setProperty(runtime, "text", event.text);
+ return payload;
+ });
+}
+
+
+void EnrichedMarkdownTextInputEventEmitter::onEndMention(OnEndMention event) const {
+ dispatchEvent("endMention", [event=std::move(event)](jsi::Runtime &runtime) {
+ auto payload = jsi::Object(runtime);
+ payload.setProperty(runtime, "indicator", event.indicator);
+ return payload;
+ });
+}
+
+
+void EnrichedMarkdownTextEventEmitter::onLinkPress(OnLinkPress event) const {
+ dispatchEvent("linkPress", [event=std::move(event)](jsi::Runtime &runtime) {
+ auto payload = jsi::Object(runtime);
+ payload.setProperty(runtime, "url", event.url);
+ payload.setProperty(runtime, "sourceType", event.sourceType);
+ return payload;
+ });
+}
+
+
+void EnrichedMarkdownTextEventEmitter::onLinkLongPress(OnLinkLongPress event) const {
+ dispatchEvent("linkLongPress", [event=std::move(event)](jsi::Runtime &runtime) {
+ auto payload = jsi::Object(runtime);
+ payload.setProperty(runtime, "url", event.url);
+ return payload;
+ });
+}
+
+
+void EnrichedMarkdownTextEventEmitter::onImagePress(OnImagePress event) const {
+ dispatchEvent("imagePress", [event=std::move(event)](jsi::Runtime &runtime) {
+ auto payload = jsi::Object(runtime);
+ payload.setProperty(runtime, "url", event.url);
+payload.setProperty(runtime, "altText", event.altText);
+ return payload;
+ });
+}
+
+
+void EnrichedMarkdownTextEventEmitter::onTaskListItemPress(OnTaskListItemPress event) const {
+ dispatchEvent("taskListItemPress", [event=std::move(event)](jsi::Runtime &runtime) {
+ auto payload = jsi::Object(runtime);
+ payload.setProperty(runtime, "index", event.index);
+payload.setProperty(runtime, "checked", event.checked);
+payload.setProperty(runtime, "text", event.text);
+ return payload;
+ });
+}
+
+
+void EnrichedMarkdownTextEventEmitter::onCopyPress(OnCopyPress event) const {
+ dispatchEvent("copyPress", [event=std::move(event)](jsi::Runtime &runtime) {
+ auto payload = jsi::Object(runtime);
+ payload.setProperty(runtime, "code", event.code);
+payload.setProperty(runtime, "language", event.language);
+ return payload;
+ });
+}
+
+
+void EnrichedMarkdownTextEventEmitter::onCodeBlockPress(OnCodeBlockPress event) const {
+ dispatchEvent("codeBlockPress", [event=std::move(event)](jsi::Runtime &runtime) {
+ auto payload = jsi::Object(runtime);
+ payload.setProperty(runtime, "code", event.code);
+payload.setProperty(runtime, "language", event.language);
+ return payload;
+ });
+}
+
+
+void EnrichedMarkdownTextEventEmitter::onLatexError(OnLatexError event) const {
+ dispatchEvent("latexError", [event=std::move(event)](jsi::Runtime &runtime) {
+ auto payload = jsi::Object(runtime);
+ payload.setProperty(runtime, "source", event.source);
+payload.setProperty(runtime, "message", event.message);
+payload.setProperty(runtime, "displayMode", event.displayMode);
+ return payload;
+ });
+}
+
+
+void EnrichedMarkdownTextEventEmitter::onLinkContextMenuItemPress(OnLinkContextMenuItemPress event) const {
+ dispatchEvent("linkContextMenuItemPress", [event=std::move(event)](jsi::Runtime &runtime) {
+ auto payload = jsi::Object(runtime);
+ payload.setProperty(runtime, "url", event.url);
+payload.setProperty(runtime, "pattern", event.pattern);
+payload.setProperty(runtime, "itemText", event.itemText);
+ return payload;
+ });
+}
+
+
+void EnrichedMarkdownTextEventEmitter::onContextMenuItemPress(OnContextMenuItemPress event) const {
+ dispatchEvent("contextMenuItemPress", [event=std::move(event)](jsi::Runtime &runtime) {
+ auto payload = jsi::Object(runtime);
+ payload.setProperty(runtime, "itemText", event.itemText);
+payload.setProperty(runtime, "selectedText", event.selectedText);
+payload.setProperty(runtime, "selectionStart", event.selectionStart);
+payload.setProperty(runtime, "selectionEnd", event.selectionEnd);
+ return payload;
+ });
+}
+
+} // namespace facebook::react
diff --git a/packages/react-native-enriched-markdown/android/generated/jni/react/renderer/components/EnrichedMarkdownTextSpec/EventEmitters.h b/packages/react-native-enriched-markdown/android/generated/jni/react/renderer/components/EnrichedMarkdownTextSpec/EventEmitters.h
new file mode 100644
index 000000000..5935112e7
--- /dev/null
+++ b/packages/react-native-enriched-markdown/android/generated/jni/react/renderer/components/EnrichedMarkdownTextSpec/EventEmitters.h
@@ -0,0 +1,366 @@
+
+/**
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
+ *
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
+ * once the code is regenerated.
+ *
+ * @generated by codegen project: GenerateEventEmitterH.js
+ */
+#pragma once
+
+#include
+
+
+namespace facebook::react {
+class EnrichedMarkdownEventEmitter : public ViewEventEmitter {
+ public:
+ using ViewEventEmitter::ViewEventEmitter;
+
+ struct OnLinkPress {
+ std::string url;
+ std::string sourceType;
+ };
+
+ struct OnLinkLongPress {
+ std::string url;
+ };
+
+ struct OnImagePress {
+ std::string url;
+ std::string altText;
+ };
+
+ struct OnTaskListItemPress {
+ int index;
+ bool checked;
+ std::string text;
+ };
+
+ struct OnCopyPress {
+ std::string code;
+ std::string language;
+ };
+
+ struct OnCodeBlockPress {
+ std::string code;
+ std::string language;
+ };
+
+ struct OnLatexError {
+ std::string source;
+ std::string message;
+ bool displayMode;
+ };
+
+ struct OnLinkContextMenuItemPress {
+ std::string url;
+ std::string pattern;
+ std::string itemText;
+ };
+
+ struct OnContextMenuItemPress {
+ std::string itemText;
+ std::string selectedText;
+ int selectionStart;
+ int selectionEnd;
+ };
+ void onLinkPress(OnLinkPress value) const;
+
+ void onLinkLongPress(OnLinkLongPress value) const;
+
+ void onImagePress(OnImagePress value) const;
+
+ void onTaskListItemPress(OnTaskListItemPress value) const;
+
+ void onCopyPress(OnCopyPress value) const;
+
+ void onCodeBlockPress(OnCodeBlockPress value) const;
+
+ void onLatexError(OnLatexError value) const;
+
+ void onLinkContextMenuItemPress(OnLinkContextMenuItemPress value) const;
+
+ void onContextMenuItemPress(OnContextMenuItemPress value) const;
+};
+class EnrichedMarkdownTextInputEventEmitter : public ViewEventEmitter {
+ public:
+ using ViewEventEmitter::ViewEventEmitter;
+
+ struct OnChangeText {
+ std::string value;
+ };
+
+ struct OnChangeMarkdown {
+ std::string value;
+ };
+
+ struct OnChangeSelection {
+ int start;
+ int end;
+ };
+
+ struct OnInputKeyPress {
+ std::string key;
+ };
+
+ struct OnChangeStateBold {
+ bool isActive;
+ };
+
+ struct OnChangeStateItalic {
+ bool isActive;
+ };
+
+ struct OnChangeStateUnderline {
+ bool isActive;
+ };
+
+ struct OnChangeStateStrikethrough {
+ bool isActive;
+ };
+
+ struct OnChangeStateSpoiler {
+ bool isActive;
+ };
+
+ struct OnChangeStateLink {
+ bool isActive;
+ std::string destination;
+ };
+
+ struct OnChangeStateHeading {
+ bool isActive;
+ int level;
+ };
+
+ struct OnChangeStateUnorderedList {
+ bool isActive;
+ int depth;
+ };
+
+ struct OnChangeStateOrderedList {
+ bool isActive;
+ int depth;
+ };
+
+ struct OnChangeState {
+ OnChangeStateBold bold;
+ OnChangeStateItalic italic;
+ OnChangeStateUnderline underline;
+ OnChangeStateStrikethrough strikethrough;
+ OnChangeStateSpoiler spoiler;
+ OnChangeStateLink link;
+ OnChangeStateHeading heading;
+ OnChangeStateUnorderedList unorderedList;
+ OnChangeStateOrderedList orderedList;
+ };
+
+ struct OnInputFocus {
+ int target;
+ };
+
+ struct OnInputBlur {
+ int target;
+ };
+
+ struct OnRequestMarkdownResult {
+ int requestId;
+ std::string markdown;
+ };
+
+ struct OnRequestCaretRectResult {
+ int requestId;
+ double x;
+ double y;
+ double width;
+ double height;
+ };
+
+ struct OnCaretRectChange {
+ double x;
+ double y;
+ double width;
+ double height;
+ };
+
+ struct OnContextMenuItemPressStyleStateBold {
+ bool isActive;
+ };
+
+ struct OnContextMenuItemPressStyleStateItalic {
+ bool isActive;
+ };
+
+ struct OnContextMenuItemPressStyleStateUnderline {
+ bool isActive;
+ };
+
+ struct OnContextMenuItemPressStyleStateStrikethrough {
+ bool isActive;
+ };
+
+ struct OnContextMenuItemPressStyleStateSpoiler {
+ bool isActive;
+ };
+
+ struct OnContextMenuItemPressStyleStateLink {
+ bool isActive;
+ std::string destination;
+ };
+
+ struct OnContextMenuItemPressStyleStateHeading {
+ bool isActive;
+ int level;
+ };
+
+ struct OnContextMenuItemPressStyleStateUnorderedList {
+ bool isActive;
+ int depth;
+ };
+
+ struct OnContextMenuItemPressStyleStateOrderedList {
+ bool isActive;
+ int depth;
+ };
+
+ struct OnContextMenuItemPressStyleState {
+ OnContextMenuItemPressStyleStateBold bold;
+ OnContextMenuItemPressStyleStateItalic italic;
+ OnContextMenuItemPressStyleStateUnderline underline;
+ OnContextMenuItemPressStyleStateStrikethrough strikethrough;
+ OnContextMenuItemPressStyleStateSpoiler spoiler;
+ OnContextMenuItemPressStyleStateLink link;
+ OnContextMenuItemPressStyleStateHeading heading;
+ OnContextMenuItemPressStyleStateUnorderedList unorderedList;
+ OnContextMenuItemPressStyleStateOrderedList orderedList;
+ };
+
+ struct OnContextMenuItemPress {
+ std::string itemText;
+ std::string selectedText;
+ int selectionStart;
+ int selectionEnd;
+ OnContextMenuItemPressStyleState styleState;
+ };
+
+ struct OnLinkDetected {
+ std::string text;
+ std::string url;
+ int start;
+ int end;
+ };
+
+ struct OnStartMention {
+ std::string indicator;
+ };
+
+ struct OnChangeMention {
+ std::string indicator;
+ std::string text;
+ };
+
+ struct OnEndMention {
+ std::string indicator;
+ };
+ void onChangeText(OnChangeText value) const;
+
+ void onChangeMarkdown(OnChangeMarkdown value) const;
+
+ void onChangeSelection(OnChangeSelection value) const;
+
+ void onInputKeyPress(OnInputKeyPress value) const;
+
+ void onChangeState(OnChangeState value) const;
+
+ void onInputFocus(OnInputFocus value) const;
+
+ void onInputBlur(OnInputBlur value) const;
+
+ void onRequestMarkdownResult(OnRequestMarkdownResult value) const;
+
+ void onRequestCaretRectResult(OnRequestCaretRectResult value) const;
+
+ void onCaretRectChange(OnCaretRectChange value) const;
+
+ void onContextMenuItemPress(OnContextMenuItemPress value) const;
+
+ void onLinkDetected(OnLinkDetected value) const;
+
+ void onStartMention(OnStartMention value) const;
+
+ void onChangeMention(OnChangeMention value) const;
+
+ void onEndMention(OnEndMention value) const;
+};
+class EnrichedMarkdownTextEventEmitter : public ViewEventEmitter {
+ public:
+ using ViewEventEmitter::ViewEventEmitter;
+
+ struct OnLinkPress {
+ std::string url;
+ std::string sourceType;
+ };
+
+ struct OnLinkLongPress {
+ std::string url;
+ };
+
+ struct OnImagePress {
+ std::string url;
+ std::string altText;
+ };
+
+ struct OnTaskListItemPress {
+ int index;
+ bool checked;
+ std::string text;
+ };
+
+ struct OnCopyPress {
+ std::string code;
+ std::string language;
+ };
+
+ struct OnCodeBlockPress {
+ std::string code;
+ std::string language;
+ };
+
+ struct OnLatexError {
+ std::string source;
+ std::string message;
+ bool displayMode;
+ };
+
+ struct OnLinkContextMenuItemPress {
+ std::string url;
+ std::string pattern;
+ std::string itemText;
+ };
+
+ struct OnContextMenuItemPress {
+ std::string itemText;
+ std::string selectedText;
+ int selectionStart;
+ int selectionEnd;
+ };
+ void onLinkPress(OnLinkPress value) const;
+
+ void onLinkLongPress(OnLinkLongPress value) const;
+
+ void onImagePress(OnImagePress value) const;
+
+ void onTaskListItemPress(OnTaskListItemPress value) const;
+
+ void onCopyPress(OnCopyPress value) const;
+
+ void onCodeBlockPress(OnCodeBlockPress value) const;
+
+ void onLatexError(OnLatexError value) const;
+
+ void onLinkContextMenuItemPress(OnLinkContextMenuItemPress value) const;
+
+ void onContextMenuItemPress(OnContextMenuItemPress value) const;
+};
+} // namespace facebook::react
diff --git a/packages/react-native-enriched-markdown/android/generated/jni/react/renderer/components/EnrichedMarkdownTextSpec/Props.cpp b/packages/react-native-enriched-markdown/android/generated/jni/react/renderer/components/EnrichedMarkdownTextSpec/Props.cpp
new file mode 100644
index 000000000..3e20b6776
--- /dev/null
+++ b/packages/react-native-enriched-markdown/android/generated/jni/react/renderer/components/EnrichedMarkdownTextSpec/Props.cpp
@@ -0,0 +1,510 @@
+
+/**
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
+ *
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
+ * once the code is regenerated.
+ *
+ * @generated by codegen project: GeneratePropsCpp.js
+ */
+
+#include "Props.h"
+#include
+#include
+
+namespace facebook::react {
+
+EnrichedMarkdownProps::EnrichedMarkdownProps(
+ const PropsParserContext &context,
+ const EnrichedMarkdownProps &sourceProps,
+ const RawProps &rawProps): ViewProps(context, sourceProps, rawProps),
+
+ markdown(convertRawProp(context, rawProps, "markdown", sourceProps.markdown, {})),
+ markdownStyle(convertRawProp(context, rawProps, "markdownStyle", sourceProps.markdownStyle, {})),
+ enableImagePress(convertRawProp(context, rawProps, "enableImagePress", sourceProps.enableImagePress, {false})),
+ enableTaskListItemToggle(convertRawProp(context, rawProps, "enableTaskListItemToggle", sourceProps.enableTaskListItemToggle, {true})),
+ enableCodeBlockPress(convertRawProp(context, rawProps, "enableCodeBlockPress", sourceProps.enableCodeBlockPress, {false})),
+ enableBlockContextMenu(convertRawProp(context, rawProps, "enableBlockContextMenu", sourceProps.enableBlockContextMenu, {true})),
+ enableLinkPreview(convertRawProp(context, rawProps, "enableLinkPreview", sourceProps.enableLinkPreview, {true})),
+ selectable(convertRawProp(context, rawProps, "selectable", sourceProps.selectable, {false})),
+ selectionColor(convertRawProp(context, rawProps, "selectionColor", sourceProps.selectionColor, {})),
+ selectionHandleColor(convertRawProp(context, rawProps, "selectionHandleColor", sourceProps.selectionHandleColor, {})),
+ md4cFlags(convertRawProp(context, rawProps, "md4cFlags", sourceProps.md4cFlags, {})),
+ isGFM(convertRawProp(context, rawProps, "isGFM", sourceProps.isGFM, {true})),
+ allowFontScaling(convertRawProp(context, rawProps, "allowFontScaling", sourceProps.allowFontScaling, {true})),
+ maxFontSizeMultiplier(convertRawProp(context, rawProps, "maxFontSizeMultiplier", sourceProps.maxFontSizeMultiplier, {0.0})),
+ allowTrailingMargin(convertRawProp(context, rawProps, "allowTrailingMargin", sourceProps.allowTrailingMargin, {false})),
+ streamingAnimation(convertRawProp(context, rawProps, "streamingAnimation", sourceProps.streamingAnimation, {false})),
+ streamingConfig(convertRawProp(context, rawProps, "streamingConfig", sourceProps.streamingConfig, {})),
+ spoilerOverlay(convertRawProp(context, rawProps, "spoilerOverlay", sourceProps.spoilerOverlay, {std::string{"particles"}})),
+ contextMenuItems(convertRawProp(context, rawProps, "contextMenuItems", sourceProps.contextMenuItems, {})),
+ imageRequestHeaders(convertRawProp(context, rawProps, "imageRequestHeaders", sourceProps.imageRequestHeaders, {})),
+ linkPillContent(convertRawProp(context, rawProps, "linkPillContent", sourceProps.linkPillContent, {})),
+ linkRecognition(convertRawProp(context, rawProps, "linkRecognition", sourceProps.linkRecognition, {})),
+ linkContextMenuItems(convertRawProp(context, rawProps, "linkContextMenuItems", sourceProps.linkContextMenuItems, {})),
+ selectionMenuConfig(convertRawProp(context, rawProps, "selectionMenuConfig", sourceProps.selectionMenuConfig, {})),
+ accessibilityLabels(convertRawProp(context, rawProps, "accessibilityLabels", sourceProps.accessibilityLabels, {})),
+ textBreakStrategy(convertRawProp(context, rawProps, "textBreakStrategy", sourceProps.textBreakStrategy, {std::string{"highQuality"}})),
+ lineBreakStrategyIOS(convertRawProp(context, rawProps, "lineBreakStrategyIOS", sourceProps.lineBreakStrategyIOS, {std::string{"none"}})),
+ writingDirection(convertRawProp(context, rawProps, "writingDirection", sourceProps.writingDirection, {std::string{"first-strong"}})),
+ numberOfLines(convertRawProp(context, rawProps, "numberOfLines", sourceProps.numberOfLines, {0})),
+ ellipsizeMode(convertRawProp(context, rawProps, "ellipsizeMode", sourceProps.ellipsizeMode, {std::string{"tail"}})) {}
+
+#ifdef RN_SERIALIZABLE_STATE
+ComponentName EnrichedMarkdownProps::getDiffPropsImplementationTarget() const {
+ return "EnrichedMarkdown";
+}
+
+folly::dynamic EnrichedMarkdownProps::getDiffProps(
+ const Props* prevProps) const {
+ static const auto defaultProps = EnrichedMarkdownProps();
+ const EnrichedMarkdownProps* oldProps = prevProps == nullptr
+ ? &defaultProps
+ : static_cast(prevProps);
+ if (this == oldProps) {
+ return folly::dynamic::object();
+ }
+ folly::dynamic result = HostPlatformViewProps::getDiffProps(prevProps);
+
+ if (markdown != oldProps->markdown) {
+ result["markdown"] = markdown;
+ }
+
+ if (markdownStyle != oldProps->markdownStyle) {
+ result["markdownStyle"] = toDynamic(markdownStyle);
+ }
+
+ if (enableImagePress != oldProps->enableImagePress) {
+ result["enableImagePress"] = enableImagePress;
+ }
+
+ if (enableTaskListItemToggle != oldProps->enableTaskListItemToggle) {
+ result["enableTaskListItemToggle"] = enableTaskListItemToggle;
+ }
+
+ if (enableCodeBlockPress != oldProps->enableCodeBlockPress) {
+ result["enableCodeBlockPress"] = enableCodeBlockPress;
+ }
+
+ if (enableBlockContextMenu != oldProps->enableBlockContextMenu) {
+ result["enableBlockContextMenu"] = enableBlockContextMenu;
+ }
+
+ if (enableLinkPreview != oldProps->enableLinkPreview) {
+ result["enableLinkPreview"] = enableLinkPreview;
+ }
+
+ if (selectable != oldProps->selectable) {
+ result["selectable"] = selectable;
+ }
+
+ if (selectionColor != oldProps->selectionColor) {
+ result["selectionColor"] = *selectionColor;
+ }
+
+ if (selectionHandleColor != oldProps->selectionHandleColor) {
+ result["selectionHandleColor"] = *selectionHandleColor;
+ }
+
+ if (md4cFlags != oldProps->md4cFlags) {
+ result["md4cFlags"] = toDynamic(md4cFlags);
+ }
+
+ if (isGFM != oldProps->isGFM) {
+ result["isGFM"] = isGFM;
+ }
+
+ if (allowFontScaling != oldProps->allowFontScaling) {
+ result["allowFontScaling"] = allowFontScaling;
+ }
+
+ if ((maxFontSizeMultiplier != oldProps->maxFontSizeMultiplier) && !(std::isnan(maxFontSizeMultiplier) && std::isnan(oldProps->maxFontSizeMultiplier))) {
+ result["maxFontSizeMultiplier"] = maxFontSizeMultiplier;
+ }
+
+ if (allowTrailingMargin != oldProps->allowTrailingMargin) {
+ result["allowTrailingMargin"] = allowTrailingMargin;
+ }
+
+ if (streamingAnimation != oldProps->streamingAnimation) {
+ result["streamingAnimation"] = streamingAnimation;
+ }
+
+ if (streamingConfig != oldProps->streamingConfig) {
+ result["streamingConfig"] = toDynamic(streamingConfig);
+ }
+
+ if (spoilerOverlay != oldProps->spoilerOverlay) {
+ result["spoilerOverlay"] = spoilerOverlay;
+ }
+
+ if (contextMenuItems != oldProps->contextMenuItems) {
+ result["contextMenuItems"] = toDynamic(contextMenuItems);
+ }
+
+ if (imageRequestHeaders != oldProps->imageRequestHeaders) {
+ result["imageRequestHeaders"] = toDynamic(imageRequestHeaders);
+ }
+
+ if (linkPillContent != oldProps->linkPillContent) {
+ result["linkPillContent"] = toDynamic(linkPillContent);
+ }
+
+ if (linkRecognition != oldProps->linkRecognition) {
+ result["linkRecognition"] = toDynamic(linkRecognition);
+ }
+
+ if (linkContextMenuItems != oldProps->linkContextMenuItems) {
+ result["linkContextMenuItems"] = toDynamic(linkContextMenuItems);
+ }
+
+ if (selectionMenuConfig != oldProps->selectionMenuConfig) {
+ result["selectionMenuConfig"] = toDynamic(selectionMenuConfig);
+ }
+
+ if (accessibilityLabels != oldProps->accessibilityLabels) {
+ result["accessibilityLabels"] = toDynamic(accessibilityLabels);
+ }
+
+ if (textBreakStrategy != oldProps->textBreakStrategy) {
+ result["textBreakStrategy"] = textBreakStrategy;
+ }
+
+ if (lineBreakStrategyIOS != oldProps->lineBreakStrategyIOS) {
+ result["lineBreakStrategyIOS"] = lineBreakStrategyIOS;
+ }
+
+ if (writingDirection != oldProps->writingDirection) {
+ result["writingDirection"] = writingDirection;
+ }
+
+ if (numberOfLines != oldProps->numberOfLines) {
+ result["numberOfLines"] = numberOfLines;
+ }
+
+ if (ellipsizeMode != oldProps->ellipsizeMode) {
+ result["ellipsizeMode"] = ellipsizeMode;
+ }
+ return result;
+}
+#endif
+EnrichedMarkdownTextInputProps::EnrichedMarkdownTextInputProps(
+ const PropsParserContext &context,
+ const EnrichedMarkdownTextInputProps &sourceProps,
+ const RawProps &rawProps): ViewProps(context, sourceProps, rawProps),
+
+ defaultValue(convertRawProp(context, rawProps, "defaultValue", sourceProps.defaultValue, {})),
+ placeholder(convertRawProp(context, rawProps, "placeholder", sourceProps.placeholder, {})),
+ placeholderTextColor(convertRawProp(context, rawProps, "placeholderTextColor", sourceProps.placeholderTextColor, {})),
+ editable(convertRawProp(context, rawProps, "editable", sourceProps.editable, {false})),
+ autoFocus(convertRawProp(context, rawProps, "autoFocus", sourceProps.autoFocus, {false})),
+ scrollEnabled(convertRawProp(context, rawProps, "scrollEnabled", sourceProps.scrollEnabled, {false})),
+ markdownShortcuts(convertRawProp(context, rawProps, "markdownShortcuts", sourceProps.markdownShortcuts, {})),
+ autoCapitalize(convertRawProp(context, rawProps, "autoCapitalize", sourceProps.autoCapitalize, {})),
+ multiline(convertRawProp(context, rawProps, "multiline", sourceProps.multiline, {false})),
+ cursorColor(convertRawProp(context, rawProps, "cursorColor", sourceProps.cursorColor, {})),
+ selectionColor(convertRawProp(context, rawProps, "selectionColor", sourceProps.selectionColor, {})),
+ markdownStyle(convertRawProp(context, rawProps, "markdownStyle", sourceProps.markdownStyle, {})),
+ color(convertRawProp(context, rawProps, "color", sourceProps.color, {})),
+ fontSize(convertRawProp(context, rawProps, "fontSize", sourceProps.fontSize, {0.0})),
+ lineHeight(convertRawProp(context, rawProps, "lineHeight", sourceProps.lineHeight, {0.0})),
+ fontFamily(convertRawProp(context, rawProps, "fontFamily", sourceProps.fontFamily, {})),
+ fontWeight(convertRawProp(context, rawProps, "fontWeight", sourceProps.fontWeight, {})),
+ isOnChangeMarkdownSet(convertRawProp(context, rawProps, "isOnChangeMarkdownSet", sourceProps.isOnChangeMarkdownSet, {false})),
+ contextMenuItems(convertRawProp(context, rawProps, "contextMenuItems", sourceProps.contextMenuItems, {})),
+ selectionMenuConfig(convertRawProp(context, rawProps, "selectionMenuConfig", sourceProps.selectionMenuConfig, {})),
+ formatMenuConfig(convertRawProp(context, rawProps, "formatMenuConfig", sourceProps.formatMenuConfig, {})),
+ linkRegex(convertRawProp(context, rawProps, "linkRegex", sourceProps.linkRegex, {})),
+ mentionIndicators(convertRawProp(context, rawProps, "mentionIndicators", sourceProps.mentionIndicators, {})),
+ writingDirection(convertRawProp(context, rawProps, "writingDirection", sourceProps.writingDirection, {std::string{"first-strong"}})) {}
+
+#ifdef RN_SERIALIZABLE_STATE
+ComponentName EnrichedMarkdownTextInputProps::getDiffPropsImplementationTarget() const {
+ return "EnrichedMarkdownTextInput";
+}
+
+folly::dynamic EnrichedMarkdownTextInputProps::getDiffProps(
+ const Props* prevProps) const {
+ static const auto defaultProps = EnrichedMarkdownTextInputProps();
+ const EnrichedMarkdownTextInputProps* oldProps = prevProps == nullptr
+ ? &defaultProps
+ : static_cast(prevProps);
+ if (this == oldProps) {
+ return folly::dynamic::object();
+ }
+ folly::dynamic result = HostPlatformViewProps::getDiffProps(prevProps);
+
+ if (defaultValue != oldProps->defaultValue) {
+ result["defaultValue"] = defaultValue;
+ }
+
+ if (placeholder != oldProps->placeholder) {
+ result["placeholder"] = placeholder;
+ }
+
+ if (placeholderTextColor != oldProps->placeholderTextColor) {
+ result["placeholderTextColor"] = *placeholderTextColor;
+ }
+
+ if (editable != oldProps->editable) {
+ result["editable"] = editable;
+ }
+
+ if (autoFocus != oldProps->autoFocus) {
+ result["autoFocus"] = autoFocus;
+ }
+
+ if (scrollEnabled != oldProps->scrollEnabled) {
+ result["scrollEnabled"] = scrollEnabled;
+ }
+
+ if (markdownShortcuts != oldProps->markdownShortcuts) {
+ result["markdownShortcuts"] = toDynamic(markdownShortcuts);
+ }
+
+ if (autoCapitalize != oldProps->autoCapitalize) {
+ result["autoCapitalize"] = autoCapitalize;
+ }
+
+ if (multiline != oldProps->multiline) {
+ result["multiline"] = multiline;
+ }
+
+ if (cursorColor != oldProps->cursorColor) {
+ result["cursorColor"] = *cursorColor;
+ }
+
+ if (selectionColor != oldProps->selectionColor) {
+ result["selectionColor"] = *selectionColor;
+ }
+
+ if (markdownStyle != oldProps->markdownStyle) {
+ result["markdownStyle"] = toDynamic(markdownStyle);
+ }
+
+ if (color != oldProps->color) {
+ result["color"] = *color;
+ }
+
+ if ((fontSize != oldProps->fontSize) && !(std::isnan(fontSize) && std::isnan(oldProps->fontSize))) {
+ result["fontSize"] = fontSize;
+ }
+
+ if ((lineHeight != oldProps->lineHeight) && !(std::isnan(lineHeight) && std::isnan(oldProps->lineHeight))) {
+ result["lineHeight"] = lineHeight;
+ }
+
+ if (fontFamily != oldProps->fontFamily) {
+ result["fontFamily"] = fontFamily;
+ }
+
+ if (fontWeight != oldProps->fontWeight) {
+ result["fontWeight"] = fontWeight;
+ }
+
+ if (isOnChangeMarkdownSet != oldProps->isOnChangeMarkdownSet) {
+ result["isOnChangeMarkdownSet"] = isOnChangeMarkdownSet;
+ }
+
+ if (contextMenuItems != oldProps->contextMenuItems) {
+ result["contextMenuItems"] = toDynamic(contextMenuItems);
+ }
+
+ if (selectionMenuConfig != oldProps->selectionMenuConfig) {
+ result["selectionMenuConfig"] = toDynamic(selectionMenuConfig);
+ }
+
+ if (formatMenuConfig != oldProps->formatMenuConfig) {
+ result["formatMenuConfig"] = toDynamic(formatMenuConfig);
+ }
+
+ if (linkRegex != oldProps->linkRegex) {
+ result["linkRegex"] = toDynamic(linkRegex);
+ }
+
+ if (mentionIndicators != oldProps->mentionIndicators) {
+ result["mentionIndicators"] = toDynamic(mentionIndicators);
+ }
+
+ if (writingDirection != oldProps->writingDirection) {
+ result["writingDirection"] = writingDirection;
+ }
+ return result;
+}
+#endif
+EnrichedMarkdownTextProps::EnrichedMarkdownTextProps(
+ const PropsParserContext &context,
+ const EnrichedMarkdownTextProps &sourceProps,
+ const RawProps &rawProps): ViewProps(context, sourceProps, rawProps),
+
+ markdown(convertRawProp(context, rawProps, "markdown", sourceProps.markdown, {})),
+ markdownStyle(convertRawProp(context, rawProps, "markdownStyle", sourceProps.markdownStyle, {})),
+ enableImagePress(convertRawProp(context, rawProps, "enableImagePress", sourceProps.enableImagePress, {false})),
+ enableTaskListItemToggle(convertRawProp(context, rawProps, "enableTaskListItemToggle", sourceProps.enableTaskListItemToggle, {true})),
+ enableCodeBlockPress(convertRawProp(context, rawProps, "enableCodeBlockPress", sourceProps.enableCodeBlockPress, {false})),
+ enableBlockContextMenu(convertRawProp(context, rawProps, "enableBlockContextMenu", sourceProps.enableBlockContextMenu, {true})),
+ enableLinkPreview(convertRawProp(context, rawProps, "enableLinkPreview", sourceProps.enableLinkPreview, {true})),
+ selectable(convertRawProp(context, rawProps, "selectable", sourceProps.selectable, {false})),
+ selectionColor(convertRawProp(context, rawProps, "selectionColor", sourceProps.selectionColor, {})),
+ selectionHandleColor(convertRawProp(context, rawProps, "selectionHandleColor", sourceProps.selectionHandleColor, {})),
+ md4cFlags(convertRawProp(context, rawProps, "md4cFlags", sourceProps.md4cFlags, {})),
+ isGFM(convertRawProp(context, rawProps, "isGFM", sourceProps.isGFM, {false})),
+ allowFontScaling(convertRawProp(context, rawProps, "allowFontScaling", sourceProps.allowFontScaling, {true})),
+ maxFontSizeMultiplier(convertRawProp(context, rawProps, "maxFontSizeMultiplier", sourceProps.maxFontSizeMultiplier, {0.0})),
+ allowTrailingMargin(convertRawProp(context, rawProps, "allowTrailingMargin", sourceProps.allowTrailingMargin, {false})),
+ streamingAnimation(convertRawProp(context, rawProps, "streamingAnimation", sourceProps.streamingAnimation, {false})),
+ streamingConfig(convertRawProp(context, rawProps, "streamingConfig", sourceProps.streamingConfig, {})),
+ spoilerOverlay(convertRawProp(context, rawProps, "spoilerOverlay", sourceProps.spoilerOverlay, {std::string{"particles"}})),
+ contextMenuItems(convertRawProp(context, rawProps, "contextMenuItems", sourceProps.contextMenuItems, {})),
+ imageRequestHeaders(convertRawProp(context, rawProps, "imageRequestHeaders", sourceProps.imageRequestHeaders, {})),
+ linkPillContent(convertRawProp(context, rawProps, "linkPillContent", sourceProps.linkPillContent, {})),
+ linkRecognition(convertRawProp(context, rawProps, "linkRecognition", sourceProps.linkRecognition, {})),
+ linkContextMenuItems(convertRawProp(context, rawProps, "linkContextMenuItems", sourceProps.linkContextMenuItems, {})),
+ selectionMenuConfig(convertRawProp(context, rawProps, "selectionMenuConfig", sourceProps.selectionMenuConfig, {})),
+ accessibilityLabels(convertRawProp(context, rawProps, "accessibilityLabels", sourceProps.accessibilityLabels, {})),
+ textBreakStrategy(convertRawProp(context, rawProps, "textBreakStrategy", sourceProps.textBreakStrategy, {std::string{"highQuality"}})),
+ lineBreakStrategyIOS(convertRawProp(context, rawProps, "lineBreakStrategyIOS", sourceProps.lineBreakStrategyIOS, {std::string{"none"}})),
+ writingDirection(convertRawProp(context, rawProps, "writingDirection", sourceProps.writingDirection, {std::string{"first-strong"}})),
+ numberOfLines(convertRawProp(context, rawProps, "numberOfLines", sourceProps.numberOfLines, {0})),
+ ellipsizeMode(convertRawProp(context, rawProps, "ellipsizeMode", sourceProps.ellipsizeMode, {std::string{"tail"}})) {}
+
+#ifdef RN_SERIALIZABLE_STATE
+ComponentName EnrichedMarkdownTextProps::getDiffPropsImplementationTarget() const {
+ return "EnrichedMarkdownText";
+}
+
+folly::dynamic EnrichedMarkdownTextProps::getDiffProps(
+ const Props* prevProps) const {
+ static const auto defaultProps = EnrichedMarkdownTextProps();
+ const EnrichedMarkdownTextProps* oldProps = prevProps == nullptr
+ ? &defaultProps
+ : static_cast(prevProps);
+ if (this == oldProps) {
+ return folly::dynamic::object();
+ }
+ folly::dynamic result = HostPlatformViewProps::getDiffProps(prevProps);
+
+ if (markdown != oldProps->markdown) {
+ result["markdown"] = markdown;
+ }
+
+ if (markdownStyle != oldProps->markdownStyle) {
+ result["markdownStyle"] = toDynamic(markdownStyle);
+ }
+
+ if (enableImagePress != oldProps->enableImagePress) {
+ result["enableImagePress"] = enableImagePress;
+ }
+
+ if (enableTaskListItemToggle != oldProps->enableTaskListItemToggle) {
+ result["enableTaskListItemToggle"] = enableTaskListItemToggle;
+ }
+
+ if (enableCodeBlockPress != oldProps->enableCodeBlockPress) {
+ result["enableCodeBlockPress"] = enableCodeBlockPress;
+ }
+
+ if (enableBlockContextMenu != oldProps->enableBlockContextMenu) {
+ result["enableBlockContextMenu"] = enableBlockContextMenu;
+ }
+
+ if (enableLinkPreview != oldProps->enableLinkPreview) {
+ result["enableLinkPreview"] = enableLinkPreview;
+ }
+
+ if (selectable != oldProps->selectable) {
+ result["selectable"] = selectable;
+ }
+
+ if (selectionColor != oldProps->selectionColor) {
+ result["selectionColor"] = *selectionColor;
+ }
+
+ if (selectionHandleColor != oldProps->selectionHandleColor) {
+ result["selectionHandleColor"] = *selectionHandleColor;
+ }
+
+ if (md4cFlags != oldProps->md4cFlags) {
+ result["md4cFlags"] = toDynamic(md4cFlags);
+ }
+
+ if (isGFM != oldProps->isGFM) {
+ result["isGFM"] = isGFM;
+ }
+
+ if (allowFontScaling != oldProps->allowFontScaling) {
+ result["allowFontScaling"] = allowFontScaling;
+ }
+
+ if ((maxFontSizeMultiplier != oldProps->maxFontSizeMultiplier) && !(std::isnan(maxFontSizeMultiplier) && std::isnan(oldProps->maxFontSizeMultiplier))) {
+ result["maxFontSizeMultiplier"] = maxFontSizeMultiplier;
+ }
+
+ if (allowTrailingMargin != oldProps->allowTrailingMargin) {
+ result["allowTrailingMargin"] = allowTrailingMargin;
+ }
+
+ if (streamingAnimation != oldProps->streamingAnimation) {
+ result["streamingAnimation"] = streamingAnimation;
+ }
+
+ if (streamingConfig != oldProps->streamingConfig) {
+ result["streamingConfig"] = toDynamic(streamingConfig);
+ }
+
+ if (spoilerOverlay != oldProps->spoilerOverlay) {
+ result["spoilerOverlay"] = spoilerOverlay;
+ }
+
+ if (contextMenuItems != oldProps->contextMenuItems) {
+ result["contextMenuItems"] = toDynamic(contextMenuItems);
+ }
+
+ if (imageRequestHeaders != oldProps->imageRequestHeaders) {
+ result["imageRequestHeaders"] = toDynamic(imageRequestHeaders);
+ }
+
+ if (linkPillContent != oldProps->linkPillContent) {
+ result["linkPillContent"] = toDynamic(linkPillContent);
+ }
+
+ if (linkRecognition != oldProps->linkRecognition) {
+ result["linkRecognition"] = toDynamic(linkRecognition);
+ }
+
+ if (linkContextMenuItems != oldProps->linkContextMenuItems) {
+ result["linkContextMenuItems"] = toDynamic(linkContextMenuItems);
+ }
+
+ if (selectionMenuConfig != oldProps->selectionMenuConfig) {
+ result["selectionMenuConfig"] = toDynamic(selectionMenuConfig);
+ }
+
+ if (accessibilityLabels != oldProps->accessibilityLabels) {
+ result["accessibilityLabels"] = toDynamic(accessibilityLabels);
+ }
+
+ if (textBreakStrategy != oldProps->textBreakStrategy) {
+ result["textBreakStrategy"] = textBreakStrategy;
+ }
+
+ if (lineBreakStrategyIOS != oldProps->lineBreakStrategyIOS) {
+ result["lineBreakStrategyIOS"] = lineBreakStrategyIOS;
+ }
+
+ if (writingDirection != oldProps->writingDirection) {
+ result["writingDirection"] = writingDirection;
+ }
+
+ if (numberOfLines != oldProps->numberOfLines) {
+ result["numberOfLines"] = numberOfLines;
+ }
+
+ if (ellipsizeMode != oldProps->ellipsizeMode) {
+ result["ellipsizeMode"] = ellipsizeMode;
+ }
+ return result;
+}
+#endif
+
+} // namespace facebook::react
diff --git a/packages/react-native-enriched-markdown/android/generated/jni/react/renderer/components/EnrichedMarkdownTextSpec/Props.h b/packages/react-native-enriched-markdown/android/generated/jni/react/renderer/components/EnrichedMarkdownTextSpec/Props.h
new file mode 100644
index 000000000..bc76c2b19
--- /dev/null
+++ b/packages/react-native-enriched-markdown/android/generated/jni/react/renderer/components/EnrichedMarkdownTextSpec/Props.h
@@ -0,0 +1,8153 @@
+
+/**
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
+ *
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
+ * once the code is regenerated.
+ *
+ * @generated by codegen project: GeneratePropsH.js
+ */
+#pragma once
+
+#include
+#include
+#include
+#include
+#include
+#include
+
+namespace facebook::react {
+
+struct EnrichedMarkdownMarkdownStyleParagraphStruct {
+ Float fontSize{0.0};
+ std::string fontFamily{};
+ std::string fontWeight{};
+ SharedColor color{};
+ Float marginTop{0.0};
+ Float marginBottom{0.0};
+ Float lineHeight{0.0};
+ std::string textAlign{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownMarkdownStyleParagraphStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["fontSize"] = fontSize;
+ result["fontFamily"] = fontFamily;
+ result["fontWeight"] = fontWeight;
+ result["color"] = ::facebook::react::toDynamic(color);
+ result["marginTop"] = marginTop;
+ result["marginBottom"] = marginBottom;
+ result["lineHeight"] = lineHeight;
+ result["textAlign"] = textAlign;
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleParagraphStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_fontSize = map.find("fontSize");
+ if (tmp_fontSize != map.end()) {
+ fromRawValue(context, tmp_fontSize->second, result.fontSize);
+ }
+ auto tmp_fontFamily = map.find("fontFamily");
+ if (tmp_fontFamily != map.end()) {
+ fromRawValue(context, tmp_fontFamily->second, result.fontFamily);
+ }
+ auto tmp_fontWeight = map.find("fontWeight");
+ if (tmp_fontWeight != map.end()) {
+ fromRawValue(context, tmp_fontWeight->second, result.fontWeight);
+ }
+ auto tmp_color = map.find("color");
+ if (tmp_color != map.end()) {
+ fromRawValue(context, tmp_color->second, result.color);
+ }
+ auto tmp_marginTop = map.find("marginTop");
+ if (tmp_marginTop != map.end()) {
+ fromRawValue(context, tmp_marginTop->second, result.marginTop);
+ }
+ auto tmp_marginBottom = map.find("marginBottom");
+ if (tmp_marginBottom != map.end()) {
+ fromRawValue(context, tmp_marginBottom->second, result.marginBottom);
+ }
+ auto tmp_lineHeight = map.find("lineHeight");
+ if (tmp_lineHeight != map.end()) {
+ fromRawValue(context, tmp_lineHeight->second, result.lineHeight);
+ }
+ auto tmp_textAlign = map.find("textAlign");
+ if (tmp_textAlign != map.end()) {
+ fromRawValue(context, tmp_textAlign->second, result.textAlign);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownMarkdownStyleParagraphStruct &value) {
+ return "[Object EnrichedMarkdownMarkdownStyleParagraphStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleParagraphStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownMarkdownStyleH1Struct {
+ Float fontSize{0.0};
+ std::string fontFamily{};
+ std::string fontWeight{};
+ SharedColor color{};
+ Float marginTop{0.0};
+ Float marginBottom{0.0};
+ Float lineHeight{0.0};
+ std::string textAlign{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownMarkdownStyleH1Struct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["fontSize"] = fontSize;
+ result["fontFamily"] = fontFamily;
+ result["fontWeight"] = fontWeight;
+ result["color"] = ::facebook::react::toDynamic(color);
+ result["marginTop"] = marginTop;
+ result["marginBottom"] = marginBottom;
+ result["lineHeight"] = lineHeight;
+ result["textAlign"] = textAlign;
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleH1Struct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_fontSize = map.find("fontSize");
+ if (tmp_fontSize != map.end()) {
+ fromRawValue(context, tmp_fontSize->second, result.fontSize);
+ }
+ auto tmp_fontFamily = map.find("fontFamily");
+ if (tmp_fontFamily != map.end()) {
+ fromRawValue(context, tmp_fontFamily->second, result.fontFamily);
+ }
+ auto tmp_fontWeight = map.find("fontWeight");
+ if (tmp_fontWeight != map.end()) {
+ fromRawValue(context, tmp_fontWeight->second, result.fontWeight);
+ }
+ auto tmp_color = map.find("color");
+ if (tmp_color != map.end()) {
+ fromRawValue(context, tmp_color->second, result.color);
+ }
+ auto tmp_marginTop = map.find("marginTop");
+ if (tmp_marginTop != map.end()) {
+ fromRawValue(context, tmp_marginTop->second, result.marginTop);
+ }
+ auto tmp_marginBottom = map.find("marginBottom");
+ if (tmp_marginBottom != map.end()) {
+ fromRawValue(context, tmp_marginBottom->second, result.marginBottom);
+ }
+ auto tmp_lineHeight = map.find("lineHeight");
+ if (tmp_lineHeight != map.end()) {
+ fromRawValue(context, tmp_lineHeight->second, result.lineHeight);
+ }
+ auto tmp_textAlign = map.find("textAlign");
+ if (tmp_textAlign != map.end()) {
+ fromRawValue(context, tmp_textAlign->second, result.textAlign);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownMarkdownStyleH1Struct &value) {
+ return "[Object EnrichedMarkdownMarkdownStyleH1Struct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleH1Struct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownMarkdownStyleH2Struct {
+ Float fontSize{0.0};
+ std::string fontFamily{};
+ std::string fontWeight{};
+ SharedColor color{};
+ Float marginTop{0.0};
+ Float marginBottom{0.0};
+ Float lineHeight{0.0};
+ std::string textAlign{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownMarkdownStyleH2Struct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["fontSize"] = fontSize;
+ result["fontFamily"] = fontFamily;
+ result["fontWeight"] = fontWeight;
+ result["color"] = ::facebook::react::toDynamic(color);
+ result["marginTop"] = marginTop;
+ result["marginBottom"] = marginBottom;
+ result["lineHeight"] = lineHeight;
+ result["textAlign"] = textAlign;
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleH2Struct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_fontSize = map.find("fontSize");
+ if (tmp_fontSize != map.end()) {
+ fromRawValue(context, tmp_fontSize->second, result.fontSize);
+ }
+ auto tmp_fontFamily = map.find("fontFamily");
+ if (tmp_fontFamily != map.end()) {
+ fromRawValue(context, tmp_fontFamily->second, result.fontFamily);
+ }
+ auto tmp_fontWeight = map.find("fontWeight");
+ if (tmp_fontWeight != map.end()) {
+ fromRawValue(context, tmp_fontWeight->second, result.fontWeight);
+ }
+ auto tmp_color = map.find("color");
+ if (tmp_color != map.end()) {
+ fromRawValue(context, tmp_color->second, result.color);
+ }
+ auto tmp_marginTop = map.find("marginTop");
+ if (tmp_marginTop != map.end()) {
+ fromRawValue(context, tmp_marginTop->second, result.marginTop);
+ }
+ auto tmp_marginBottom = map.find("marginBottom");
+ if (tmp_marginBottom != map.end()) {
+ fromRawValue(context, tmp_marginBottom->second, result.marginBottom);
+ }
+ auto tmp_lineHeight = map.find("lineHeight");
+ if (tmp_lineHeight != map.end()) {
+ fromRawValue(context, tmp_lineHeight->second, result.lineHeight);
+ }
+ auto tmp_textAlign = map.find("textAlign");
+ if (tmp_textAlign != map.end()) {
+ fromRawValue(context, tmp_textAlign->second, result.textAlign);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownMarkdownStyleH2Struct &value) {
+ return "[Object EnrichedMarkdownMarkdownStyleH2Struct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleH2Struct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownMarkdownStyleH3Struct {
+ Float fontSize{0.0};
+ std::string fontFamily{};
+ std::string fontWeight{};
+ SharedColor color{};
+ Float marginTop{0.0};
+ Float marginBottom{0.0};
+ Float lineHeight{0.0};
+ std::string textAlign{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownMarkdownStyleH3Struct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["fontSize"] = fontSize;
+ result["fontFamily"] = fontFamily;
+ result["fontWeight"] = fontWeight;
+ result["color"] = ::facebook::react::toDynamic(color);
+ result["marginTop"] = marginTop;
+ result["marginBottom"] = marginBottom;
+ result["lineHeight"] = lineHeight;
+ result["textAlign"] = textAlign;
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleH3Struct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_fontSize = map.find("fontSize");
+ if (tmp_fontSize != map.end()) {
+ fromRawValue(context, tmp_fontSize->second, result.fontSize);
+ }
+ auto tmp_fontFamily = map.find("fontFamily");
+ if (tmp_fontFamily != map.end()) {
+ fromRawValue(context, tmp_fontFamily->second, result.fontFamily);
+ }
+ auto tmp_fontWeight = map.find("fontWeight");
+ if (tmp_fontWeight != map.end()) {
+ fromRawValue(context, tmp_fontWeight->second, result.fontWeight);
+ }
+ auto tmp_color = map.find("color");
+ if (tmp_color != map.end()) {
+ fromRawValue(context, tmp_color->second, result.color);
+ }
+ auto tmp_marginTop = map.find("marginTop");
+ if (tmp_marginTop != map.end()) {
+ fromRawValue(context, tmp_marginTop->second, result.marginTop);
+ }
+ auto tmp_marginBottom = map.find("marginBottom");
+ if (tmp_marginBottom != map.end()) {
+ fromRawValue(context, tmp_marginBottom->second, result.marginBottom);
+ }
+ auto tmp_lineHeight = map.find("lineHeight");
+ if (tmp_lineHeight != map.end()) {
+ fromRawValue(context, tmp_lineHeight->second, result.lineHeight);
+ }
+ auto tmp_textAlign = map.find("textAlign");
+ if (tmp_textAlign != map.end()) {
+ fromRawValue(context, tmp_textAlign->second, result.textAlign);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownMarkdownStyleH3Struct &value) {
+ return "[Object EnrichedMarkdownMarkdownStyleH3Struct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleH3Struct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownMarkdownStyleH4Struct {
+ Float fontSize{0.0};
+ std::string fontFamily{};
+ std::string fontWeight{};
+ SharedColor color{};
+ Float marginTop{0.0};
+ Float marginBottom{0.0};
+ Float lineHeight{0.0};
+ std::string textAlign{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownMarkdownStyleH4Struct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["fontSize"] = fontSize;
+ result["fontFamily"] = fontFamily;
+ result["fontWeight"] = fontWeight;
+ result["color"] = ::facebook::react::toDynamic(color);
+ result["marginTop"] = marginTop;
+ result["marginBottom"] = marginBottom;
+ result["lineHeight"] = lineHeight;
+ result["textAlign"] = textAlign;
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleH4Struct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_fontSize = map.find("fontSize");
+ if (tmp_fontSize != map.end()) {
+ fromRawValue(context, tmp_fontSize->second, result.fontSize);
+ }
+ auto tmp_fontFamily = map.find("fontFamily");
+ if (tmp_fontFamily != map.end()) {
+ fromRawValue(context, tmp_fontFamily->second, result.fontFamily);
+ }
+ auto tmp_fontWeight = map.find("fontWeight");
+ if (tmp_fontWeight != map.end()) {
+ fromRawValue(context, tmp_fontWeight->second, result.fontWeight);
+ }
+ auto tmp_color = map.find("color");
+ if (tmp_color != map.end()) {
+ fromRawValue(context, tmp_color->second, result.color);
+ }
+ auto tmp_marginTop = map.find("marginTop");
+ if (tmp_marginTop != map.end()) {
+ fromRawValue(context, tmp_marginTop->second, result.marginTop);
+ }
+ auto tmp_marginBottom = map.find("marginBottom");
+ if (tmp_marginBottom != map.end()) {
+ fromRawValue(context, tmp_marginBottom->second, result.marginBottom);
+ }
+ auto tmp_lineHeight = map.find("lineHeight");
+ if (tmp_lineHeight != map.end()) {
+ fromRawValue(context, tmp_lineHeight->second, result.lineHeight);
+ }
+ auto tmp_textAlign = map.find("textAlign");
+ if (tmp_textAlign != map.end()) {
+ fromRawValue(context, tmp_textAlign->second, result.textAlign);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownMarkdownStyleH4Struct &value) {
+ return "[Object EnrichedMarkdownMarkdownStyleH4Struct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleH4Struct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownMarkdownStyleH5Struct {
+ Float fontSize{0.0};
+ std::string fontFamily{};
+ std::string fontWeight{};
+ SharedColor color{};
+ Float marginTop{0.0};
+ Float marginBottom{0.0};
+ Float lineHeight{0.0};
+ std::string textAlign{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownMarkdownStyleH5Struct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["fontSize"] = fontSize;
+ result["fontFamily"] = fontFamily;
+ result["fontWeight"] = fontWeight;
+ result["color"] = ::facebook::react::toDynamic(color);
+ result["marginTop"] = marginTop;
+ result["marginBottom"] = marginBottom;
+ result["lineHeight"] = lineHeight;
+ result["textAlign"] = textAlign;
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleH5Struct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_fontSize = map.find("fontSize");
+ if (tmp_fontSize != map.end()) {
+ fromRawValue(context, tmp_fontSize->second, result.fontSize);
+ }
+ auto tmp_fontFamily = map.find("fontFamily");
+ if (tmp_fontFamily != map.end()) {
+ fromRawValue(context, tmp_fontFamily->second, result.fontFamily);
+ }
+ auto tmp_fontWeight = map.find("fontWeight");
+ if (tmp_fontWeight != map.end()) {
+ fromRawValue(context, tmp_fontWeight->second, result.fontWeight);
+ }
+ auto tmp_color = map.find("color");
+ if (tmp_color != map.end()) {
+ fromRawValue(context, tmp_color->second, result.color);
+ }
+ auto tmp_marginTop = map.find("marginTop");
+ if (tmp_marginTop != map.end()) {
+ fromRawValue(context, tmp_marginTop->second, result.marginTop);
+ }
+ auto tmp_marginBottom = map.find("marginBottom");
+ if (tmp_marginBottom != map.end()) {
+ fromRawValue(context, tmp_marginBottom->second, result.marginBottom);
+ }
+ auto tmp_lineHeight = map.find("lineHeight");
+ if (tmp_lineHeight != map.end()) {
+ fromRawValue(context, tmp_lineHeight->second, result.lineHeight);
+ }
+ auto tmp_textAlign = map.find("textAlign");
+ if (tmp_textAlign != map.end()) {
+ fromRawValue(context, tmp_textAlign->second, result.textAlign);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownMarkdownStyleH5Struct &value) {
+ return "[Object EnrichedMarkdownMarkdownStyleH5Struct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleH5Struct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownMarkdownStyleH6Struct {
+ Float fontSize{0.0};
+ std::string fontFamily{};
+ std::string fontWeight{};
+ SharedColor color{};
+ Float marginTop{0.0};
+ Float marginBottom{0.0};
+ Float lineHeight{0.0};
+ std::string textAlign{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownMarkdownStyleH6Struct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["fontSize"] = fontSize;
+ result["fontFamily"] = fontFamily;
+ result["fontWeight"] = fontWeight;
+ result["color"] = ::facebook::react::toDynamic(color);
+ result["marginTop"] = marginTop;
+ result["marginBottom"] = marginBottom;
+ result["lineHeight"] = lineHeight;
+ result["textAlign"] = textAlign;
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleH6Struct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_fontSize = map.find("fontSize");
+ if (tmp_fontSize != map.end()) {
+ fromRawValue(context, tmp_fontSize->second, result.fontSize);
+ }
+ auto tmp_fontFamily = map.find("fontFamily");
+ if (tmp_fontFamily != map.end()) {
+ fromRawValue(context, tmp_fontFamily->second, result.fontFamily);
+ }
+ auto tmp_fontWeight = map.find("fontWeight");
+ if (tmp_fontWeight != map.end()) {
+ fromRawValue(context, tmp_fontWeight->second, result.fontWeight);
+ }
+ auto tmp_color = map.find("color");
+ if (tmp_color != map.end()) {
+ fromRawValue(context, tmp_color->second, result.color);
+ }
+ auto tmp_marginTop = map.find("marginTop");
+ if (tmp_marginTop != map.end()) {
+ fromRawValue(context, tmp_marginTop->second, result.marginTop);
+ }
+ auto tmp_marginBottom = map.find("marginBottom");
+ if (tmp_marginBottom != map.end()) {
+ fromRawValue(context, tmp_marginBottom->second, result.marginBottom);
+ }
+ auto tmp_lineHeight = map.find("lineHeight");
+ if (tmp_lineHeight != map.end()) {
+ fromRawValue(context, tmp_lineHeight->second, result.lineHeight);
+ }
+ auto tmp_textAlign = map.find("textAlign");
+ if (tmp_textAlign != map.end()) {
+ fromRawValue(context, tmp_textAlign->second, result.textAlign);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownMarkdownStyleH6Struct &value) {
+ return "[Object EnrichedMarkdownMarkdownStyleH6Struct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleH6Struct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsNoteStruct {
+ SharedColor color{};
+ SharedColor backgroundColor{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsNoteStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["color"] = ::facebook::react::toDynamic(color);
+ result["backgroundColor"] = ::facebook::react::toDynamic(backgroundColor);
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsNoteStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_color = map.find("color");
+ if (tmp_color != map.end()) {
+ fromRawValue(context, tmp_color->second, result.color);
+ }
+ auto tmp_backgroundColor = map.find("backgroundColor");
+ if (tmp_backgroundColor != map.end()) {
+ fromRawValue(context, tmp_backgroundColor->second, result.backgroundColor);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsNoteStruct &value) {
+ return "[Object EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsNoteStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsNoteStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsTipStruct {
+ SharedColor color{};
+ SharedColor backgroundColor{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsTipStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["color"] = ::facebook::react::toDynamic(color);
+ result["backgroundColor"] = ::facebook::react::toDynamic(backgroundColor);
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsTipStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_color = map.find("color");
+ if (tmp_color != map.end()) {
+ fromRawValue(context, tmp_color->second, result.color);
+ }
+ auto tmp_backgroundColor = map.find("backgroundColor");
+ if (tmp_backgroundColor != map.end()) {
+ fromRawValue(context, tmp_backgroundColor->second, result.backgroundColor);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsTipStruct &value) {
+ return "[Object EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsTipStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsTipStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsImportantStruct {
+ SharedColor color{};
+ SharedColor backgroundColor{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsImportantStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["color"] = ::facebook::react::toDynamic(color);
+ result["backgroundColor"] = ::facebook::react::toDynamic(backgroundColor);
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsImportantStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_color = map.find("color");
+ if (tmp_color != map.end()) {
+ fromRawValue(context, tmp_color->second, result.color);
+ }
+ auto tmp_backgroundColor = map.find("backgroundColor");
+ if (tmp_backgroundColor != map.end()) {
+ fromRawValue(context, tmp_backgroundColor->second, result.backgroundColor);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsImportantStruct &value) {
+ return "[Object EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsImportantStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsImportantStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsWarningStruct {
+ SharedColor color{};
+ SharedColor backgroundColor{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsWarningStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["color"] = ::facebook::react::toDynamic(color);
+ result["backgroundColor"] = ::facebook::react::toDynamic(backgroundColor);
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsWarningStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_color = map.find("color");
+ if (tmp_color != map.end()) {
+ fromRawValue(context, tmp_color->second, result.color);
+ }
+ auto tmp_backgroundColor = map.find("backgroundColor");
+ if (tmp_backgroundColor != map.end()) {
+ fromRawValue(context, tmp_backgroundColor->second, result.backgroundColor);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsWarningStruct &value) {
+ return "[Object EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsWarningStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsWarningStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsCautionStruct {
+ SharedColor color{};
+ SharedColor backgroundColor{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsCautionStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["color"] = ::facebook::react::toDynamic(color);
+ result["backgroundColor"] = ::facebook::react::toDynamic(backgroundColor);
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsCautionStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_color = map.find("color");
+ if (tmp_color != map.end()) {
+ fromRawValue(context, tmp_color->second, result.color);
+ }
+ auto tmp_backgroundColor = map.find("backgroundColor");
+ if (tmp_backgroundColor != map.end()) {
+ fromRawValue(context, tmp_backgroundColor->second, result.backgroundColor);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsCautionStruct &value) {
+ return "[Object EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsCautionStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsCautionStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsStruct {
+ EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsNoteStruct note{};
+ EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsTipStruct tip{};
+ EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsImportantStruct important{};
+ EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsWarningStruct warning{};
+ EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsCautionStruct caution{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["note"] = ::facebook::react::toDynamic(note);
+ result["tip"] = ::facebook::react::toDynamic(tip);
+ result["important"] = ::facebook::react::toDynamic(important);
+ result["warning"] = ::facebook::react::toDynamic(warning);
+ result["caution"] = ::facebook::react::toDynamic(caution);
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_note = map.find("note");
+ if (tmp_note != map.end()) {
+ fromRawValue(context, tmp_note->second, result.note);
+ }
+ auto tmp_tip = map.find("tip");
+ if (tmp_tip != map.end()) {
+ fromRawValue(context, tmp_tip->second, result.tip);
+ }
+ auto tmp_important = map.find("important");
+ if (tmp_important != map.end()) {
+ fromRawValue(context, tmp_important->second, result.important);
+ }
+ auto tmp_warning = map.find("warning");
+ if (tmp_warning != map.end()) {
+ fromRawValue(context, tmp_warning->second, result.warning);
+ }
+ auto tmp_caution = map.find("caution");
+ if (tmp_caution != map.end()) {
+ fromRawValue(context, tmp_caution->second, result.caution);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsStruct &value) {
+ return "[Object EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownMarkdownStyleBlockquoteStruct {
+ Float fontSize{0.0};
+ std::string fontFamily{};
+ std::string fontWeight{};
+ SharedColor color{};
+ Float marginTop{0.0};
+ Float marginBottom{0.0};
+ Float lineHeight{0.0};
+ SharedColor borderColor{};
+ Float borderWidth{0.0};
+ Float gapWidth{0.0};
+ SharedColor backgroundColor{};
+ Float borderRadius{0.0};
+ Float padding{0.0};
+ EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsStruct admonitions{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownMarkdownStyleBlockquoteStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["fontSize"] = fontSize;
+ result["fontFamily"] = fontFamily;
+ result["fontWeight"] = fontWeight;
+ result["color"] = ::facebook::react::toDynamic(color);
+ result["marginTop"] = marginTop;
+ result["marginBottom"] = marginBottom;
+ result["lineHeight"] = lineHeight;
+ result["borderColor"] = ::facebook::react::toDynamic(borderColor);
+ result["borderWidth"] = borderWidth;
+ result["gapWidth"] = gapWidth;
+ result["backgroundColor"] = ::facebook::react::toDynamic(backgroundColor);
+ result["borderRadius"] = borderRadius;
+ result["padding"] = padding;
+ result["admonitions"] = ::facebook::react::toDynamic(admonitions);
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleBlockquoteStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_fontSize = map.find("fontSize");
+ if (tmp_fontSize != map.end()) {
+ fromRawValue(context, tmp_fontSize->second, result.fontSize);
+ }
+ auto tmp_fontFamily = map.find("fontFamily");
+ if (tmp_fontFamily != map.end()) {
+ fromRawValue(context, tmp_fontFamily->second, result.fontFamily);
+ }
+ auto tmp_fontWeight = map.find("fontWeight");
+ if (tmp_fontWeight != map.end()) {
+ fromRawValue(context, tmp_fontWeight->second, result.fontWeight);
+ }
+ auto tmp_color = map.find("color");
+ if (tmp_color != map.end()) {
+ fromRawValue(context, tmp_color->second, result.color);
+ }
+ auto tmp_marginTop = map.find("marginTop");
+ if (tmp_marginTop != map.end()) {
+ fromRawValue(context, tmp_marginTop->second, result.marginTop);
+ }
+ auto tmp_marginBottom = map.find("marginBottom");
+ if (tmp_marginBottom != map.end()) {
+ fromRawValue(context, tmp_marginBottom->second, result.marginBottom);
+ }
+ auto tmp_lineHeight = map.find("lineHeight");
+ if (tmp_lineHeight != map.end()) {
+ fromRawValue(context, tmp_lineHeight->second, result.lineHeight);
+ }
+ auto tmp_borderColor = map.find("borderColor");
+ if (tmp_borderColor != map.end()) {
+ fromRawValue(context, tmp_borderColor->second, result.borderColor);
+ }
+ auto tmp_borderWidth = map.find("borderWidth");
+ if (tmp_borderWidth != map.end()) {
+ fromRawValue(context, tmp_borderWidth->second, result.borderWidth);
+ }
+ auto tmp_gapWidth = map.find("gapWidth");
+ if (tmp_gapWidth != map.end()) {
+ fromRawValue(context, tmp_gapWidth->second, result.gapWidth);
+ }
+ auto tmp_backgroundColor = map.find("backgroundColor");
+ if (tmp_backgroundColor != map.end()) {
+ fromRawValue(context, tmp_backgroundColor->second, result.backgroundColor);
+ }
+ auto tmp_borderRadius = map.find("borderRadius");
+ if (tmp_borderRadius != map.end()) {
+ fromRawValue(context, tmp_borderRadius->second, result.borderRadius);
+ }
+ auto tmp_padding = map.find("padding");
+ if (tmp_padding != map.end()) {
+ fromRawValue(context, tmp_padding->second, result.padding);
+ }
+ auto tmp_admonitions = map.find("admonitions");
+ if (tmp_admonitions != map.end()) {
+ fromRawValue(context, tmp_admonitions->second, result.admonitions);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownMarkdownStyleBlockquoteStruct &value) {
+ return "[Object EnrichedMarkdownMarkdownStyleBlockquoteStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleBlockquoteStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownMarkdownStyleListStruct {
+ Float fontSize{0.0};
+ std::string fontFamily{};
+ std::string fontWeight{};
+ SharedColor color{};
+ Float marginTop{0.0};
+ Float marginBottom{0.0};
+ Float lineHeight{0.0};
+ SharedColor bulletColor{};
+ Float bulletSize{0.0};
+ Float markerMinWidth{0.0};
+ SharedColor markerColor{};
+ std::string markerFontWeight{};
+ Float gapWidth{0.0};
+ Float marginLeft{0.0};
+ Float itemSpacing{0.0};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownMarkdownStyleListStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["fontSize"] = fontSize;
+ result["fontFamily"] = fontFamily;
+ result["fontWeight"] = fontWeight;
+ result["color"] = ::facebook::react::toDynamic(color);
+ result["marginTop"] = marginTop;
+ result["marginBottom"] = marginBottom;
+ result["lineHeight"] = lineHeight;
+ result["bulletColor"] = ::facebook::react::toDynamic(bulletColor);
+ result["bulletSize"] = bulletSize;
+ result["markerMinWidth"] = markerMinWidth;
+ result["markerColor"] = ::facebook::react::toDynamic(markerColor);
+ result["markerFontWeight"] = markerFontWeight;
+ result["gapWidth"] = gapWidth;
+ result["marginLeft"] = marginLeft;
+ result["itemSpacing"] = itemSpacing;
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleListStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_fontSize = map.find("fontSize");
+ if (tmp_fontSize != map.end()) {
+ fromRawValue(context, tmp_fontSize->second, result.fontSize);
+ }
+ auto tmp_fontFamily = map.find("fontFamily");
+ if (tmp_fontFamily != map.end()) {
+ fromRawValue(context, tmp_fontFamily->second, result.fontFamily);
+ }
+ auto tmp_fontWeight = map.find("fontWeight");
+ if (tmp_fontWeight != map.end()) {
+ fromRawValue(context, tmp_fontWeight->second, result.fontWeight);
+ }
+ auto tmp_color = map.find("color");
+ if (tmp_color != map.end()) {
+ fromRawValue(context, tmp_color->second, result.color);
+ }
+ auto tmp_marginTop = map.find("marginTop");
+ if (tmp_marginTop != map.end()) {
+ fromRawValue(context, tmp_marginTop->second, result.marginTop);
+ }
+ auto tmp_marginBottom = map.find("marginBottom");
+ if (tmp_marginBottom != map.end()) {
+ fromRawValue(context, tmp_marginBottom->second, result.marginBottom);
+ }
+ auto tmp_lineHeight = map.find("lineHeight");
+ if (tmp_lineHeight != map.end()) {
+ fromRawValue(context, tmp_lineHeight->second, result.lineHeight);
+ }
+ auto tmp_bulletColor = map.find("bulletColor");
+ if (tmp_bulletColor != map.end()) {
+ fromRawValue(context, tmp_bulletColor->second, result.bulletColor);
+ }
+ auto tmp_bulletSize = map.find("bulletSize");
+ if (tmp_bulletSize != map.end()) {
+ fromRawValue(context, tmp_bulletSize->second, result.bulletSize);
+ }
+ auto tmp_markerMinWidth = map.find("markerMinWidth");
+ if (tmp_markerMinWidth != map.end()) {
+ fromRawValue(context, tmp_markerMinWidth->second, result.markerMinWidth);
+ }
+ auto tmp_markerColor = map.find("markerColor");
+ if (tmp_markerColor != map.end()) {
+ fromRawValue(context, tmp_markerColor->second, result.markerColor);
+ }
+ auto tmp_markerFontWeight = map.find("markerFontWeight");
+ if (tmp_markerFontWeight != map.end()) {
+ fromRawValue(context, tmp_markerFontWeight->second, result.markerFontWeight);
+ }
+ auto tmp_gapWidth = map.find("gapWidth");
+ if (tmp_gapWidth != map.end()) {
+ fromRawValue(context, tmp_gapWidth->second, result.gapWidth);
+ }
+ auto tmp_marginLeft = map.find("marginLeft");
+ if (tmp_marginLeft != map.end()) {
+ fromRawValue(context, tmp_marginLeft->second, result.marginLeft);
+ }
+ auto tmp_itemSpacing = map.find("itemSpacing");
+ if (tmp_itemSpacing != map.end()) {
+ fromRawValue(context, tmp_itemSpacing->second, result.itemSpacing);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownMarkdownStyleListStruct &value) {
+ return "[Object EnrichedMarkdownMarkdownStyleListStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleListStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownMarkdownStyleCodeBlockSyntaxColorsStruct {
+ SharedColor keyword{};
+ SharedColor operatorColor{};
+ SharedColor punctuation{};
+ SharedColor string{};
+ SharedColor number{};
+ SharedColor constant{};
+ SharedColor comment{};
+ SharedColor function{};
+ SharedColor type{};
+ SharedColor variable{};
+ SharedColor property{};
+ SharedColor tag{};
+ SharedColor attribute{};
+ SharedColor embedded{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownMarkdownStyleCodeBlockSyntaxColorsStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["keyword"] = ::facebook::react::toDynamic(keyword);
+ result["operatorColor"] = ::facebook::react::toDynamic(operatorColor);
+ result["punctuation"] = ::facebook::react::toDynamic(punctuation);
+ result["string"] = ::facebook::react::toDynamic(string);
+ result["number"] = ::facebook::react::toDynamic(number);
+ result["constant"] = ::facebook::react::toDynamic(constant);
+ result["comment"] = ::facebook::react::toDynamic(comment);
+ result["function"] = ::facebook::react::toDynamic(function);
+ result["type"] = ::facebook::react::toDynamic(type);
+ result["variable"] = ::facebook::react::toDynamic(variable);
+ result["property"] = ::facebook::react::toDynamic(property);
+ result["tag"] = ::facebook::react::toDynamic(tag);
+ result["attribute"] = ::facebook::react::toDynamic(attribute);
+ result["embedded"] = ::facebook::react::toDynamic(embedded);
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleCodeBlockSyntaxColorsStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_keyword = map.find("keyword");
+ if (tmp_keyword != map.end()) {
+ fromRawValue(context, tmp_keyword->second, result.keyword);
+ }
+ auto tmp_operatorColor = map.find("operatorColor");
+ if (tmp_operatorColor != map.end()) {
+ fromRawValue(context, tmp_operatorColor->second, result.operatorColor);
+ }
+ auto tmp_punctuation = map.find("punctuation");
+ if (tmp_punctuation != map.end()) {
+ fromRawValue(context, tmp_punctuation->second, result.punctuation);
+ }
+ auto tmp_string = map.find("string");
+ if (tmp_string != map.end()) {
+ fromRawValue(context, tmp_string->second, result.string);
+ }
+ auto tmp_number = map.find("number");
+ if (tmp_number != map.end()) {
+ fromRawValue(context, tmp_number->second, result.number);
+ }
+ auto tmp_constant = map.find("constant");
+ if (tmp_constant != map.end()) {
+ fromRawValue(context, tmp_constant->second, result.constant);
+ }
+ auto tmp_comment = map.find("comment");
+ if (tmp_comment != map.end()) {
+ fromRawValue(context, tmp_comment->second, result.comment);
+ }
+ auto tmp_function = map.find("function");
+ if (tmp_function != map.end()) {
+ fromRawValue(context, tmp_function->second, result.function);
+ }
+ auto tmp_type = map.find("type");
+ if (tmp_type != map.end()) {
+ fromRawValue(context, tmp_type->second, result.type);
+ }
+ auto tmp_variable = map.find("variable");
+ if (tmp_variable != map.end()) {
+ fromRawValue(context, tmp_variable->second, result.variable);
+ }
+ auto tmp_property = map.find("property");
+ if (tmp_property != map.end()) {
+ fromRawValue(context, tmp_property->second, result.property);
+ }
+ auto tmp_tag = map.find("tag");
+ if (tmp_tag != map.end()) {
+ fromRawValue(context, tmp_tag->second, result.tag);
+ }
+ auto tmp_attribute = map.find("attribute");
+ if (tmp_attribute != map.end()) {
+ fromRawValue(context, tmp_attribute->second, result.attribute);
+ }
+ auto tmp_embedded = map.find("embedded");
+ if (tmp_embedded != map.end()) {
+ fromRawValue(context, tmp_embedded->second, result.embedded);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownMarkdownStyleCodeBlockSyntaxColorsStruct &value) {
+ return "[Object EnrichedMarkdownMarkdownStyleCodeBlockSyntaxColorsStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleCodeBlockSyntaxColorsStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownMarkdownStyleCodeBlockStruct {
+ Float fontSize{0.0};
+ std::string fontFamily{};
+ std::string fontWeight{};
+ SharedColor color{};
+ Float marginTop{0.0};
+ Float marginBottom{0.0};
+ Float lineHeight{0.0};
+ SharedColor backgroundColor{};
+ SharedColor borderColor{};
+ Float borderRadius{0.0};
+ Float borderWidth{0.0};
+ Float padding{0.0};
+ EnrichedMarkdownMarkdownStyleCodeBlockSyntaxColorsStruct syntaxColors{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownMarkdownStyleCodeBlockStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["fontSize"] = fontSize;
+ result["fontFamily"] = fontFamily;
+ result["fontWeight"] = fontWeight;
+ result["color"] = ::facebook::react::toDynamic(color);
+ result["marginTop"] = marginTop;
+ result["marginBottom"] = marginBottom;
+ result["lineHeight"] = lineHeight;
+ result["backgroundColor"] = ::facebook::react::toDynamic(backgroundColor);
+ result["borderColor"] = ::facebook::react::toDynamic(borderColor);
+ result["borderRadius"] = borderRadius;
+ result["borderWidth"] = borderWidth;
+ result["padding"] = padding;
+ result["syntaxColors"] = ::facebook::react::toDynamic(syntaxColors);
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleCodeBlockStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_fontSize = map.find("fontSize");
+ if (tmp_fontSize != map.end()) {
+ fromRawValue(context, tmp_fontSize->second, result.fontSize);
+ }
+ auto tmp_fontFamily = map.find("fontFamily");
+ if (tmp_fontFamily != map.end()) {
+ fromRawValue(context, tmp_fontFamily->second, result.fontFamily);
+ }
+ auto tmp_fontWeight = map.find("fontWeight");
+ if (tmp_fontWeight != map.end()) {
+ fromRawValue(context, tmp_fontWeight->second, result.fontWeight);
+ }
+ auto tmp_color = map.find("color");
+ if (tmp_color != map.end()) {
+ fromRawValue(context, tmp_color->second, result.color);
+ }
+ auto tmp_marginTop = map.find("marginTop");
+ if (tmp_marginTop != map.end()) {
+ fromRawValue(context, tmp_marginTop->second, result.marginTop);
+ }
+ auto tmp_marginBottom = map.find("marginBottom");
+ if (tmp_marginBottom != map.end()) {
+ fromRawValue(context, tmp_marginBottom->second, result.marginBottom);
+ }
+ auto tmp_lineHeight = map.find("lineHeight");
+ if (tmp_lineHeight != map.end()) {
+ fromRawValue(context, tmp_lineHeight->second, result.lineHeight);
+ }
+ auto tmp_backgroundColor = map.find("backgroundColor");
+ if (tmp_backgroundColor != map.end()) {
+ fromRawValue(context, tmp_backgroundColor->second, result.backgroundColor);
+ }
+ auto tmp_borderColor = map.find("borderColor");
+ if (tmp_borderColor != map.end()) {
+ fromRawValue(context, tmp_borderColor->second, result.borderColor);
+ }
+ auto tmp_borderRadius = map.find("borderRadius");
+ if (tmp_borderRadius != map.end()) {
+ fromRawValue(context, tmp_borderRadius->second, result.borderRadius);
+ }
+ auto tmp_borderWidth = map.find("borderWidth");
+ if (tmp_borderWidth != map.end()) {
+ fromRawValue(context, tmp_borderWidth->second, result.borderWidth);
+ }
+ auto tmp_padding = map.find("padding");
+ if (tmp_padding != map.end()) {
+ fromRawValue(context, tmp_padding->second, result.padding);
+ }
+ auto tmp_syntaxColors = map.find("syntaxColors");
+ if (tmp_syntaxColors != map.end()) {
+ fromRawValue(context, tmp_syntaxColors->second, result.syntaxColors);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownMarkdownStyleCodeBlockStruct &value) {
+ return "[Object EnrichedMarkdownMarkdownStyleCodeBlockStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleCodeBlockStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownMarkdownStyleLinkStruct {
+ std::string fontFamily{};
+ SharedColor color{};
+ bool underline{false};
+ SharedColor backgroundColor{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownMarkdownStyleLinkStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["fontFamily"] = fontFamily;
+ result["color"] = ::facebook::react::toDynamic(color);
+ result["underline"] = underline;
+ result["backgroundColor"] = ::facebook::react::toDynamic(backgroundColor);
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleLinkStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_fontFamily = map.find("fontFamily");
+ if (tmp_fontFamily != map.end()) {
+ fromRawValue(context, tmp_fontFamily->second, result.fontFamily);
+ }
+ auto tmp_color = map.find("color");
+ if (tmp_color != map.end()) {
+ fromRawValue(context, tmp_color->second, result.color);
+ }
+ auto tmp_underline = map.find("underline");
+ if (tmp_underline != map.end()) {
+ fromRawValue(context, tmp_underline->second, result.underline);
+ }
+ auto tmp_backgroundColor = map.find("backgroundColor");
+ if (tmp_backgroundColor != map.end()) {
+ fromRawValue(context, tmp_backgroundColor->second, result.backgroundColor);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownMarkdownStyleLinkStruct &value) {
+ return "[Object EnrichedMarkdownMarkdownStyleLinkStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleLinkStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownMarkdownStyleLinkVariantsPillStruct {
+ bool enabled{false};
+ std::string label{};
+ std::string iconUri{};
+ SharedColor iconTintColor{};
+ Float borderRadius{0.0};
+ Float paddingHorizontal{0.0};
+ Float paddingVertical{0.0};
+ Float lineHeight{0.0};
+ Float borderWidth{0.0};
+ SharedColor borderColor{};
+ Float maxWidth{0.0};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownMarkdownStyleLinkVariantsPillStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["enabled"] = enabled;
+ result["label"] = label;
+ result["iconUri"] = iconUri;
+ result["iconTintColor"] = ::facebook::react::toDynamic(iconTintColor);
+ result["borderRadius"] = borderRadius;
+ result["paddingHorizontal"] = paddingHorizontal;
+ result["paddingVertical"] = paddingVertical;
+ result["lineHeight"] = lineHeight;
+ result["borderWidth"] = borderWidth;
+ result["borderColor"] = ::facebook::react::toDynamic(borderColor);
+ result["maxWidth"] = maxWidth;
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleLinkVariantsPillStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_enabled = map.find("enabled");
+ if (tmp_enabled != map.end()) {
+ fromRawValue(context, tmp_enabled->second, result.enabled);
+ }
+ auto tmp_label = map.find("label");
+ if (tmp_label != map.end()) {
+ fromRawValue(context, tmp_label->second, result.label);
+ }
+ auto tmp_iconUri = map.find("iconUri");
+ if (tmp_iconUri != map.end()) {
+ fromRawValue(context, tmp_iconUri->second, result.iconUri);
+ }
+ auto tmp_iconTintColor = map.find("iconTintColor");
+ if (tmp_iconTintColor != map.end()) {
+ fromRawValue(context, tmp_iconTintColor->second, result.iconTintColor);
+ }
+ auto tmp_borderRadius = map.find("borderRadius");
+ if (tmp_borderRadius != map.end()) {
+ fromRawValue(context, tmp_borderRadius->second, result.borderRadius);
+ }
+ auto tmp_paddingHorizontal = map.find("paddingHorizontal");
+ if (tmp_paddingHorizontal != map.end()) {
+ fromRawValue(context, tmp_paddingHorizontal->second, result.paddingHorizontal);
+ }
+ auto tmp_paddingVertical = map.find("paddingVertical");
+ if (tmp_paddingVertical != map.end()) {
+ fromRawValue(context, tmp_paddingVertical->second, result.paddingVertical);
+ }
+ auto tmp_lineHeight = map.find("lineHeight");
+ if (tmp_lineHeight != map.end()) {
+ fromRawValue(context, tmp_lineHeight->second, result.lineHeight);
+ }
+ auto tmp_borderWidth = map.find("borderWidth");
+ if (tmp_borderWidth != map.end()) {
+ fromRawValue(context, tmp_borderWidth->second, result.borderWidth);
+ }
+ auto tmp_borderColor = map.find("borderColor");
+ if (tmp_borderColor != map.end()) {
+ fromRawValue(context, tmp_borderColor->second, result.borderColor);
+ }
+ auto tmp_maxWidth = map.find("maxWidth");
+ if (tmp_maxWidth != map.end()) {
+ fromRawValue(context, tmp_maxWidth->second, result.maxWidth);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownMarkdownStyleLinkVariantsPillStruct &value) {
+ return "[Object EnrichedMarkdownMarkdownStyleLinkVariantsPillStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleLinkVariantsPillStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownMarkdownStyleLinkVariantsStruct {
+ std::string pattern{};
+ SharedColor color{};
+ bool underline{false};
+ SharedColor backgroundColor{};
+ std::string fontFamily{};
+ EnrichedMarkdownMarkdownStyleLinkVariantsPillStruct pill{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownMarkdownStyleLinkVariantsStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["pattern"] = pattern;
+ result["color"] = ::facebook::react::toDynamic(color);
+ result["underline"] = underline;
+ result["backgroundColor"] = ::facebook::react::toDynamic(backgroundColor);
+ result["fontFamily"] = fontFamily;
+ result["pill"] = ::facebook::react::toDynamic(pill);
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleLinkVariantsStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_pattern = map.find("pattern");
+ if (tmp_pattern != map.end()) {
+ fromRawValue(context, tmp_pattern->second, result.pattern);
+ }
+ auto tmp_color = map.find("color");
+ if (tmp_color != map.end()) {
+ fromRawValue(context, tmp_color->second, result.color);
+ }
+ auto tmp_underline = map.find("underline");
+ if (tmp_underline != map.end()) {
+ fromRawValue(context, tmp_underline->second, result.underline);
+ }
+ auto tmp_backgroundColor = map.find("backgroundColor");
+ if (tmp_backgroundColor != map.end()) {
+ fromRawValue(context, tmp_backgroundColor->second, result.backgroundColor);
+ }
+ auto tmp_fontFamily = map.find("fontFamily");
+ if (tmp_fontFamily != map.end()) {
+ fromRawValue(context, tmp_fontFamily->second, result.fontFamily);
+ }
+ auto tmp_pill = map.find("pill");
+ if (tmp_pill != map.end()) {
+ fromRawValue(context, tmp_pill->second, result.pill);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownMarkdownStyleLinkVariantsStruct &value) {
+ return "[Object EnrichedMarkdownMarkdownStyleLinkVariantsStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleLinkVariantsStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, std::vector &result) {
+ auto items = (std::vector)value;
+ for (const auto &item : items) {
+ EnrichedMarkdownMarkdownStyleLinkVariantsStruct newItem;
+ fromRawValue(context, item, newItem);
+ result.emplace_back(newItem);
+ }
+}
+
+
+struct EnrichedMarkdownMarkdownStyleStrongStruct {
+ std::string fontFamily{};
+ std::string fontWeight{};
+ SharedColor color{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownMarkdownStyleStrongStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["fontFamily"] = fontFamily;
+ result["fontWeight"] = fontWeight;
+ result["color"] = ::facebook::react::toDynamic(color);
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleStrongStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_fontFamily = map.find("fontFamily");
+ if (tmp_fontFamily != map.end()) {
+ fromRawValue(context, tmp_fontFamily->second, result.fontFamily);
+ }
+ auto tmp_fontWeight = map.find("fontWeight");
+ if (tmp_fontWeight != map.end()) {
+ fromRawValue(context, tmp_fontWeight->second, result.fontWeight);
+ }
+ auto tmp_color = map.find("color");
+ if (tmp_color != map.end()) {
+ fromRawValue(context, tmp_color->second, result.color);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownMarkdownStyleStrongStruct &value) {
+ return "[Object EnrichedMarkdownMarkdownStyleStrongStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleStrongStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownMarkdownStyleEmStruct {
+ std::string fontFamily{};
+ std::string fontStyle{};
+ SharedColor color{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownMarkdownStyleEmStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["fontFamily"] = fontFamily;
+ result["fontStyle"] = fontStyle;
+ result["color"] = ::facebook::react::toDynamic(color);
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleEmStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_fontFamily = map.find("fontFamily");
+ if (tmp_fontFamily != map.end()) {
+ fromRawValue(context, tmp_fontFamily->second, result.fontFamily);
+ }
+ auto tmp_fontStyle = map.find("fontStyle");
+ if (tmp_fontStyle != map.end()) {
+ fromRawValue(context, tmp_fontStyle->second, result.fontStyle);
+ }
+ auto tmp_color = map.find("color");
+ if (tmp_color != map.end()) {
+ fromRawValue(context, tmp_color->second, result.color);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownMarkdownStyleEmStruct &value) {
+ return "[Object EnrichedMarkdownMarkdownStyleEmStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleEmStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownMarkdownStyleStrikethroughStruct {
+ SharedColor color{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownMarkdownStyleStrikethroughStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["color"] = ::facebook::react::toDynamic(color);
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleStrikethroughStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_color = map.find("color");
+ if (tmp_color != map.end()) {
+ fromRawValue(context, tmp_color->second, result.color);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownMarkdownStyleStrikethroughStruct &value) {
+ return "[Object EnrichedMarkdownMarkdownStyleStrikethroughStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleStrikethroughStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownMarkdownStyleUnderlineStruct {
+ SharedColor color{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownMarkdownStyleUnderlineStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["color"] = ::facebook::react::toDynamic(color);
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleUnderlineStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_color = map.find("color");
+ if (tmp_color != map.end()) {
+ fromRawValue(context, tmp_color->second, result.color);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownMarkdownStyleUnderlineStruct &value) {
+ return "[Object EnrichedMarkdownMarkdownStyleUnderlineStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleUnderlineStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownMarkdownStyleCodeStruct {
+ std::string fontFamily{};
+ Float fontSize{0.0};
+ Float fontScale{0.0};
+ SharedColor color{};
+ SharedColor backgroundColor{};
+ SharedColor borderColor{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownMarkdownStyleCodeStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["fontFamily"] = fontFamily;
+ result["fontSize"] = fontSize;
+ result["fontScale"] = fontScale;
+ result["color"] = ::facebook::react::toDynamic(color);
+ result["backgroundColor"] = ::facebook::react::toDynamic(backgroundColor);
+ result["borderColor"] = ::facebook::react::toDynamic(borderColor);
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleCodeStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_fontFamily = map.find("fontFamily");
+ if (tmp_fontFamily != map.end()) {
+ fromRawValue(context, tmp_fontFamily->second, result.fontFamily);
+ }
+ auto tmp_fontSize = map.find("fontSize");
+ if (tmp_fontSize != map.end()) {
+ fromRawValue(context, tmp_fontSize->second, result.fontSize);
+ }
+ auto tmp_fontScale = map.find("fontScale");
+ if (tmp_fontScale != map.end()) {
+ fromRawValue(context, tmp_fontScale->second, result.fontScale);
+ }
+ auto tmp_color = map.find("color");
+ if (tmp_color != map.end()) {
+ fromRawValue(context, tmp_color->second, result.color);
+ }
+ auto tmp_backgroundColor = map.find("backgroundColor");
+ if (tmp_backgroundColor != map.end()) {
+ fromRawValue(context, tmp_backgroundColor->second, result.backgroundColor);
+ }
+ auto tmp_borderColor = map.find("borderColor");
+ if (tmp_borderColor != map.end()) {
+ fromRawValue(context, tmp_borderColor->second, result.borderColor);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownMarkdownStyleCodeStruct &value) {
+ return "[Object EnrichedMarkdownMarkdownStyleCodeStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleCodeStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownMarkdownStyleImageStruct {
+ Float height{0.0};
+ Float maxHeight{0.0};
+ Float aspectRatio{0.0};
+ std::string resizeMode{};
+ Float borderRadius{0.0};
+ Float marginTop{0.0};
+ Float marginBottom{0.0};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownMarkdownStyleImageStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["height"] = height;
+ result["maxHeight"] = maxHeight;
+ result["aspectRatio"] = aspectRatio;
+ result["resizeMode"] = resizeMode;
+ result["borderRadius"] = borderRadius;
+ result["marginTop"] = marginTop;
+ result["marginBottom"] = marginBottom;
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleImageStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_height = map.find("height");
+ if (tmp_height != map.end()) {
+ fromRawValue(context, tmp_height->second, result.height);
+ }
+ auto tmp_maxHeight = map.find("maxHeight");
+ if (tmp_maxHeight != map.end()) {
+ fromRawValue(context, tmp_maxHeight->second, result.maxHeight);
+ }
+ auto tmp_aspectRatio = map.find("aspectRatio");
+ if (tmp_aspectRatio != map.end()) {
+ fromRawValue(context, tmp_aspectRatio->second, result.aspectRatio);
+ }
+ auto tmp_resizeMode = map.find("resizeMode");
+ if (tmp_resizeMode != map.end()) {
+ fromRawValue(context, tmp_resizeMode->second, result.resizeMode);
+ }
+ auto tmp_borderRadius = map.find("borderRadius");
+ if (tmp_borderRadius != map.end()) {
+ fromRawValue(context, tmp_borderRadius->second, result.borderRadius);
+ }
+ auto tmp_marginTop = map.find("marginTop");
+ if (tmp_marginTop != map.end()) {
+ fromRawValue(context, tmp_marginTop->second, result.marginTop);
+ }
+ auto tmp_marginBottom = map.find("marginBottom");
+ if (tmp_marginBottom != map.end()) {
+ fromRawValue(context, tmp_marginBottom->second, result.marginBottom);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownMarkdownStyleImageStruct &value) {
+ return "[Object EnrichedMarkdownMarkdownStyleImageStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleImageStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownMarkdownStyleVideoStruct {
+ Float marginTop{0.0};
+ Float marginBottom{0.0};
+ Float borderRadius{0.0};
+ Float aspectRatio{0.0};
+ SharedColor backgroundColor{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownMarkdownStyleVideoStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["marginTop"] = marginTop;
+ result["marginBottom"] = marginBottom;
+ result["borderRadius"] = borderRadius;
+ result["aspectRatio"] = aspectRatio;
+ result["backgroundColor"] = ::facebook::react::toDynamic(backgroundColor);
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleVideoStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_marginTop = map.find("marginTop");
+ if (tmp_marginTop != map.end()) {
+ fromRawValue(context, tmp_marginTop->second, result.marginTop);
+ }
+ auto tmp_marginBottom = map.find("marginBottom");
+ if (tmp_marginBottom != map.end()) {
+ fromRawValue(context, tmp_marginBottom->second, result.marginBottom);
+ }
+ auto tmp_borderRadius = map.find("borderRadius");
+ if (tmp_borderRadius != map.end()) {
+ fromRawValue(context, tmp_borderRadius->second, result.borderRadius);
+ }
+ auto tmp_aspectRatio = map.find("aspectRatio");
+ if (tmp_aspectRatio != map.end()) {
+ fromRawValue(context, tmp_aspectRatio->second, result.aspectRatio);
+ }
+ auto tmp_backgroundColor = map.find("backgroundColor");
+ if (tmp_backgroundColor != map.end()) {
+ fromRawValue(context, tmp_backgroundColor->second, result.backgroundColor);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownMarkdownStyleVideoStruct &value) {
+ return "[Object EnrichedMarkdownMarkdownStyleVideoStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleVideoStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownMarkdownStyleInlineImageStruct {
+ Float size{0.0};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownMarkdownStyleInlineImageStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["size"] = size;
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleInlineImageStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_size = map.find("size");
+ if (tmp_size != map.end()) {
+ fromRawValue(context, tmp_size->second, result.size);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownMarkdownStyleInlineImageStruct &value) {
+ return "[Object EnrichedMarkdownMarkdownStyleInlineImageStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleInlineImageStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownMarkdownStyleThematicBreakStruct {
+ SharedColor color{};
+ Float height{0.0};
+ Float marginTop{0.0};
+ Float marginBottom{0.0};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownMarkdownStyleThematicBreakStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["color"] = ::facebook::react::toDynamic(color);
+ result["height"] = height;
+ result["marginTop"] = marginTop;
+ result["marginBottom"] = marginBottom;
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleThematicBreakStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_color = map.find("color");
+ if (tmp_color != map.end()) {
+ fromRawValue(context, tmp_color->second, result.color);
+ }
+ auto tmp_height = map.find("height");
+ if (tmp_height != map.end()) {
+ fromRawValue(context, tmp_height->second, result.height);
+ }
+ auto tmp_marginTop = map.find("marginTop");
+ if (tmp_marginTop != map.end()) {
+ fromRawValue(context, tmp_marginTop->second, result.marginTop);
+ }
+ auto tmp_marginBottom = map.find("marginBottom");
+ if (tmp_marginBottom != map.end()) {
+ fromRawValue(context, tmp_marginBottom->second, result.marginBottom);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownMarkdownStyleThematicBreakStruct &value) {
+ return "[Object EnrichedMarkdownMarkdownStyleThematicBreakStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleThematicBreakStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownMarkdownStyleTableStruct {
+ Float fontSize{0.0};
+ std::string fontFamily{};
+ std::string fontWeight{};
+ SharedColor color{};
+ Float marginTop{0.0};
+ Float marginBottom{0.0};
+ Float lineHeight{0.0};
+ std::string headerFontFamily{};
+ SharedColor headerBackgroundColor{};
+ SharedColor headerTextColor{};
+ SharedColor rowEvenBackgroundColor{};
+ SharedColor rowOddBackgroundColor{};
+ SharedColor borderColor{};
+ Float borderWidth{0.0};
+ Float borderRadius{0.0};
+ Float cellPaddingHorizontal{0.0};
+ Float cellPaddingVertical{0.0};
+ Float horizontalOverflow{0.0};
+ std::string align{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownMarkdownStyleTableStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["fontSize"] = fontSize;
+ result["fontFamily"] = fontFamily;
+ result["fontWeight"] = fontWeight;
+ result["color"] = ::facebook::react::toDynamic(color);
+ result["marginTop"] = marginTop;
+ result["marginBottom"] = marginBottom;
+ result["lineHeight"] = lineHeight;
+ result["headerFontFamily"] = headerFontFamily;
+ result["headerBackgroundColor"] = ::facebook::react::toDynamic(headerBackgroundColor);
+ result["headerTextColor"] = ::facebook::react::toDynamic(headerTextColor);
+ result["rowEvenBackgroundColor"] = ::facebook::react::toDynamic(rowEvenBackgroundColor);
+ result["rowOddBackgroundColor"] = ::facebook::react::toDynamic(rowOddBackgroundColor);
+ result["borderColor"] = ::facebook::react::toDynamic(borderColor);
+ result["borderWidth"] = borderWidth;
+ result["borderRadius"] = borderRadius;
+ result["cellPaddingHorizontal"] = cellPaddingHorizontal;
+ result["cellPaddingVertical"] = cellPaddingVertical;
+ result["horizontalOverflow"] = horizontalOverflow;
+ result["align"] = align;
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleTableStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_fontSize = map.find("fontSize");
+ if (tmp_fontSize != map.end()) {
+ fromRawValue(context, tmp_fontSize->second, result.fontSize);
+ }
+ auto tmp_fontFamily = map.find("fontFamily");
+ if (tmp_fontFamily != map.end()) {
+ fromRawValue(context, tmp_fontFamily->second, result.fontFamily);
+ }
+ auto tmp_fontWeight = map.find("fontWeight");
+ if (tmp_fontWeight != map.end()) {
+ fromRawValue(context, tmp_fontWeight->second, result.fontWeight);
+ }
+ auto tmp_color = map.find("color");
+ if (tmp_color != map.end()) {
+ fromRawValue(context, tmp_color->second, result.color);
+ }
+ auto tmp_marginTop = map.find("marginTop");
+ if (tmp_marginTop != map.end()) {
+ fromRawValue(context, tmp_marginTop->second, result.marginTop);
+ }
+ auto tmp_marginBottom = map.find("marginBottom");
+ if (tmp_marginBottom != map.end()) {
+ fromRawValue(context, tmp_marginBottom->second, result.marginBottom);
+ }
+ auto tmp_lineHeight = map.find("lineHeight");
+ if (tmp_lineHeight != map.end()) {
+ fromRawValue(context, tmp_lineHeight->second, result.lineHeight);
+ }
+ auto tmp_headerFontFamily = map.find("headerFontFamily");
+ if (tmp_headerFontFamily != map.end()) {
+ fromRawValue(context, tmp_headerFontFamily->second, result.headerFontFamily);
+ }
+ auto tmp_headerBackgroundColor = map.find("headerBackgroundColor");
+ if (tmp_headerBackgroundColor != map.end()) {
+ fromRawValue(context, tmp_headerBackgroundColor->second, result.headerBackgroundColor);
+ }
+ auto tmp_headerTextColor = map.find("headerTextColor");
+ if (tmp_headerTextColor != map.end()) {
+ fromRawValue(context, tmp_headerTextColor->second, result.headerTextColor);
+ }
+ auto tmp_rowEvenBackgroundColor = map.find("rowEvenBackgroundColor");
+ if (tmp_rowEvenBackgroundColor != map.end()) {
+ fromRawValue(context, tmp_rowEvenBackgroundColor->second, result.rowEvenBackgroundColor);
+ }
+ auto tmp_rowOddBackgroundColor = map.find("rowOddBackgroundColor");
+ if (tmp_rowOddBackgroundColor != map.end()) {
+ fromRawValue(context, tmp_rowOddBackgroundColor->second, result.rowOddBackgroundColor);
+ }
+ auto tmp_borderColor = map.find("borderColor");
+ if (tmp_borderColor != map.end()) {
+ fromRawValue(context, tmp_borderColor->second, result.borderColor);
+ }
+ auto tmp_borderWidth = map.find("borderWidth");
+ if (tmp_borderWidth != map.end()) {
+ fromRawValue(context, tmp_borderWidth->second, result.borderWidth);
+ }
+ auto tmp_borderRadius = map.find("borderRadius");
+ if (tmp_borderRadius != map.end()) {
+ fromRawValue(context, tmp_borderRadius->second, result.borderRadius);
+ }
+ auto tmp_cellPaddingHorizontal = map.find("cellPaddingHorizontal");
+ if (tmp_cellPaddingHorizontal != map.end()) {
+ fromRawValue(context, tmp_cellPaddingHorizontal->second, result.cellPaddingHorizontal);
+ }
+ auto tmp_cellPaddingVertical = map.find("cellPaddingVertical");
+ if (tmp_cellPaddingVertical != map.end()) {
+ fromRawValue(context, tmp_cellPaddingVertical->second, result.cellPaddingVertical);
+ }
+ auto tmp_horizontalOverflow = map.find("horizontalOverflow");
+ if (tmp_horizontalOverflow != map.end()) {
+ fromRawValue(context, tmp_horizontalOverflow->second, result.horizontalOverflow);
+ }
+ auto tmp_align = map.find("align");
+ if (tmp_align != map.end()) {
+ fromRawValue(context, tmp_align->second, result.align);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownMarkdownStyleTableStruct &value) {
+ return "[Object EnrichedMarkdownMarkdownStyleTableStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleTableStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownMarkdownStyleTaskListStruct {
+ SharedColor checkedColor{};
+ SharedColor borderColor{};
+ Float checkboxSize{0.0};
+ Float checkboxBorderRadius{0.0};
+ SharedColor checkmarkColor{};
+ SharedColor checkedTextColor{};
+ bool checkedStrikethrough{false};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownMarkdownStyleTaskListStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["checkedColor"] = ::facebook::react::toDynamic(checkedColor);
+ result["borderColor"] = ::facebook::react::toDynamic(borderColor);
+ result["checkboxSize"] = checkboxSize;
+ result["checkboxBorderRadius"] = checkboxBorderRadius;
+ result["checkmarkColor"] = ::facebook::react::toDynamic(checkmarkColor);
+ result["checkedTextColor"] = ::facebook::react::toDynamic(checkedTextColor);
+ result["checkedStrikethrough"] = checkedStrikethrough;
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleTaskListStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_checkedColor = map.find("checkedColor");
+ if (tmp_checkedColor != map.end()) {
+ fromRawValue(context, tmp_checkedColor->second, result.checkedColor);
+ }
+ auto tmp_borderColor = map.find("borderColor");
+ if (tmp_borderColor != map.end()) {
+ fromRawValue(context, tmp_borderColor->second, result.borderColor);
+ }
+ auto tmp_checkboxSize = map.find("checkboxSize");
+ if (tmp_checkboxSize != map.end()) {
+ fromRawValue(context, tmp_checkboxSize->second, result.checkboxSize);
+ }
+ auto tmp_checkboxBorderRadius = map.find("checkboxBorderRadius");
+ if (tmp_checkboxBorderRadius != map.end()) {
+ fromRawValue(context, tmp_checkboxBorderRadius->second, result.checkboxBorderRadius);
+ }
+ auto tmp_checkmarkColor = map.find("checkmarkColor");
+ if (tmp_checkmarkColor != map.end()) {
+ fromRawValue(context, tmp_checkmarkColor->second, result.checkmarkColor);
+ }
+ auto tmp_checkedTextColor = map.find("checkedTextColor");
+ if (tmp_checkedTextColor != map.end()) {
+ fromRawValue(context, tmp_checkedTextColor->second, result.checkedTextColor);
+ }
+ auto tmp_checkedStrikethrough = map.find("checkedStrikethrough");
+ if (tmp_checkedStrikethrough != map.end()) {
+ fromRawValue(context, tmp_checkedStrikethrough->second, result.checkedStrikethrough);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownMarkdownStyleTaskListStruct &value) {
+ return "[Object EnrichedMarkdownMarkdownStyleTaskListStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleTaskListStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownMarkdownStyleMathStruct {
+ Float fontSize{0.0};
+ SharedColor color{};
+ SharedColor backgroundColor{};
+ Float padding{0.0};
+ Float marginTop{0.0};
+ Float marginBottom{0.0};
+ std::string textAlign{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownMarkdownStyleMathStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["fontSize"] = fontSize;
+ result["color"] = ::facebook::react::toDynamic(color);
+ result["backgroundColor"] = ::facebook::react::toDynamic(backgroundColor);
+ result["padding"] = padding;
+ result["marginTop"] = marginTop;
+ result["marginBottom"] = marginBottom;
+ result["textAlign"] = textAlign;
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleMathStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_fontSize = map.find("fontSize");
+ if (tmp_fontSize != map.end()) {
+ fromRawValue(context, tmp_fontSize->second, result.fontSize);
+ }
+ auto tmp_color = map.find("color");
+ if (tmp_color != map.end()) {
+ fromRawValue(context, tmp_color->second, result.color);
+ }
+ auto tmp_backgroundColor = map.find("backgroundColor");
+ if (tmp_backgroundColor != map.end()) {
+ fromRawValue(context, tmp_backgroundColor->second, result.backgroundColor);
+ }
+ auto tmp_padding = map.find("padding");
+ if (tmp_padding != map.end()) {
+ fromRawValue(context, tmp_padding->second, result.padding);
+ }
+ auto tmp_marginTop = map.find("marginTop");
+ if (tmp_marginTop != map.end()) {
+ fromRawValue(context, tmp_marginTop->second, result.marginTop);
+ }
+ auto tmp_marginBottom = map.find("marginBottom");
+ if (tmp_marginBottom != map.end()) {
+ fromRawValue(context, tmp_marginBottom->second, result.marginBottom);
+ }
+ auto tmp_textAlign = map.find("textAlign");
+ if (tmp_textAlign != map.end()) {
+ fromRawValue(context, tmp_textAlign->second, result.textAlign);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownMarkdownStyleMathStruct &value) {
+ return "[Object EnrichedMarkdownMarkdownStyleMathStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleMathStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownMarkdownStyleInlineMathStruct {
+ SharedColor color{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownMarkdownStyleInlineMathStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["color"] = ::facebook::react::toDynamic(color);
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleInlineMathStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_color = map.find("color");
+ if (tmp_color != map.end()) {
+ fromRawValue(context, tmp_color->second, result.color);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownMarkdownStyleInlineMathStruct &value) {
+ return "[Object EnrichedMarkdownMarkdownStyleInlineMathStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleInlineMathStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownMarkdownStyleSpoilerParticlesStruct {
+ Float density{0.0};
+ Float speed{0.0};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownMarkdownStyleSpoilerParticlesStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["density"] = density;
+ result["speed"] = speed;
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleSpoilerParticlesStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_density = map.find("density");
+ if (tmp_density != map.end()) {
+ fromRawValue(context, tmp_density->second, result.density);
+ }
+ auto tmp_speed = map.find("speed");
+ if (tmp_speed != map.end()) {
+ fromRawValue(context, tmp_speed->second, result.speed);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownMarkdownStyleSpoilerParticlesStruct &value) {
+ return "[Object EnrichedMarkdownMarkdownStyleSpoilerParticlesStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleSpoilerParticlesStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownMarkdownStyleSpoilerSolidStruct {
+ Float borderRadius{0.0};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownMarkdownStyleSpoilerSolidStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["borderRadius"] = borderRadius;
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleSpoilerSolidStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_borderRadius = map.find("borderRadius");
+ if (tmp_borderRadius != map.end()) {
+ fromRawValue(context, tmp_borderRadius->second, result.borderRadius);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownMarkdownStyleSpoilerSolidStruct &value) {
+ return "[Object EnrichedMarkdownMarkdownStyleSpoilerSolidStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleSpoilerSolidStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownMarkdownStyleSpoilerStruct {
+ SharedColor color{};
+ EnrichedMarkdownMarkdownStyleSpoilerParticlesStruct particles{};
+ EnrichedMarkdownMarkdownStyleSpoilerSolidStruct solid{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownMarkdownStyleSpoilerStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["color"] = ::facebook::react::toDynamic(color);
+ result["particles"] = ::facebook::react::toDynamic(particles);
+ result["solid"] = ::facebook::react::toDynamic(solid);
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleSpoilerStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_color = map.find("color");
+ if (tmp_color != map.end()) {
+ fromRawValue(context, tmp_color->second, result.color);
+ }
+ auto tmp_particles = map.find("particles");
+ if (tmp_particles != map.end()) {
+ fromRawValue(context, tmp_particles->second, result.particles);
+ }
+ auto tmp_solid = map.find("solid");
+ if (tmp_solid != map.end()) {
+ fromRawValue(context, tmp_solid->second, result.solid);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownMarkdownStyleSpoilerStruct &value) {
+ return "[Object EnrichedMarkdownMarkdownStyleSpoilerStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleSpoilerStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownMarkdownStyleSuperscriptStruct {
+ Float fontScale{0.0};
+ Float baselineOffsetScale{0.0};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownMarkdownStyleSuperscriptStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["fontScale"] = fontScale;
+ result["baselineOffsetScale"] = baselineOffsetScale;
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleSuperscriptStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_fontScale = map.find("fontScale");
+ if (tmp_fontScale != map.end()) {
+ fromRawValue(context, tmp_fontScale->second, result.fontScale);
+ }
+ auto tmp_baselineOffsetScale = map.find("baselineOffsetScale");
+ if (tmp_baselineOffsetScale != map.end()) {
+ fromRawValue(context, tmp_baselineOffsetScale->second, result.baselineOffsetScale);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownMarkdownStyleSuperscriptStruct &value) {
+ return "[Object EnrichedMarkdownMarkdownStyleSuperscriptStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleSuperscriptStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownMarkdownStyleSubscriptStruct {
+ Float fontScale{0.0};
+ Float baselineOffsetScale{0.0};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownMarkdownStyleSubscriptStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["fontScale"] = fontScale;
+ result["baselineOffsetScale"] = baselineOffsetScale;
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleSubscriptStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_fontScale = map.find("fontScale");
+ if (tmp_fontScale != map.end()) {
+ fromRawValue(context, tmp_fontScale->second, result.fontScale);
+ }
+ auto tmp_baselineOffsetScale = map.find("baselineOffsetScale");
+ if (tmp_baselineOffsetScale != map.end()) {
+ fromRawValue(context, tmp_baselineOffsetScale->second, result.baselineOffsetScale);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownMarkdownStyleSubscriptStruct &value) {
+ return "[Object EnrichedMarkdownMarkdownStyleSubscriptStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleSubscriptStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownMarkdownStyleHighlightStruct {
+ SharedColor color{};
+ SharedColor backgroundColor{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownMarkdownStyleHighlightStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["color"] = ::facebook::react::toDynamic(color);
+ result["backgroundColor"] = ::facebook::react::toDynamic(backgroundColor);
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleHighlightStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_color = map.find("color");
+ if (tmp_color != map.end()) {
+ fromRawValue(context, tmp_color->second, result.color);
+ }
+ auto tmp_backgroundColor = map.find("backgroundColor");
+ if (tmp_backgroundColor != map.end()) {
+ fromRawValue(context, tmp_backgroundColor->second, result.backgroundColor);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownMarkdownStyleHighlightStruct &value) {
+ return "[Object EnrichedMarkdownMarkdownStyleHighlightStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleHighlightStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownMarkdownStyleStruct {
+ EnrichedMarkdownMarkdownStyleParagraphStruct paragraph{};
+ EnrichedMarkdownMarkdownStyleH1Struct h1{};
+ EnrichedMarkdownMarkdownStyleH2Struct h2{};
+ EnrichedMarkdownMarkdownStyleH3Struct h3{};
+ EnrichedMarkdownMarkdownStyleH4Struct h4{};
+ EnrichedMarkdownMarkdownStyleH5Struct h5{};
+ EnrichedMarkdownMarkdownStyleH6Struct h6{};
+ EnrichedMarkdownMarkdownStyleBlockquoteStruct blockquote{};
+ EnrichedMarkdownMarkdownStyleListStruct list{};
+ EnrichedMarkdownMarkdownStyleCodeBlockStruct codeBlock{};
+ EnrichedMarkdownMarkdownStyleLinkStruct link{};
+ std::vector linkVariants{};
+ EnrichedMarkdownMarkdownStyleStrongStruct strong{};
+ EnrichedMarkdownMarkdownStyleEmStruct em{};
+ EnrichedMarkdownMarkdownStyleStrikethroughStruct strikethrough{};
+ EnrichedMarkdownMarkdownStyleUnderlineStruct underline{};
+ EnrichedMarkdownMarkdownStyleCodeStruct code{};
+ EnrichedMarkdownMarkdownStyleImageStruct image{};
+ EnrichedMarkdownMarkdownStyleVideoStruct video{};
+ EnrichedMarkdownMarkdownStyleInlineImageStruct inlineImage{};
+ EnrichedMarkdownMarkdownStyleThematicBreakStruct thematicBreak{};
+ EnrichedMarkdownMarkdownStyleTableStruct table{};
+ EnrichedMarkdownMarkdownStyleTaskListStruct taskList{};
+ EnrichedMarkdownMarkdownStyleMathStruct math{};
+ EnrichedMarkdownMarkdownStyleInlineMathStruct inlineMath{};
+ EnrichedMarkdownMarkdownStyleSpoilerStruct spoiler{};
+ EnrichedMarkdownMarkdownStyleSuperscriptStruct superscript{};
+ EnrichedMarkdownMarkdownStyleSubscriptStruct subscript{};
+ EnrichedMarkdownMarkdownStyleHighlightStruct highlight{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownMarkdownStyleStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["paragraph"] = ::facebook::react::toDynamic(paragraph);
+ result["h1"] = ::facebook::react::toDynamic(h1);
+ result["h2"] = ::facebook::react::toDynamic(h2);
+ result["h3"] = ::facebook::react::toDynamic(h3);
+ result["h4"] = ::facebook::react::toDynamic(h4);
+ result["h5"] = ::facebook::react::toDynamic(h5);
+ result["h6"] = ::facebook::react::toDynamic(h6);
+ result["blockquote"] = ::facebook::react::toDynamic(blockquote);
+ result["list"] = ::facebook::react::toDynamic(list);
+ result["codeBlock"] = ::facebook::react::toDynamic(codeBlock);
+ result["link"] = ::facebook::react::toDynamic(link);
+ result["linkVariants"] = ::facebook::react::toDynamic(linkVariants);
+ result["strong"] = ::facebook::react::toDynamic(strong);
+ result["em"] = ::facebook::react::toDynamic(em);
+ result["strikethrough"] = ::facebook::react::toDynamic(strikethrough);
+ result["underline"] = ::facebook::react::toDynamic(underline);
+ result["code"] = ::facebook::react::toDynamic(code);
+ result["image"] = ::facebook::react::toDynamic(image);
+ result["video"] = ::facebook::react::toDynamic(video);
+ result["inlineImage"] = ::facebook::react::toDynamic(inlineImage);
+ result["thematicBreak"] = ::facebook::react::toDynamic(thematicBreak);
+ result["table"] = ::facebook::react::toDynamic(table);
+ result["taskList"] = ::facebook::react::toDynamic(taskList);
+ result["math"] = ::facebook::react::toDynamic(math);
+ result["inlineMath"] = ::facebook::react::toDynamic(inlineMath);
+ result["spoiler"] = ::facebook::react::toDynamic(spoiler);
+ result["superscript"] = ::facebook::react::toDynamic(superscript);
+ result["subscript"] = ::facebook::react::toDynamic(subscript);
+ result["highlight"] = ::facebook::react::toDynamic(highlight);
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_paragraph = map.find("paragraph");
+ if (tmp_paragraph != map.end()) {
+ fromRawValue(context, tmp_paragraph->second, result.paragraph);
+ }
+ auto tmp_h1 = map.find("h1");
+ if (tmp_h1 != map.end()) {
+ fromRawValue(context, tmp_h1->second, result.h1);
+ }
+ auto tmp_h2 = map.find("h2");
+ if (tmp_h2 != map.end()) {
+ fromRawValue(context, tmp_h2->second, result.h2);
+ }
+ auto tmp_h3 = map.find("h3");
+ if (tmp_h3 != map.end()) {
+ fromRawValue(context, tmp_h3->second, result.h3);
+ }
+ auto tmp_h4 = map.find("h4");
+ if (tmp_h4 != map.end()) {
+ fromRawValue(context, tmp_h4->second, result.h4);
+ }
+ auto tmp_h5 = map.find("h5");
+ if (tmp_h5 != map.end()) {
+ fromRawValue(context, tmp_h5->second, result.h5);
+ }
+ auto tmp_h6 = map.find("h6");
+ if (tmp_h6 != map.end()) {
+ fromRawValue(context, tmp_h6->second, result.h6);
+ }
+ auto tmp_blockquote = map.find("blockquote");
+ if (tmp_blockquote != map.end()) {
+ fromRawValue(context, tmp_blockquote->second, result.blockquote);
+ }
+ auto tmp_list = map.find("list");
+ if (tmp_list != map.end()) {
+ fromRawValue(context, tmp_list->second, result.list);
+ }
+ auto tmp_codeBlock = map.find("codeBlock");
+ if (tmp_codeBlock != map.end()) {
+ fromRawValue(context, tmp_codeBlock->second, result.codeBlock);
+ }
+ auto tmp_link = map.find("link");
+ if (tmp_link != map.end()) {
+ fromRawValue(context, tmp_link->second, result.link);
+ }
+ auto tmp_linkVariants = map.find("linkVariants");
+ if (tmp_linkVariants != map.end()) {
+ fromRawValue(context, tmp_linkVariants->second, result.linkVariants);
+ }
+ auto tmp_strong = map.find("strong");
+ if (tmp_strong != map.end()) {
+ fromRawValue(context, tmp_strong->second, result.strong);
+ }
+ auto tmp_em = map.find("em");
+ if (tmp_em != map.end()) {
+ fromRawValue(context, tmp_em->second, result.em);
+ }
+ auto tmp_strikethrough = map.find("strikethrough");
+ if (tmp_strikethrough != map.end()) {
+ fromRawValue(context, tmp_strikethrough->second, result.strikethrough);
+ }
+ auto tmp_underline = map.find("underline");
+ if (tmp_underline != map.end()) {
+ fromRawValue(context, tmp_underline->second, result.underline);
+ }
+ auto tmp_code = map.find("code");
+ if (tmp_code != map.end()) {
+ fromRawValue(context, tmp_code->second, result.code);
+ }
+ auto tmp_image = map.find("image");
+ if (tmp_image != map.end()) {
+ fromRawValue(context, tmp_image->second, result.image);
+ }
+ auto tmp_video = map.find("video");
+ if (tmp_video != map.end()) {
+ fromRawValue(context, tmp_video->second, result.video);
+ }
+ auto tmp_inlineImage = map.find("inlineImage");
+ if (tmp_inlineImage != map.end()) {
+ fromRawValue(context, tmp_inlineImage->second, result.inlineImage);
+ }
+ auto tmp_thematicBreak = map.find("thematicBreak");
+ if (tmp_thematicBreak != map.end()) {
+ fromRawValue(context, tmp_thematicBreak->second, result.thematicBreak);
+ }
+ auto tmp_table = map.find("table");
+ if (tmp_table != map.end()) {
+ fromRawValue(context, tmp_table->second, result.table);
+ }
+ auto tmp_taskList = map.find("taskList");
+ if (tmp_taskList != map.end()) {
+ fromRawValue(context, tmp_taskList->second, result.taskList);
+ }
+ auto tmp_math = map.find("math");
+ if (tmp_math != map.end()) {
+ fromRawValue(context, tmp_math->second, result.math);
+ }
+ auto tmp_inlineMath = map.find("inlineMath");
+ if (tmp_inlineMath != map.end()) {
+ fromRawValue(context, tmp_inlineMath->second, result.inlineMath);
+ }
+ auto tmp_spoiler = map.find("spoiler");
+ if (tmp_spoiler != map.end()) {
+ fromRawValue(context, tmp_spoiler->second, result.spoiler);
+ }
+ auto tmp_superscript = map.find("superscript");
+ if (tmp_superscript != map.end()) {
+ fromRawValue(context, tmp_superscript->second, result.superscript);
+ }
+ auto tmp_subscript = map.find("subscript");
+ if (tmp_subscript != map.end()) {
+ fromRawValue(context, tmp_subscript->second, result.subscript);
+ }
+ auto tmp_highlight = map.find("highlight");
+ if (tmp_highlight != map.end()) {
+ fromRawValue(context, tmp_highlight->second, result.highlight);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownMarkdownStyleStruct &value) {
+ return "[Object EnrichedMarkdownMarkdownStyleStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownMd4cFlagsStruct {
+ bool underline{false};
+ bool superscript{false};
+ bool subscript{false};
+ bool latexMath{false};
+ bool highlight{false};
+ bool hardSoftBreaks{false};
+ bool preserveBlankLines{false};
+ bool admonitions{false};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownMd4cFlagsStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["underline"] = underline;
+ result["superscript"] = superscript;
+ result["subscript"] = subscript;
+ result["latexMath"] = latexMath;
+ result["highlight"] = highlight;
+ result["hardSoftBreaks"] = hardSoftBreaks;
+ result["preserveBlankLines"] = preserveBlankLines;
+ result["admonitions"] = admonitions;
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMd4cFlagsStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_underline = map.find("underline");
+ if (tmp_underline != map.end()) {
+ fromRawValue(context, tmp_underline->second, result.underline);
+ }
+ auto tmp_superscript = map.find("superscript");
+ if (tmp_superscript != map.end()) {
+ fromRawValue(context, tmp_superscript->second, result.superscript);
+ }
+ auto tmp_subscript = map.find("subscript");
+ if (tmp_subscript != map.end()) {
+ fromRawValue(context, tmp_subscript->second, result.subscript);
+ }
+ auto tmp_latexMath = map.find("latexMath");
+ if (tmp_latexMath != map.end()) {
+ fromRawValue(context, tmp_latexMath->second, result.latexMath);
+ }
+ auto tmp_highlight = map.find("highlight");
+ if (tmp_highlight != map.end()) {
+ fromRawValue(context, tmp_highlight->second, result.highlight);
+ }
+ auto tmp_hardSoftBreaks = map.find("hardSoftBreaks");
+ if (tmp_hardSoftBreaks != map.end()) {
+ fromRawValue(context, tmp_hardSoftBreaks->second, result.hardSoftBreaks);
+ }
+ auto tmp_preserveBlankLines = map.find("preserveBlankLines");
+ if (tmp_preserveBlankLines != map.end()) {
+ fromRawValue(context, tmp_preserveBlankLines->second, result.preserveBlankLines);
+ }
+ auto tmp_admonitions = map.find("admonitions");
+ if (tmp_admonitions != map.end()) {
+ fromRawValue(context, tmp_admonitions->second, result.admonitions);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownMd4cFlagsStruct &value) {
+ return "[Object EnrichedMarkdownMd4cFlagsStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownMd4cFlagsStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownStreamingConfigStruct {
+ std::string tableMode{};
+ std::string codeBlockMode{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownStreamingConfigStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["tableMode"] = tableMode;
+ result["codeBlockMode"] = codeBlockMode;
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownStreamingConfigStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_tableMode = map.find("tableMode");
+ if (tmp_tableMode != map.end()) {
+ fromRawValue(context, tmp_tableMode->second, result.tableMode);
+ }
+ auto tmp_codeBlockMode = map.find("codeBlockMode");
+ if (tmp_codeBlockMode != map.end()) {
+ fromRawValue(context, tmp_codeBlockMode->second, result.codeBlockMode);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownStreamingConfigStruct &value) {
+ return "[Object EnrichedMarkdownStreamingConfigStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownStreamingConfigStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownContextMenuItemsStruct {
+ std::string text{};
+ std::string icon{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownContextMenuItemsStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["text"] = text;
+ result["icon"] = icon;
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownContextMenuItemsStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_text = map.find("text");
+ if (tmp_text != map.end()) {
+ fromRawValue(context, tmp_text->second, result.text);
+ }
+ auto tmp_icon = map.find("icon");
+ if (tmp_icon != map.end()) {
+ fromRawValue(context, tmp_icon->second, result.icon);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownContextMenuItemsStruct &value) {
+ return "[Object EnrichedMarkdownContextMenuItemsStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownContextMenuItemsStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, std::vector &result) {
+ auto items = (std::vector)value;
+ for (const auto &item : items) {
+ EnrichedMarkdownContextMenuItemsStruct newItem;
+ fromRawValue(context, item, newItem);
+ result.emplace_back(newItem);
+ }
+}
+
+
+struct EnrichedMarkdownImageRequestHeadersStruct {
+ std::string name{};
+ std::string value{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownImageRequestHeadersStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["name"] = name;
+ result["value"] = value;
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownImageRequestHeadersStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_name = map.find("name");
+ if (tmp_name != map.end()) {
+ fromRawValue(context, tmp_name->second, result.name);
+ }
+ auto tmp_value = map.find("value");
+ if (tmp_value != map.end()) {
+ fromRawValue(context, tmp_value->second, result.value);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownImageRequestHeadersStruct &value) {
+ return "[Object EnrichedMarkdownImageRequestHeadersStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownImageRequestHeadersStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, std::vector &result) {
+ auto items = (std::vector)value;
+ for (const auto &item : items) {
+ EnrichedMarkdownImageRequestHeadersStruct newItem;
+ fromRawValue(context, item, newItem);
+ result.emplace_back(newItem);
+ }
+}
+
+
+struct EnrichedMarkdownLinkPillContentStruct {
+ std::string url{};
+ std::string label{};
+ std::string iconUri{};
+ SharedColor iconTintColor{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownLinkPillContentStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["url"] = url;
+ result["label"] = label;
+ result["iconUri"] = iconUri;
+ result["iconTintColor"] = ::facebook::react::toDynamic(iconTintColor);
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownLinkPillContentStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_url = map.find("url");
+ if (tmp_url != map.end()) {
+ fromRawValue(context, tmp_url->second, result.url);
+ }
+ auto tmp_label = map.find("label");
+ if (tmp_label != map.end()) {
+ fromRawValue(context, tmp_label->second, result.label);
+ }
+ auto tmp_iconUri = map.find("iconUri");
+ if (tmp_iconUri != map.end()) {
+ fromRawValue(context, tmp_iconUri->second, result.iconUri);
+ }
+ auto tmp_iconTintColor = map.find("iconTintColor");
+ if (tmp_iconTintColor != map.end()) {
+ fromRawValue(context, tmp_iconTintColor->second, result.iconTintColor);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownLinkPillContentStruct &value) {
+ return "[Object EnrichedMarkdownLinkPillContentStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownLinkPillContentStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, std::vector &result) {
+ auto items = (std::vector)value;
+ for (const auto &item : items) {
+ EnrichedMarkdownLinkPillContentStruct newItem;
+ fromRawValue(context, item, newItem);
+ result.emplace_back(newItem);
+ }
+}
+
+
+struct EnrichedMarkdownLinkRecognitionTextStruct {
+ std::string pattern{};
+ bool caseInsensitive{false};
+ bool dotAll{false};
+ bool isDisabled{false};
+ bool isDefault{false};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownLinkRecognitionTextStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["pattern"] = pattern;
+ result["caseInsensitive"] = caseInsensitive;
+ result["dotAll"] = dotAll;
+ result["isDisabled"] = isDisabled;
+ result["isDefault"] = isDefault;
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownLinkRecognitionTextStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_pattern = map.find("pattern");
+ if (tmp_pattern != map.end()) {
+ fromRawValue(context, tmp_pattern->second, result.pattern);
+ }
+ auto tmp_caseInsensitive = map.find("caseInsensitive");
+ if (tmp_caseInsensitive != map.end()) {
+ fromRawValue(context, tmp_caseInsensitive->second, result.caseInsensitive);
+ }
+ auto tmp_dotAll = map.find("dotAll");
+ if (tmp_dotAll != map.end()) {
+ fromRawValue(context, tmp_dotAll->second, result.dotAll);
+ }
+ auto tmp_isDisabled = map.find("isDisabled");
+ if (tmp_isDisabled != map.end()) {
+ fromRawValue(context, tmp_isDisabled->second, result.isDisabled);
+ }
+ auto tmp_isDefault = map.find("isDefault");
+ if (tmp_isDefault != map.end()) {
+ fromRawValue(context, tmp_isDefault->second, result.isDefault);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownLinkRecognitionTextStruct &value) {
+ return "[Object EnrichedMarkdownLinkRecognitionTextStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownLinkRecognitionTextStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownLinkRecognitionInlineCodeStruct {
+ std::string pattern{};
+ bool caseInsensitive{false};
+ bool dotAll{false};
+ bool isDisabled{false};
+ bool isDefault{false};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownLinkRecognitionInlineCodeStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["pattern"] = pattern;
+ result["caseInsensitive"] = caseInsensitive;
+ result["dotAll"] = dotAll;
+ result["isDisabled"] = isDisabled;
+ result["isDefault"] = isDefault;
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownLinkRecognitionInlineCodeStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_pattern = map.find("pattern");
+ if (tmp_pattern != map.end()) {
+ fromRawValue(context, tmp_pattern->second, result.pattern);
+ }
+ auto tmp_caseInsensitive = map.find("caseInsensitive");
+ if (tmp_caseInsensitive != map.end()) {
+ fromRawValue(context, tmp_caseInsensitive->second, result.caseInsensitive);
+ }
+ auto tmp_dotAll = map.find("dotAll");
+ if (tmp_dotAll != map.end()) {
+ fromRawValue(context, tmp_dotAll->second, result.dotAll);
+ }
+ auto tmp_isDisabled = map.find("isDisabled");
+ if (tmp_isDisabled != map.end()) {
+ fromRawValue(context, tmp_isDisabled->second, result.isDisabled);
+ }
+ auto tmp_isDefault = map.find("isDefault");
+ if (tmp_isDefault != map.end()) {
+ fromRawValue(context, tmp_isDefault->second, result.isDefault);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownLinkRecognitionInlineCodeStruct &value) {
+ return "[Object EnrichedMarkdownLinkRecognitionInlineCodeStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownLinkRecognitionInlineCodeStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownLinkRecognitionStruct {
+ EnrichedMarkdownLinkRecognitionTextStruct text{};
+ EnrichedMarkdownLinkRecognitionInlineCodeStruct inlineCode{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownLinkRecognitionStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["text"] = ::facebook::react::toDynamic(text);
+ result["inlineCode"] = ::facebook::react::toDynamic(inlineCode);
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownLinkRecognitionStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_text = map.find("text");
+ if (tmp_text != map.end()) {
+ fromRawValue(context, tmp_text->second, result.text);
+ }
+ auto tmp_inlineCode = map.find("inlineCode");
+ if (tmp_inlineCode != map.end()) {
+ fromRawValue(context, tmp_inlineCode->second, result.inlineCode);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownLinkRecognitionStruct &value) {
+ return "[Object EnrichedMarkdownLinkRecognitionStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownLinkRecognitionStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownLinkContextMenuItemsItemsStruct {
+ std::string text{};
+ std::string icon{};
+ bool disabled{false};
+ bool destructive{false};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownLinkContextMenuItemsItemsStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["text"] = text;
+ result["icon"] = icon;
+ result["disabled"] = disabled;
+ result["destructive"] = destructive;
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownLinkContextMenuItemsItemsStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_text = map.find("text");
+ if (tmp_text != map.end()) {
+ fromRawValue(context, tmp_text->second, result.text);
+ }
+ auto tmp_icon = map.find("icon");
+ if (tmp_icon != map.end()) {
+ fromRawValue(context, tmp_icon->second, result.icon);
+ }
+ auto tmp_disabled = map.find("disabled");
+ if (tmp_disabled != map.end()) {
+ fromRawValue(context, tmp_disabled->second, result.disabled);
+ }
+ auto tmp_destructive = map.find("destructive");
+ if (tmp_destructive != map.end()) {
+ fromRawValue(context, tmp_destructive->second, result.destructive);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownLinkContextMenuItemsItemsStruct &value) {
+ return "[Object EnrichedMarkdownLinkContextMenuItemsItemsStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownLinkContextMenuItemsItemsStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, std::vector &result) {
+ auto items = (std::vector)value;
+ for (const auto &item : items) {
+ EnrichedMarkdownLinkContextMenuItemsItemsStruct newItem;
+ fromRawValue(context, item, newItem);
+ result.emplace_back(newItem);
+ }
+}
+
+
+struct EnrichedMarkdownLinkContextMenuItemsStruct {
+ std::string pattern{};
+ std::vector items{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownLinkContextMenuItemsStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["pattern"] = pattern;
+ result["items"] = ::facebook::react::toDynamic(items);
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownLinkContextMenuItemsStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_pattern = map.find("pattern");
+ if (tmp_pattern != map.end()) {
+ fromRawValue(context, tmp_pattern->second, result.pattern);
+ }
+ auto tmp_items = map.find("items");
+ if (tmp_items != map.end()) {
+ fromRawValue(context, tmp_items->second, result.items);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownLinkContextMenuItemsStruct &value) {
+ return "[Object EnrichedMarkdownLinkContextMenuItemsStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownLinkContextMenuItemsStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, std::vector &result) {
+ auto items = (std::vector)value;
+ for (const auto &item : items) {
+ EnrichedMarkdownLinkContextMenuItemsStruct newItem;
+ fromRawValue(context, item, newItem);
+ result.emplace_back(newItem);
+ }
+}
+
+
+struct EnrichedMarkdownSelectionMenuConfigStruct {
+ bool copyAsMarkdown{false};
+ bool copyImageUrl{false};
+ std::string copyLabel{};
+ std::string copyAsMarkdownLabel{};
+ std::string copyImageUrlLabel{};
+ std::string copyImageUrlsLabel{};
+ std::vector copyImageUrlPluralTemplates{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownSelectionMenuConfigStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["copyAsMarkdown"] = copyAsMarkdown;
+ result["copyImageUrl"] = copyImageUrl;
+ result["copyLabel"] = copyLabel;
+ result["copyAsMarkdownLabel"] = copyAsMarkdownLabel;
+ result["copyImageUrlLabel"] = copyImageUrlLabel;
+ result["copyImageUrlsLabel"] = copyImageUrlsLabel;
+ result["copyImageUrlPluralTemplates"] = ::facebook::react::toDynamic(copyImageUrlPluralTemplates);
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownSelectionMenuConfigStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_copyAsMarkdown = map.find("copyAsMarkdown");
+ if (tmp_copyAsMarkdown != map.end()) {
+ fromRawValue(context, tmp_copyAsMarkdown->second, result.copyAsMarkdown);
+ }
+ auto tmp_copyImageUrl = map.find("copyImageUrl");
+ if (tmp_copyImageUrl != map.end()) {
+ fromRawValue(context, tmp_copyImageUrl->second, result.copyImageUrl);
+ }
+ auto tmp_copyLabel = map.find("copyLabel");
+ if (tmp_copyLabel != map.end()) {
+ fromRawValue(context, tmp_copyLabel->second, result.copyLabel);
+ }
+ auto tmp_copyAsMarkdownLabel = map.find("copyAsMarkdownLabel");
+ if (tmp_copyAsMarkdownLabel != map.end()) {
+ fromRawValue(context, tmp_copyAsMarkdownLabel->second, result.copyAsMarkdownLabel);
+ }
+ auto tmp_copyImageUrlLabel = map.find("copyImageUrlLabel");
+ if (tmp_copyImageUrlLabel != map.end()) {
+ fromRawValue(context, tmp_copyImageUrlLabel->second, result.copyImageUrlLabel);
+ }
+ auto tmp_copyImageUrlsLabel = map.find("copyImageUrlsLabel");
+ if (tmp_copyImageUrlsLabel != map.end()) {
+ fromRawValue(context, tmp_copyImageUrlsLabel->second, result.copyImageUrlsLabel);
+ }
+ auto tmp_copyImageUrlPluralTemplates = map.find("copyImageUrlPluralTemplates");
+ if (tmp_copyImageUrlPluralTemplates != map.end()) {
+ fromRawValue(context, tmp_copyImageUrlPluralTemplates->second, result.copyImageUrlPluralTemplates);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownSelectionMenuConfigStruct &value) {
+ return "[Object EnrichedMarkdownSelectionMenuConfigStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownSelectionMenuConfigStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownAccessibilityLabelsListStruct {
+ std::string bulletPoint{};
+ std::string nestedBulletPoint{};
+ std::string orderedItem{};
+ std::string nestedOrderedItem{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownAccessibilityLabelsListStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["bulletPoint"] = bulletPoint;
+ result["nestedBulletPoint"] = nestedBulletPoint;
+ result["orderedItem"] = orderedItem;
+ result["nestedOrderedItem"] = nestedOrderedItem;
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownAccessibilityLabelsListStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_bulletPoint = map.find("bulletPoint");
+ if (tmp_bulletPoint != map.end()) {
+ fromRawValue(context, tmp_bulletPoint->second, result.bulletPoint);
+ }
+ auto tmp_nestedBulletPoint = map.find("nestedBulletPoint");
+ if (tmp_nestedBulletPoint != map.end()) {
+ fromRawValue(context, tmp_nestedBulletPoint->second, result.nestedBulletPoint);
+ }
+ auto tmp_orderedItem = map.find("orderedItem");
+ if (tmp_orderedItem != map.end()) {
+ fromRawValue(context, tmp_orderedItem->second, result.orderedItem);
+ }
+ auto tmp_nestedOrderedItem = map.find("nestedOrderedItem");
+ if (tmp_nestedOrderedItem != map.end()) {
+ fromRawValue(context, tmp_nestedOrderedItem->second, result.nestedOrderedItem);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownAccessibilityLabelsListStruct &value) {
+ return "[Object EnrichedMarkdownAccessibilityLabelsListStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownAccessibilityLabelsListStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownAccessibilityLabelsBlockquoteStruct {
+ std::string quote{};
+ std::string nestedQuote{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownAccessibilityLabelsBlockquoteStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["quote"] = quote;
+ result["nestedQuote"] = nestedQuote;
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownAccessibilityLabelsBlockquoteStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_quote = map.find("quote");
+ if (tmp_quote != map.end()) {
+ fromRawValue(context, tmp_quote->second, result.quote);
+ }
+ auto tmp_nestedQuote = map.find("nestedQuote");
+ if (tmp_nestedQuote != map.end()) {
+ fromRawValue(context, tmp_nestedQuote->second, result.nestedQuote);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownAccessibilityLabelsBlockquoteStruct &value) {
+ return "[Object EnrichedMarkdownAccessibilityLabelsBlockquoteStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownAccessibilityLabelsBlockquoteStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownAccessibilityLabelsTableStruct {
+ std::string row{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownAccessibilityLabelsTableStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["row"] = row;
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownAccessibilityLabelsTableStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_row = map.find("row");
+ if (tmp_row != map.end()) {
+ fromRawValue(context, tmp_row->second, result.row);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownAccessibilityLabelsTableStruct &value) {
+ return "[Object EnrichedMarkdownAccessibilityLabelsTableStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownAccessibilityLabelsTableStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownAccessibilityLabelsMathStruct {
+ std::string equation{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownAccessibilityLabelsMathStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["equation"] = equation;
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownAccessibilityLabelsMathStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_equation = map.find("equation");
+ if (tmp_equation != map.end()) {
+ fromRawValue(context, tmp_equation->second, result.equation);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownAccessibilityLabelsMathStruct &value) {
+ return "[Object EnrichedMarkdownAccessibilityLabelsMathStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownAccessibilityLabelsMathStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownAccessibilityLabelsRotorStruct {
+ std::string headings{};
+ std::string links{};
+ std::string images{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownAccessibilityLabelsRotorStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["headings"] = headings;
+ result["links"] = links;
+ result["images"] = images;
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownAccessibilityLabelsRotorStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_headings = map.find("headings");
+ if (tmp_headings != map.end()) {
+ fromRawValue(context, tmp_headings->second, result.headings);
+ }
+ auto tmp_links = map.find("links");
+ if (tmp_links != map.end()) {
+ fromRawValue(context, tmp_links->second, result.links);
+ }
+ auto tmp_images = map.find("images");
+ if (tmp_images != map.end()) {
+ fromRawValue(context, tmp_images->second, result.images);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownAccessibilityLabelsRotorStruct &value) {
+ return "[Object EnrichedMarkdownAccessibilityLabelsRotorStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownAccessibilityLabelsRotorStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownAccessibilityLabelsStruct {
+ EnrichedMarkdownAccessibilityLabelsListStruct list{};
+ EnrichedMarkdownAccessibilityLabelsBlockquoteStruct blockquote{};
+ EnrichedMarkdownAccessibilityLabelsTableStruct table{};
+ EnrichedMarkdownAccessibilityLabelsMathStruct math{};
+ EnrichedMarkdownAccessibilityLabelsRotorStruct rotor{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownAccessibilityLabelsStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["list"] = ::facebook::react::toDynamic(list);
+ result["blockquote"] = ::facebook::react::toDynamic(blockquote);
+ result["table"] = ::facebook::react::toDynamic(table);
+ result["math"] = ::facebook::react::toDynamic(math);
+ result["rotor"] = ::facebook::react::toDynamic(rotor);
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownAccessibilityLabelsStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_list = map.find("list");
+ if (tmp_list != map.end()) {
+ fromRawValue(context, tmp_list->second, result.list);
+ }
+ auto tmp_blockquote = map.find("blockquote");
+ if (tmp_blockquote != map.end()) {
+ fromRawValue(context, tmp_blockquote->second, result.blockquote);
+ }
+ auto tmp_table = map.find("table");
+ if (tmp_table != map.end()) {
+ fromRawValue(context, tmp_table->second, result.table);
+ }
+ auto tmp_math = map.find("math");
+ if (tmp_math != map.end()) {
+ fromRawValue(context, tmp_math->second, result.math);
+ }
+ auto tmp_rotor = map.find("rotor");
+ if (tmp_rotor != map.end()) {
+ fromRawValue(context, tmp_rotor->second, result.rotor);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownAccessibilityLabelsStruct &value) {
+ return "[Object EnrichedMarkdownAccessibilityLabelsStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownAccessibilityLabelsStruct &value) {
+ return value.toDynamic();
+}
+#endif
+class EnrichedMarkdownProps final : public ViewProps {
+ public:
+ EnrichedMarkdownProps() = default;
+ EnrichedMarkdownProps(const PropsParserContext& context, const EnrichedMarkdownProps &sourceProps, const RawProps &rawProps);
+
+#pragma mark - Props
+
+ std::string markdown{};
+ EnrichedMarkdownMarkdownStyleStruct markdownStyle{};
+ bool enableImagePress{false};
+ bool enableTaskListItemToggle{true};
+ bool enableCodeBlockPress{false};
+ bool enableBlockContextMenu{true};
+ bool enableLinkPreview{true};
+ bool selectable{false};
+ SharedColor selectionColor{};
+ SharedColor selectionHandleColor{};
+ EnrichedMarkdownMd4cFlagsStruct md4cFlags{};
+ bool isGFM{true};
+ bool allowFontScaling{true};
+ Float maxFontSizeMultiplier{0.0};
+ bool allowTrailingMargin{false};
+ bool streamingAnimation{false};
+ EnrichedMarkdownStreamingConfigStruct streamingConfig{};
+ std::string spoilerOverlay{std::string{"particles"}};
+ std::vector contextMenuItems{};
+ std::vector imageRequestHeaders{};
+ std::vector linkPillContent{};
+ EnrichedMarkdownLinkRecognitionStruct linkRecognition{};
+ std::vector linkContextMenuItems{};
+ EnrichedMarkdownSelectionMenuConfigStruct selectionMenuConfig{};
+ EnrichedMarkdownAccessibilityLabelsStruct accessibilityLabels{};
+ std::string textBreakStrategy{std::string{"highQuality"}};
+ std::string lineBreakStrategyIOS{std::string{"none"}};
+ std::string writingDirection{std::string{"first-strong"}};
+ int numberOfLines{0};
+ std::string ellipsizeMode{std::string{"tail"}};
+
+ #ifdef RN_SERIALIZABLE_STATE
+ ComponentName getDiffPropsImplementationTarget() const override;
+
+ folly::dynamic getDiffProps(const Props* prevProps) const override;
+ #endif
+
+
+};
+
+struct EnrichedMarkdownTextInputMarkdownShortcutsStruct {
+ bool heading{false};
+ bool unorderedList{false};
+ bool orderedList{false};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownTextInputMarkdownShortcutsStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["heading"] = heading;
+ result["unorderedList"] = unorderedList;
+ result["orderedList"] = orderedList;
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextInputMarkdownShortcutsStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_heading = map.find("heading");
+ if (tmp_heading != map.end()) {
+ fromRawValue(context, tmp_heading->second, result.heading);
+ }
+ auto tmp_unorderedList = map.find("unorderedList");
+ if (tmp_unorderedList != map.end()) {
+ fromRawValue(context, tmp_unorderedList->second, result.unorderedList);
+ }
+ auto tmp_orderedList = map.find("orderedList");
+ if (tmp_orderedList != map.end()) {
+ fromRawValue(context, tmp_orderedList->second, result.orderedList);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownTextInputMarkdownShortcutsStruct &value) {
+ return "[Object EnrichedMarkdownTextInputMarkdownShortcutsStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownTextInputMarkdownShortcutsStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownTextInputMarkdownStyleStrongStruct {
+ SharedColor color{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownTextInputMarkdownStyleStrongStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["color"] = ::facebook::react::toDynamic(color);
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextInputMarkdownStyleStrongStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_color = map.find("color");
+ if (tmp_color != map.end()) {
+ fromRawValue(context, tmp_color->second, result.color);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownTextInputMarkdownStyleStrongStruct &value) {
+ return "[Object EnrichedMarkdownTextInputMarkdownStyleStrongStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownTextInputMarkdownStyleStrongStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownTextInputMarkdownStyleEmStruct {
+ SharedColor color{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownTextInputMarkdownStyleEmStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["color"] = ::facebook::react::toDynamic(color);
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextInputMarkdownStyleEmStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_color = map.find("color");
+ if (tmp_color != map.end()) {
+ fromRawValue(context, tmp_color->second, result.color);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownTextInputMarkdownStyleEmStruct &value) {
+ return "[Object EnrichedMarkdownTextInputMarkdownStyleEmStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownTextInputMarkdownStyleEmStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownTextInputMarkdownStyleLinkStruct {
+ SharedColor color{};
+ bool underline{false};
+ SharedColor backgroundColor{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownTextInputMarkdownStyleLinkStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["color"] = ::facebook::react::toDynamic(color);
+ result["underline"] = underline;
+ result["backgroundColor"] = ::facebook::react::toDynamic(backgroundColor);
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextInputMarkdownStyleLinkStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_color = map.find("color");
+ if (tmp_color != map.end()) {
+ fromRawValue(context, tmp_color->second, result.color);
+ }
+ auto tmp_underline = map.find("underline");
+ if (tmp_underline != map.end()) {
+ fromRawValue(context, tmp_underline->second, result.underline);
+ }
+ auto tmp_backgroundColor = map.find("backgroundColor");
+ if (tmp_backgroundColor != map.end()) {
+ fromRawValue(context, tmp_backgroundColor->second, result.backgroundColor);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownTextInputMarkdownStyleLinkStruct &value) {
+ return "[Object EnrichedMarkdownTextInputMarkdownStyleLinkStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownTextInputMarkdownStyleLinkStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownTextInputMarkdownStyleLinkVariantsStruct {
+ std::string pattern{};
+ SharedColor color{};
+ bool underline{false};
+ SharedColor backgroundColor{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownTextInputMarkdownStyleLinkVariantsStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["pattern"] = pattern;
+ result["color"] = ::facebook::react::toDynamic(color);
+ result["underline"] = underline;
+ result["backgroundColor"] = ::facebook::react::toDynamic(backgroundColor);
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextInputMarkdownStyleLinkVariantsStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_pattern = map.find("pattern");
+ if (tmp_pattern != map.end()) {
+ fromRawValue(context, tmp_pattern->second, result.pattern);
+ }
+ auto tmp_color = map.find("color");
+ if (tmp_color != map.end()) {
+ fromRawValue(context, tmp_color->second, result.color);
+ }
+ auto tmp_underline = map.find("underline");
+ if (tmp_underline != map.end()) {
+ fromRawValue(context, tmp_underline->second, result.underline);
+ }
+ auto tmp_backgroundColor = map.find("backgroundColor");
+ if (tmp_backgroundColor != map.end()) {
+ fromRawValue(context, tmp_backgroundColor->second, result.backgroundColor);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownTextInputMarkdownStyleLinkVariantsStruct &value) {
+ return "[Object EnrichedMarkdownTextInputMarkdownStyleLinkVariantsStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownTextInputMarkdownStyleLinkVariantsStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, std::vector &result) {
+ auto items = (std::vector)value;
+ for (const auto &item : items) {
+ EnrichedMarkdownTextInputMarkdownStyleLinkVariantsStruct newItem;
+ fromRawValue(context, item, newItem);
+ result.emplace_back(newItem);
+ }
+}
+
+
+struct EnrichedMarkdownTextInputMarkdownStyleSpoilerStruct {
+ SharedColor color{};
+ SharedColor backgroundColor{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownTextInputMarkdownStyleSpoilerStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["color"] = ::facebook::react::toDynamic(color);
+ result["backgroundColor"] = ::facebook::react::toDynamic(backgroundColor);
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextInputMarkdownStyleSpoilerStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_color = map.find("color");
+ if (tmp_color != map.end()) {
+ fromRawValue(context, tmp_color->second, result.color);
+ }
+ auto tmp_backgroundColor = map.find("backgroundColor");
+ if (tmp_backgroundColor != map.end()) {
+ fromRawValue(context, tmp_backgroundColor->second, result.backgroundColor);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownTextInputMarkdownStyleSpoilerStruct &value) {
+ return "[Object EnrichedMarkdownTextInputMarkdownStyleSpoilerStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownTextInputMarkdownStyleSpoilerStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownTextInputMarkdownStyleH1Struct {
+ Float fontSize{0.0};
+ std::string fontWeight{};
+ SharedColor color{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownTextInputMarkdownStyleH1Struct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["fontSize"] = fontSize;
+ result["fontWeight"] = fontWeight;
+ result["color"] = ::facebook::react::toDynamic(color);
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextInputMarkdownStyleH1Struct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_fontSize = map.find("fontSize");
+ if (tmp_fontSize != map.end()) {
+ fromRawValue(context, tmp_fontSize->second, result.fontSize);
+ }
+ auto tmp_fontWeight = map.find("fontWeight");
+ if (tmp_fontWeight != map.end()) {
+ fromRawValue(context, tmp_fontWeight->second, result.fontWeight);
+ }
+ auto tmp_color = map.find("color");
+ if (tmp_color != map.end()) {
+ fromRawValue(context, tmp_color->second, result.color);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownTextInputMarkdownStyleH1Struct &value) {
+ return "[Object EnrichedMarkdownTextInputMarkdownStyleH1Struct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownTextInputMarkdownStyleH1Struct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownTextInputMarkdownStyleH2Struct {
+ Float fontSize{0.0};
+ std::string fontWeight{};
+ SharedColor color{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownTextInputMarkdownStyleH2Struct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["fontSize"] = fontSize;
+ result["fontWeight"] = fontWeight;
+ result["color"] = ::facebook::react::toDynamic(color);
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextInputMarkdownStyleH2Struct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_fontSize = map.find("fontSize");
+ if (tmp_fontSize != map.end()) {
+ fromRawValue(context, tmp_fontSize->second, result.fontSize);
+ }
+ auto tmp_fontWeight = map.find("fontWeight");
+ if (tmp_fontWeight != map.end()) {
+ fromRawValue(context, tmp_fontWeight->second, result.fontWeight);
+ }
+ auto tmp_color = map.find("color");
+ if (tmp_color != map.end()) {
+ fromRawValue(context, tmp_color->second, result.color);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownTextInputMarkdownStyleH2Struct &value) {
+ return "[Object EnrichedMarkdownTextInputMarkdownStyleH2Struct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownTextInputMarkdownStyleH2Struct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownTextInputMarkdownStyleH3Struct {
+ Float fontSize{0.0};
+ std::string fontWeight{};
+ SharedColor color{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownTextInputMarkdownStyleH3Struct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["fontSize"] = fontSize;
+ result["fontWeight"] = fontWeight;
+ result["color"] = ::facebook::react::toDynamic(color);
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextInputMarkdownStyleH3Struct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_fontSize = map.find("fontSize");
+ if (tmp_fontSize != map.end()) {
+ fromRawValue(context, tmp_fontSize->second, result.fontSize);
+ }
+ auto tmp_fontWeight = map.find("fontWeight");
+ if (tmp_fontWeight != map.end()) {
+ fromRawValue(context, tmp_fontWeight->second, result.fontWeight);
+ }
+ auto tmp_color = map.find("color");
+ if (tmp_color != map.end()) {
+ fromRawValue(context, tmp_color->second, result.color);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownTextInputMarkdownStyleH3Struct &value) {
+ return "[Object EnrichedMarkdownTextInputMarkdownStyleH3Struct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownTextInputMarkdownStyleH3Struct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownTextInputMarkdownStyleH4Struct {
+ Float fontSize{0.0};
+ std::string fontWeight{};
+ SharedColor color{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownTextInputMarkdownStyleH4Struct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["fontSize"] = fontSize;
+ result["fontWeight"] = fontWeight;
+ result["color"] = ::facebook::react::toDynamic(color);
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextInputMarkdownStyleH4Struct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_fontSize = map.find("fontSize");
+ if (tmp_fontSize != map.end()) {
+ fromRawValue(context, tmp_fontSize->second, result.fontSize);
+ }
+ auto tmp_fontWeight = map.find("fontWeight");
+ if (tmp_fontWeight != map.end()) {
+ fromRawValue(context, tmp_fontWeight->second, result.fontWeight);
+ }
+ auto tmp_color = map.find("color");
+ if (tmp_color != map.end()) {
+ fromRawValue(context, tmp_color->second, result.color);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownTextInputMarkdownStyleH4Struct &value) {
+ return "[Object EnrichedMarkdownTextInputMarkdownStyleH4Struct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownTextInputMarkdownStyleH4Struct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownTextInputMarkdownStyleH5Struct {
+ Float fontSize{0.0};
+ std::string fontWeight{};
+ SharedColor color{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownTextInputMarkdownStyleH5Struct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["fontSize"] = fontSize;
+ result["fontWeight"] = fontWeight;
+ result["color"] = ::facebook::react::toDynamic(color);
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextInputMarkdownStyleH5Struct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_fontSize = map.find("fontSize");
+ if (tmp_fontSize != map.end()) {
+ fromRawValue(context, tmp_fontSize->second, result.fontSize);
+ }
+ auto tmp_fontWeight = map.find("fontWeight");
+ if (tmp_fontWeight != map.end()) {
+ fromRawValue(context, tmp_fontWeight->second, result.fontWeight);
+ }
+ auto tmp_color = map.find("color");
+ if (tmp_color != map.end()) {
+ fromRawValue(context, tmp_color->second, result.color);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownTextInputMarkdownStyleH5Struct &value) {
+ return "[Object EnrichedMarkdownTextInputMarkdownStyleH5Struct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownTextInputMarkdownStyleH5Struct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownTextInputMarkdownStyleH6Struct {
+ Float fontSize{0.0};
+ std::string fontWeight{};
+ SharedColor color{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownTextInputMarkdownStyleH6Struct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["fontSize"] = fontSize;
+ result["fontWeight"] = fontWeight;
+ result["color"] = ::facebook::react::toDynamic(color);
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextInputMarkdownStyleH6Struct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_fontSize = map.find("fontSize");
+ if (tmp_fontSize != map.end()) {
+ fromRawValue(context, tmp_fontSize->second, result.fontSize);
+ }
+ auto tmp_fontWeight = map.find("fontWeight");
+ if (tmp_fontWeight != map.end()) {
+ fromRawValue(context, tmp_fontWeight->second, result.fontWeight);
+ }
+ auto tmp_color = map.find("color");
+ if (tmp_color != map.end()) {
+ fromRawValue(context, tmp_color->second, result.color);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownTextInputMarkdownStyleH6Struct &value) {
+ return "[Object EnrichedMarkdownTextInputMarkdownStyleH6Struct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownTextInputMarkdownStyleH6Struct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownTextInputMarkdownStyleListStruct {
+ Float itemSpacing{0.0};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownTextInputMarkdownStyleListStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["itemSpacing"] = itemSpacing;
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextInputMarkdownStyleListStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_itemSpacing = map.find("itemSpacing");
+ if (tmp_itemSpacing != map.end()) {
+ fromRawValue(context, tmp_itemSpacing->second, result.itemSpacing);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownTextInputMarkdownStyleListStruct &value) {
+ return "[Object EnrichedMarkdownTextInputMarkdownStyleListStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownTextInputMarkdownStyleListStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownTextInputMarkdownStyleStruct {
+ EnrichedMarkdownTextInputMarkdownStyleStrongStruct strong{};
+ EnrichedMarkdownTextInputMarkdownStyleEmStruct em{};
+ EnrichedMarkdownTextInputMarkdownStyleLinkStruct link{};
+ std::vector linkVariants{};
+ EnrichedMarkdownTextInputMarkdownStyleSpoilerStruct spoiler{};
+ EnrichedMarkdownTextInputMarkdownStyleH1Struct h1{};
+ EnrichedMarkdownTextInputMarkdownStyleH2Struct h2{};
+ EnrichedMarkdownTextInputMarkdownStyleH3Struct h3{};
+ EnrichedMarkdownTextInputMarkdownStyleH4Struct h4{};
+ EnrichedMarkdownTextInputMarkdownStyleH5Struct h5{};
+ EnrichedMarkdownTextInputMarkdownStyleH6Struct h6{};
+ EnrichedMarkdownTextInputMarkdownStyleListStruct list{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownTextInputMarkdownStyleStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["strong"] = ::facebook::react::toDynamic(strong);
+ result["em"] = ::facebook::react::toDynamic(em);
+ result["link"] = ::facebook::react::toDynamic(link);
+ result["linkVariants"] = ::facebook::react::toDynamic(linkVariants);
+ result["spoiler"] = ::facebook::react::toDynamic(spoiler);
+ result["h1"] = ::facebook::react::toDynamic(h1);
+ result["h2"] = ::facebook::react::toDynamic(h2);
+ result["h3"] = ::facebook::react::toDynamic(h3);
+ result["h4"] = ::facebook::react::toDynamic(h4);
+ result["h5"] = ::facebook::react::toDynamic(h5);
+ result["h6"] = ::facebook::react::toDynamic(h6);
+ result["list"] = ::facebook::react::toDynamic(list);
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextInputMarkdownStyleStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_strong = map.find("strong");
+ if (tmp_strong != map.end()) {
+ fromRawValue(context, tmp_strong->second, result.strong);
+ }
+ auto tmp_em = map.find("em");
+ if (tmp_em != map.end()) {
+ fromRawValue(context, tmp_em->second, result.em);
+ }
+ auto tmp_link = map.find("link");
+ if (tmp_link != map.end()) {
+ fromRawValue(context, tmp_link->second, result.link);
+ }
+ auto tmp_linkVariants = map.find("linkVariants");
+ if (tmp_linkVariants != map.end()) {
+ fromRawValue(context, tmp_linkVariants->second, result.linkVariants);
+ }
+ auto tmp_spoiler = map.find("spoiler");
+ if (tmp_spoiler != map.end()) {
+ fromRawValue(context, tmp_spoiler->second, result.spoiler);
+ }
+ auto tmp_h1 = map.find("h1");
+ if (tmp_h1 != map.end()) {
+ fromRawValue(context, tmp_h1->second, result.h1);
+ }
+ auto tmp_h2 = map.find("h2");
+ if (tmp_h2 != map.end()) {
+ fromRawValue(context, tmp_h2->second, result.h2);
+ }
+ auto tmp_h3 = map.find("h3");
+ if (tmp_h3 != map.end()) {
+ fromRawValue(context, tmp_h3->second, result.h3);
+ }
+ auto tmp_h4 = map.find("h4");
+ if (tmp_h4 != map.end()) {
+ fromRawValue(context, tmp_h4->second, result.h4);
+ }
+ auto tmp_h5 = map.find("h5");
+ if (tmp_h5 != map.end()) {
+ fromRawValue(context, tmp_h5->second, result.h5);
+ }
+ auto tmp_h6 = map.find("h6");
+ if (tmp_h6 != map.end()) {
+ fromRawValue(context, tmp_h6->second, result.h6);
+ }
+ auto tmp_list = map.find("list");
+ if (tmp_list != map.end()) {
+ fromRawValue(context, tmp_list->second, result.list);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownTextInputMarkdownStyleStruct &value) {
+ return "[Object EnrichedMarkdownTextInputMarkdownStyleStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownTextInputMarkdownStyleStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownTextInputContextMenuItemsStruct {
+ std::string text{};
+ std::string icon{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownTextInputContextMenuItemsStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["text"] = text;
+ result["icon"] = icon;
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextInputContextMenuItemsStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_text = map.find("text");
+ if (tmp_text != map.end()) {
+ fromRawValue(context, tmp_text->second, result.text);
+ }
+ auto tmp_icon = map.find("icon");
+ if (tmp_icon != map.end()) {
+ fromRawValue(context, tmp_icon->second, result.icon);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownTextInputContextMenuItemsStruct &value) {
+ return "[Object EnrichedMarkdownTextInputContextMenuItemsStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownTextInputContextMenuItemsStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, std::vector &result) {
+ auto items = (std::vector)value;
+ for (const auto &item : items) {
+ EnrichedMarkdownTextInputContextMenuItemsStruct newItem;
+ fromRawValue(context, item, newItem);
+ result.emplace_back(newItem);
+ }
+}
+
+
+struct EnrichedMarkdownTextInputSelectionMenuConfigStruct {
+ bool format{false};
+ std::string formatLabel{};
+ bool copyAsMarkdown{false};
+ std::string copyAsMarkdownLabel{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownTextInputSelectionMenuConfigStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["format"] = format;
+ result["formatLabel"] = formatLabel;
+ result["copyAsMarkdown"] = copyAsMarkdown;
+ result["copyAsMarkdownLabel"] = copyAsMarkdownLabel;
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextInputSelectionMenuConfigStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_format = map.find("format");
+ if (tmp_format != map.end()) {
+ fromRawValue(context, tmp_format->second, result.format);
+ }
+ auto tmp_formatLabel = map.find("formatLabel");
+ if (tmp_formatLabel != map.end()) {
+ fromRawValue(context, tmp_formatLabel->second, result.formatLabel);
+ }
+ auto tmp_copyAsMarkdown = map.find("copyAsMarkdown");
+ if (tmp_copyAsMarkdown != map.end()) {
+ fromRawValue(context, tmp_copyAsMarkdown->second, result.copyAsMarkdown);
+ }
+ auto tmp_copyAsMarkdownLabel = map.find("copyAsMarkdownLabel");
+ if (tmp_copyAsMarkdownLabel != map.end()) {
+ fromRawValue(context, tmp_copyAsMarkdownLabel->second, result.copyAsMarkdownLabel);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownTextInputSelectionMenuConfigStruct &value) {
+ return "[Object EnrichedMarkdownTextInputSelectionMenuConfigStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownTextInputSelectionMenuConfigStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownTextInputFormatMenuConfigStruct {
+ bool bold{false};
+ std::string boldLabel{};
+ bool italic{false};
+ std::string italicLabel{};
+ bool underline{false};
+ std::string underlineLabel{};
+ bool strikethrough{false};
+ std::string strikethroughLabel{};
+ bool spoiler{false};
+ std::string spoilerLabel{};
+ bool link{false};
+ std::string linkLabel{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownTextInputFormatMenuConfigStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["bold"] = bold;
+ result["boldLabel"] = boldLabel;
+ result["italic"] = italic;
+ result["italicLabel"] = italicLabel;
+ result["underline"] = underline;
+ result["underlineLabel"] = underlineLabel;
+ result["strikethrough"] = strikethrough;
+ result["strikethroughLabel"] = strikethroughLabel;
+ result["spoiler"] = spoiler;
+ result["spoilerLabel"] = spoilerLabel;
+ result["link"] = link;
+ result["linkLabel"] = linkLabel;
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextInputFormatMenuConfigStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_bold = map.find("bold");
+ if (tmp_bold != map.end()) {
+ fromRawValue(context, tmp_bold->second, result.bold);
+ }
+ auto tmp_boldLabel = map.find("boldLabel");
+ if (tmp_boldLabel != map.end()) {
+ fromRawValue(context, tmp_boldLabel->second, result.boldLabel);
+ }
+ auto tmp_italic = map.find("italic");
+ if (tmp_italic != map.end()) {
+ fromRawValue(context, tmp_italic->second, result.italic);
+ }
+ auto tmp_italicLabel = map.find("italicLabel");
+ if (tmp_italicLabel != map.end()) {
+ fromRawValue(context, tmp_italicLabel->second, result.italicLabel);
+ }
+ auto tmp_underline = map.find("underline");
+ if (tmp_underline != map.end()) {
+ fromRawValue(context, tmp_underline->second, result.underline);
+ }
+ auto tmp_underlineLabel = map.find("underlineLabel");
+ if (tmp_underlineLabel != map.end()) {
+ fromRawValue(context, tmp_underlineLabel->second, result.underlineLabel);
+ }
+ auto tmp_strikethrough = map.find("strikethrough");
+ if (tmp_strikethrough != map.end()) {
+ fromRawValue(context, tmp_strikethrough->second, result.strikethrough);
+ }
+ auto tmp_strikethroughLabel = map.find("strikethroughLabel");
+ if (tmp_strikethroughLabel != map.end()) {
+ fromRawValue(context, tmp_strikethroughLabel->second, result.strikethroughLabel);
+ }
+ auto tmp_spoiler = map.find("spoiler");
+ if (tmp_spoiler != map.end()) {
+ fromRawValue(context, tmp_spoiler->second, result.spoiler);
+ }
+ auto tmp_spoilerLabel = map.find("spoilerLabel");
+ if (tmp_spoilerLabel != map.end()) {
+ fromRawValue(context, tmp_spoilerLabel->second, result.spoilerLabel);
+ }
+ auto tmp_link = map.find("link");
+ if (tmp_link != map.end()) {
+ fromRawValue(context, tmp_link->second, result.link);
+ }
+ auto tmp_linkLabel = map.find("linkLabel");
+ if (tmp_linkLabel != map.end()) {
+ fromRawValue(context, tmp_linkLabel->second, result.linkLabel);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownTextInputFormatMenuConfigStruct &value) {
+ return "[Object EnrichedMarkdownTextInputFormatMenuConfigStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownTextInputFormatMenuConfigStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownTextInputLinkRegexStruct {
+ std::string pattern{};
+ bool caseInsensitive{false};
+ bool dotAll{false};
+ bool isDisabled{false};
+ bool isDefault{false};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownTextInputLinkRegexStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["pattern"] = pattern;
+ result["caseInsensitive"] = caseInsensitive;
+ result["dotAll"] = dotAll;
+ result["isDisabled"] = isDisabled;
+ result["isDefault"] = isDefault;
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextInputLinkRegexStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_pattern = map.find("pattern");
+ if (tmp_pattern != map.end()) {
+ fromRawValue(context, tmp_pattern->second, result.pattern);
+ }
+ auto tmp_caseInsensitive = map.find("caseInsensitive");
+ if (tmp_caseInsensitive != map.end()) {
+ fromRawValue(context, tmp_caseInsensitive->second, result.caseInsensitive);
+ }
+ auto tmp_dotAll = map.find("dotAll");
+ if (tmp_dotAll != map.end()) {
+ fromRawValue(context, tmp_dotAll->second, result.dotAll);
+ }
+ auto tmp_isDisabled = map.find("isDisabled");
+ if (tmp_isDisabled != map.end()) {
+ fromRawValue(context, tmp_isDisabled->second, result.isDisabled);
+ }
+ auto tmp_isDefault = map.find("isDefault");
+ if (tmp_isDefault != map.end()) {
+ fromRawValue(context, tmp_isDefault->second, result.isDefault);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownTextInputLinkRegexStruct &value) {
+ return "[Object EnrichedMarkdownTextInputLinkRegexStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownTextInputLinkRegexStruct &value) {
+ return value.toDynamic();
+}
+#endif
+class EnrichedMarkdownTextInputProps final : public ViewProps {
+ public:
+ EnrichedMarkdownTextInputProps() = default;
+ EnrichedMarkdownTextInputProps(const PropsParserContext& context, const EnrichedMarkdownTextInputProps &sourceProps, const RawProps &rawProps);
+
+#pragma mark - Props
+
+ std::string defaultValue{};
+ std::string placeholder{};
+ SharedColor placeholderTextColor{};
+ bool editable{false};
+ bool autoFocus{false};
+ bool scrollEnabled{false};
+ EnrichedMarkdownTextInputMarkdownShortcutsStruct markdownShortcuts{};
+ std::string autoCapitalize{};
+ bool multiline{false};
+ SharedColor cursorColor{};
+ SharedColor selectionColor{};
+ EnrichedMarkdownTextInputMarkdownStyleStruct markdownStyle{};
+ SharedColor color{};
+ Float fontSize{0.0};
+ Float lineHeight{0.0};
+ std::string fontFamily{};
+ std::string fontWeight{};
+ bool isOnChangeMarkdownSet{false};
+ std::vector contextMenuItems{};
+ EnrichedMarkdownTextInputSelectionMenuConfigStruct selectionMenuConfig{};
+ EnrichedMarkdownTextInputFormatMenuConfigStruct formatMenuConfig{};
+ EnrichedMarkdownTextInputLinkRegexStruct linkRegex{};
+ std::vector mentionIndicators{};
+ std::string writingDirection{std::string{"first-strong"}};
+
+ #ifdef RN_SERIALIZABLE_STATE
+ ComponentName getDiffPropsImplementationTarget() const override;
+
+ folly::dynamic getDiffProps(const Props* prevProps) const override;
+ #endif
+
+
+};
+
+struct EnrichedMarkdownTextMarkdownStyleParagraphStruct {
+ Float fontSize{0.0};
+ std::string fontFamily{};
+ std::string fontWeight{};
+ SharedColor color{};
+ Float marginTop{0.0};
+ Float marginBottom{0.0};
+ Float lineHeight{0.0};
+ std::string textAlign{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownTextMarkdownStyleParagraphStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["fontSize"] = fontSize;
+ result["fontFamily"] = fontFamily;
+ result["fontWeight"] = fontWeight;
+ result["color"] = ::facebook::react::toDynamic(color);
+ result["marginTop"] = marginTop;
+ result["marginBottom"] = marginBottom;
+ result["lineHeight"] = lineHeight;
+ result["textAlign"] = textAlign;
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleParagraphStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_fontSize = map.find("fontSize");
+ if (tmp_fontSize != map.end()) {
+ fromRawValue(context, tmp_fontSize->second, result.fontSize);
+ }
+ auto tmp_fontFamily = map.find("fontFamily");
+ if (tmp_fontFamily != map.end()) {
+ fromRawValue(context, tmp_fontFamily->second, result.fontFamily);
+ }
+ auto tmp_fontWeight = map.find("fontWeight");
+ if (tmp_fontWeight != map.end()) {
+ fromRawValue(context, tmp_fontWeight->second, result.fontWeight);
+ }
+ auto tmp_color = map.find("color");
+ if (tmp_color != map.end()) {
+ fromRawValue(context, tmp_color->second, result.color);
+ }
+ auto tmp_marginTop = map.find("marginTop");
+ if (tmp_marginTop != map.end()) {
+ fromRawValue(context, tmp_marginTop->second, result.marginTop);
+ }
+ auto tmp_marginBottom = map.find("marginBottom");
+ if (tmp_marginBottom != map.end()) {
+ fromRawValue(context, tmp_marginBottom->second, result.marginBottom);
+ }
+ auto tmp_lineHeight = map.find("lineHeight");
+ if (tmp_lineHeight != map.end()) {
+ fromRawValue(context, tmp_lineHeight->second, result.lineHeight);
+ }
+ auto tmp_textAlign = map.find("textAlign");
+ if (tmp_textAlign != map.end()) {
+ fromRawValue(context, tmp_textAlign->second, result.textAlign);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleParagraphStruct &value) {
+ return "[Object EnrichedMarkdownTextMarkdownStyleParagraphStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleParagraphStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownTextMarkdownStyleH1Struct {
+ Float fontSize{0.0};
+ std::string fontFamily{};
+ std::string fontWeight{};
+ SharedColor color{};
+ Float marginTop{0.0};
+ Float marginBottom{0.0};
+ Float lineHeight{0.0};
+ std::string textAlign{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownTextMarkdownStyleH1Struct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["fontSize"] = fontSize;
+ result["fontFamily"] = fontFamily;
+ result["fontWeight"] = fontWeight;
+ result["color"] = ::facebook::react::toDynamic(color);
+ result["marginTop"] = marginTop;
+ result["marginBottom"] = marginBottom;
+ result["lineHeight"] = lineHeight;
+ result["textAlign"] = textAlign;
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleH1Struct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_fontSize = map.find("fontSize");
+ if (tmp_fontSize != map.end()) {
+ fromRawValue(context, tmp_fontSize->second, result.fontSize);
+ }
+ auto tmp_fontFamily = map.find("fontFamily");
+ if (tmp_fontFamily != map.end()) {
+ fromRawValue(context, tmp_fontFamily->second, result.fontFamily);
+ }
+ auto tmp_fontWeight = map.find("fontWeight");
+ if (tmp_fontWeight != map.end()) {
+ fromRawValue(context, tmp_fontWeight->second, result.fontWeight);
+ }
+ auto tmp_color = map.find("color");
+ if (tmp_color != map.end()) {
+ fromRawValue(context, tmp_color->second, result.color);
+ }
+ auto tmp_marginTop = map.find("marginTop");
+ if (tmp_marginTop != map.end()) {
+ fromRawValue(context, tmp_marginTop->second, result.marginTop);
+ }
+ auto tmp_marginBottom = map.find("marginBottom");
+ if (tmp_marginBottom != map.end()) {
+ fromRawValue(context, tmp_marginBottom->second, result.marginBottom);
+ }
+ auto tmp_lineHeight = map.find("lineHeight");
+ if (tmp_lineHeight != map.end()) {
+ fromRawValue(context, tmp_lineHeight->second, result.lineHeight);
+ }
+ auto tmp_textAlign = map.find("textAlign");
+ if (tmp_textAlign != map.end()) {
+ fromRawValue(context, tmp_textAlign->second, result.textAlign);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleH1Struct &value) {
+ return "[Object EnrichedMarkdownTextMarkdownStyleH1Struct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleH1Struct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownTextMarkdownStyleH2Struct {
+ Float fontSize{0.0};
+ std::string fontFamily{};
+ std::string fontWeight{};
+ SharedColor color{};
+ Float marginTop{0.0};
+ Float marginBottom{0.0};
+ Float lineHeight{0.0};
+ std::string textAlign{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownTextMarkdownStyleH2Struct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["fontSize"] = fontSize;
+ result["fontFamily"] = fontFamily;
+ result["fontWeight"] = fontWeight;
+ result["color"] = ::facebook::react::toDynamic(color);
+ result["marginTop"] = marginTop;
+ result["marginBottom"] = marginBottom;
+ result["lineHeight"] = lineHeight;
+ result["textAlign"] = textAlign;
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleH2Struct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_fontSize = map.find("fontSize");
+ if (tmp_fontSize != map.end()) {
+ fromRawValue(context, tmp_fontSize->second, result.fontSize);
+ }
+ auto tmp_fontFamily = map.find("fontFamily");
+ if (tmp_fontFamily != map.end()) {
+ fromRawValue(context, tmp_fontFamily->second, result.fontFamily);
+ }
+ auto tmp_fontWeight = map.find("fontWeight");
+ if (tmp_fontWeight != map.end()) {
+ fromRawValue(context, tmp_fontWeight->second, result.fontWeight);
+ }
+ auto tmp_color = map.find("color");
+ if (tmp_color != map.end()) {
+ fromRawValue(context, tmp_color->second, result.color);
+ }
+ auto tmp_marginTop = map.find("marginTop");
+ if (tmp_marginTop != map.end()) {
+ fromRawValue(context, tmp_marginTop->second, result.marginTop);
+ }
+ auto tmp_marginBottom = map.find("marginBottom");
+ if (tmp_marginBottom != map.end()) {
+ fromRawValue(context, tmp_marginBottom->second, result.marginBottom);
+ }
+ auto tmp_lineHeight = map.find("lineHeight");
+ if (tmp_lineHeight != map.end()) {
+ fromRawValue(context, tmp_lineHeight->second, result.lineHeight);
+ }
+ auto tmp_textAlign = map.find("textAlign");
+ if (tmp_textAlign != map.end()) {
+ fromRawValue(context, tmp_textAlign->second, result.textAlign);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleH2Struct &value) {
+ return "[Object EnrichedMarkdownTextMarkdownStyleH2Struct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleH2Struct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownTextMarkdownStyleH3Struct {
+ Float fontSize{0.0};
+ std::string fontFamily{};
+ std::string fontWeight{};
+ SharedColor color{};
+ Float marginTop{0.0};
+ Float marginBottom{0.0};
+ Float lineHeight{0.0};
+ std::string textAlign{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownTextMarkdownStyleH3Struct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["fontSize"] = fontSize;
+ result["fontFamily"] = fontFamily;
+ result["fontWeight"] = fontWeight;
+ result["color"] = ::facebook::react::toDynamic(color);
+ result["marginTop"] = marginTop;
+ result["marginBottom"] = marginBottom;
+ result["lineHeight"] = lineHeight;
+ result["textAlign"] = textAlign;
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleH3Struct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_fontSize = map.find("fontSize");
+ if (tmp_fontSize != map.end()) {
+ fromRawValue(context, tmp_fontSize->second, result.fontSize);
+ }
+ auto tmp_fontFamily = map.find("fontFamily");
+ if (tmp_fontFamily != map.end()) {
+ fromRawValue(context, tmp_fontFamily->second, result.fontFamily);
+ }
+ auto tmp_fontWeight = map.find("fontWeight");
+ if (tmp_fontWeight != map.end()) {
+ fromRawValue(context, tmp_fontWeight->second, result.fontWeight);
+ }
+ auto tmp_color = map.find("color");
+ if (tmp_color != map.end()) {
+ fromRawValue(context, tmp_color->second, result.color);
+ }
+ auto tmp_marginTop = map.find("marginTop");
+ if (tmp_marginTop != map.end()) {
+ fromRawValue(context, tmp_marginTop->second, result.marginTop);
+ }
+ auto tmp_marginBottom = map.find("marginBottom");
+ if (tmp_marginBottom != map.end()) {
+ fromRawValue(context, tmp_marginBottom->second, result.marginBottom);
+ }
+ auto tmp_lineHeight = map.find("lineHeight");
+ if (tmp_lineHeight != map.end()) {
+ fromRawValue(context, tmp_lineHeight->second, result.lineHeight);
+ }
+ auto tmp_textAlign = map.find("textAlign");
+ if (tmp_textAlign != map.end()) {
+ fromRawValue(context, tmp_textAlign->second, result.textAlign);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleH3Struct &value) {
+ return "[Object EnrichedMarkdownTextMarkdownStyleH3Struct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleH3Struct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownTextMarkdownStyleH4Struct {
+ Float fontSize{0.0};
+ std::string fontFamily{};
+ std::string fontWeight{};
+ SharedColor color{};
+ Float marginTop{0.0};
+ Float marginBottom{0.0};
+ Float lineHeight{0.0};
+ std::string textAlign{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownTextMarkdownStyleH4Struct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["fontSize"] = fontSize;
+ result["fontFamily"] = fontFamily;
+ result["fontWeight"] = fontWeight;
+ result["color"] = ::facebook::react::toDynamic(color);
+ result["marginTop"] = marginTop;
+ result["marginBottom"] = marginBottom;
+ result["lineHeight"] = lineHeight;
+ result["textAlign"] = textAlign;
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleH4Struct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_fontSize = map.find("fontSize");
+ if (tmp_fontSize != map.end()) {
+ fromRawValue(context, tmp_fontSize->second, result.fontSize);
+ }
+ auto tmp_fontFamily = map.find("fontFamily");
+ if (tmp_fontFamily != map.end()) {
+ fromRawValue(context, tmp_fontFamily->second, result.fontFamily);
+ }
+ auto tmp_fontWeight = map.find("fontWeight");
+ if (tmp_fontWeight != map.end()) {
+ fromRawValue(context, tmp_fontWeight->second, result.fontWeight);
+ }
+ auto tmp_color = map.find("color");
+ if (tmp_color != map.end()) {
+ fromRawValue(context, tmp_color->second, result.color);
+ }
+ auto tmp_marginTop = map.find("marginTop");
+ if (tmp_marginTop != map.end()) {
+ fromRawValue(context, tmp_marginTop->second, result.marginTop);
+ }
+ auto tmp_marginBottom = map.find("marginBottom");
+ if (tmp_marginBottom != map.end()) {
+ fromRawValue(context, tmp_marginBottom->second, result.marginBottom);
+ }
+ auto tmp_lineHeight = map.find("lineHeight");
+ if (tmp_lineHeight != map.end()) {
+ fromRawValue(context, tmp_lineHeight->second, result.lineHeight);
+ }
+ auto tmp_textAlign = map.find("textAlign");
+ if (tmp_textAlign != map.end()) {
+ fromRawValue(context, tmp_textAlign->second, result.textAlign);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleH4Struct &value) {
+ return "[Object EnrichedMarkdownTextMarkdownStyleH4Struct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleH4Struct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownTextMarkdownStyleH5Struct {
+ Float fontSize{0.0};
+ std::string fontFamily{};
+ std::string fontWeight{};
+ SharedColor color{};
+ Float marginTop{0.0};
+ Float marginBottom{0.0};
+ Float lineHeight{0.0};
+ std::string textAlign{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownTextMarkdownStyleH5Struct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["fontSize"] = fontSize;
+ result["fontFamily"] = fontFamily;
+ result["fontWeight"] = fontWeight;
+ result["color"] = ::facebook::react::toDynamic(color);
+ result["marginTop"] = marginTop;
+ result["marginBottom"] = marginBottom;
+ result["lineHeight"] = lineHeight;
+ result["textAlign"] = textAlign;
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleH5Struct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_fontSize = map.find("fontSize");
+ if (tmp_fontSize != map.end()) {
+ fromRawValue(context, tmp_fontSize->second, result.fontSize);
+ }
+ auto tmp_fontFamily = map.find("fontFamily");
+ if (tmp_fontFamily != map.end()) {
+ fromRawValue(context, tmp_fontFamily->second, result.fontFamily);
+ }
+ auto tmp_fontWeight = map.find("fontWeight");
+ if (tmp_fontWeight != map.end()) {
+ fromRawValue(context, tmp_fontWeight->second, result.fontWeight);
+ }
+ auto tmp_color = map.find("color");
+ if (tmp_color != map.end()) {
+ fromRawValue(context, tmp_color->second, result.color);
+ }
+ auto tmp_marginTop = map.find("marginTop");
+ if (tmp_marginTop != map.end()) {
+ fromRawValue(context, tmp_marginTop->second, result.marginTop);
+ }
+ auto tmp_marginBottom = map.find("marginBottom");
+ if (tmp_marginBottom != map.end()) {
+ fromRawValue(context, tmp_marginBottom->second, result.marginBottom);
+ }
+ auto tmp_lineHeight = map.find("lineHeight");
+ if (tmp_lineHeight != map.end()) {
+ fromRawValue(context, tmp_lineHeight->second, result.lineHeight);
+ }
+ auto tmp_textAlign = map.find("textAlign");
+ if (tmp_textAlign != map.end()) {
+ fromRawValue(context, tmp_textAlign->second, result.textAlign);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleH5Struct &value) {
+ return "[Object EnrichedMarkdownTextMarkdownStyleH5Struct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleH5Struct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownTextMarkdownStyleH6Struct {
+ Float fontSize{0.0};
+ std::string fontFamily{};
+ std::string fontWeight{};
+ SharedColor color{};
+ Float marginTop{0.0};
+ Float marginBottom{0.0};
+ Float lineHeight{0.0};
+ std::string textAlign{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownTextMarkdownStyleH6Struct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["fontSize"] = fontSize;
+ result["fontFamily"] = fontFamily;
+ result["fontWeight"] = fontWeight;
+ result["color"] = ::facebook::react::toDynamic(color);
+ result["marginTop"] = marginTop;
+ result["marginBottom"] = marginBottom;
+ result["lineHeight"] = lineHeight;
+ result["textAlign"] = textAlign;
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleH6Struct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_fontSize = map.find("fontSize");
+ if (tmp_fontSize != map.end()) {
+ fromRawValue(context, tmp_fontSize->second, result.fontSize);
+ }
+ auto tmp_fontFamily = map.find("fontFamily");
+ if (tmp_fontFamily != map.end()) {
+ fromRawValue(context, tmp_fontFamily->second, result.fontFamily);
+ }
+ auto tmp_fontWeight = map.find("fontWeight");
+ if (tmp_fontWeight != map.end()) {
+ fromRawValue(context, tmp_fontWeight->second, result.fontWeight);
+ }
+ auto tmp_color = map.find("color");
+ if (tmp_color != map.end()) {
+ fromRawValue(context, tmp_color->second, result.color);
+ }
+ auto tmp_marginTop = map.find("marginTop");
+ if (tmp_marginTop != map.end()) {
+ fromRawValue(context, tmp_marginTop->second, result.marginTop);
+ }
+ auto tmp_marginBottom = map.find("marginBottom");
+ if (tmp_marginBottom != map.end()) {
+ fromRawValue(context, tmp_marginBottom->second, result.marginBottom);
+ }
+ auto tmp_lineHeight = map.find("lineHeight");
+ if (tmp_lineHeight != map.end()) {
+ fromRawValue(context, tmp_lineHeight->second, result.lineHeight);
+ }
+ auto tmp_textAlign = map.find("textAlign");
+ if (tmp_textAlign != map.end()) {
+ fromRawValue(context, tmp_textAlign->second, result.textAlign);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleH6Struct &value) {
+ return "[Object EnrichedMarkdownTextMarkdownStyleH6Struct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleH6Struct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsNoteStruct {
+ SharedColor color{};
+ SharedColor backgroundColor{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsNoteStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["color"] = ::facebook::react::toDynamic(color);
+ result["backgroundColor"] = ::facebook::react::toDynamic(backgroundColor);
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsNoteStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_color = map.find("color");
+ if (tmp_color != map.end()) {
+ fromRawValue(context, tmp_color->second, result.color);
+ }
+ auto tmp_backgroundColor = map.find("backgroundColor");
+ if (tmp_backgroundColor != map.end()) {
+ fromRawValue(context, tmp_backgroundColor->second, result.backgroundColor);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsNoteStruct &value) {
+ return "[Object EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsNoteStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsNoteStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsTipStruct {
+ SharedColor color{};
+ SharedColor backgroundColor{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsTipStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["color"] = ::facebook::react::toDynamic(color);
+ result["backgroundColor"] = ::facebook::react::toDynamic(backgroundColor);
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsTipStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_color = map.find("color");
+ if (tmp_color != map.end()) {
+ fromRawValue(context, tmp_color->second, result.color);
+ }
+ auto tmp_backgroundColor = map.find("backgroundColor");
+ if (tmp_backgroundColor != map.end()) {
+ fromRawValue(context, tmp_backgroundColor->second, result.backgroundColor);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsTipStruct &value) {
+ return "[Object EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsTipStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsTipStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsImportantStruct {
+ SharedColor color{};
+ SharedColor backgroundColor{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsImportantStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["color"] = ::facebook::react::toDynamic(color);
+ result["backgroundColor"] = ::facebook::react::toDynamic(backgroundColor);
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsImportantStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_color = map.find("color");
+ if (tmp_color != map.end()) {
+ fromRawValue(context, tmp_color->second, result.color);
+ }
+ auto tmp_backgroundColor = map.find("backgroundColor");
+ if (tmp_backgroundColor != map.end()) {
+ fromRawValue(context, tmp_backgroundColor->second, result.backgroundColor);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsImportantStruct &value) {
+ return "[Object EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsImportantStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsImportantStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsWarningStruct {
+ SharedColor color{};
+ SharedColor backgroundColor{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsWarningStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["color"] = ::facebook::react::toDynamic(color);
+ result["backgroundColor"] = ::facebook::react::toDynamic(backgroundColor);
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsWarningStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_color = map.find("color");
+ if (tmp_color != map.end()) {
+ fromRawValue(context, tmp_color->second, result.color);
+ }
+ auto tmp_backgroundColor = map.find("backgroundColor");
+ if (tmp_backgroundColor != map.end()) {
+ fromRawValue(context, tmp_backgroundColor->second, result.backgroundColor);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsWarningStruct &value) {
+ return "[Object EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsWarningStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsWarningStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsCautionStruct {
+ SharedColor color{};
+ SharedColor backgroundColor{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsCautionStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["color"] = ::facebook::react::toDynamic(color);
+ result["backgroundColor"] = ::facebook::react::toDynamic(backgroundColor);
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsCautionStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_color = map.find("color");
+ if (tmp_color != map.end()) {
+ fromRawValue(context, tmp_color->second, result.color);
+ }
+ auto tmp_backgroundColor = map.find("backgroundColor");
+ if (tmp_backgroundColor != map.end()) {
+ fromRawValue(context, tmp_backgroundColor->second, result.backgroundColor);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsCautionStruct &value) {
+ return "[Object EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsCautionStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsCautionStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsStruct {
+ EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsNoteStruct note{};
+ EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsTipStruct tip{};
+ EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsImportantStruct important{};
+ EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsWarningStruct warning{};
+ EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsCautionStruct caution{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["note"] = ::facebook::react::toDynamic(note);
+ result["tip"] = ::facebook::react::toDynamic(tip);
+ result["important"] = ::facebook::react::toDynamic(important);
+ result["warning"] = ::facebook::react::toDynamic(warning);
+ result["caution"] = ::facebook::react::toDynamic(caution);
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_note = map.find("note");
+ if (tmp_note != map.end()) {
+ fromRawValue(context, tmp_note->second, result.note);
+ }
+ auto tmp_tip = map.find("tip");
+ if (tmp_tip != map.end()) {
+ fromRawValue(context, tmp_tip->second, result.tip);
+ }
+ auto tmp_important = map.find("important");
+ if (tmp_important != map.end()) {
+ fromRawValue(context, tmp_important->second, result.important);
+ }
+ auto tmp_warning = map.find("warning");
+ if (tmp_warning != map.end()) {
+ fromRawValue(context, tmp_warning->second, result.warning);
+ }
+ auto tmp_caution = map.find("caution");
+ if (tmp_caution != map.end()) {
+ fromRawValue(context, tmp_caution->second, result.caution);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsStruct &value) {
+ return "[Object EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownTextMarkdownStyleBlockquoteStruct {
+ Float fontSize{0.0};
+ std::string fontFamily{};
+ std::string fontWeight{};
+ SharedColor color{};
+ Float marginTop{0.0};
+ Float marginBottom{0.0};
+ Float lineHeight{0.0};
+ SharedColor borderColor{};
+ Float borderWidth{0.0};
+ Float gapWidth{0.0};
+ SharedColor backgroundColor{};
+ Float borderRadius{0.0};
+ Float padding{0.0};
+ EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsStruct admonitions{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownTextMarkdownStyleBlockquoteStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["fontSize"] = fontSize;
+ result["fontFamily"] = fontFamily;
+ result["fontWeight"] = fontWeight;
+ result["color"] = ::facebook::react::toDynamic(color);
+ result["marginTop"] = marginTop;
+ result["marginBottom"] = marginBottom;
+ result["lineHeight"] = lineHeight;
+ result["borderColor"] = ::facebook::react::toDynamic(borderColor);
+ result["borderWidth"] = borderWidth;
+ result["gapWidth"] = gapWidth;
+ result["backgroundColor"] = ::facebook::react::toDynamic(backgroundColor);
+ result["borderRadius"] = borderRadius;
+ result["padding"] = padding;
+ result["admonitions"] = ::facebook::react::toDynamic(admonitions);
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleBlockquoteStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_fontSize = map.find("fontSize");
+ if (tmp_fontSize != map.end()) {
+ fromRawValue(context, tmp_fontSize->second, result.fontSize);
+ }
+ auto tmp_fontFamily = map.find("fontFamily");
+ if (tmp_fontFamily != map.end()) {
+ fromRawValue(context, tmp_fontFamily->second, result.fontFamily);
+ }
+ auto tmp_fontWeight = map.find("fontWeight");
+ if (tmp_fontWeight != map.end()) {
+ fromRawValue(context, tmp_fontWeight->second, result.fontWeight);
+ }
+ auto tmp_color = map.find("color");
+ if (tmp_color != map.end()) {
+ fromRawValue(context, tmp_color->second, result.color);
+ }
+ auto tmp_marginTop = map.find("marginTop");
+ if (tmp_marginTop != map.end()) {
+ fromRawValue(context, tmp_marginTop->second, result.marginTop);
+ }
+ auto tmp_marginBottom = map.find("marginBottom");
+ if (tmp_marginBottom != map.end()) {
+ fromRawValue(context, tmp_marginBottom->second, result.marginBottom);
+ }
+ auto tmp_lineHeight = map.find("lineHeight");
+ if (tmp_lineHeight != map.end()) {
+ fromRawValue(context, tmp_lineHeight->second, result.lineHeight);
+ }
+ auto tmp_borderColor = map.find("borderColor");
+ if (tmp_borderColor != map.end()) {
+ fromRawValue(context, tmp_borderColor->second, result.borderColor);
+ }
+ auto tmp_borderWidth = map.find("borderWidth");
+ if (tmp_borderWidth != map.end()) {
+ fromRawValue(context, tmp_borderWidth->second, result.borderWidth);
+ }
+ auto tmp_gapWidth = map.find("gapWidth");
+ if (tmp_gapWidth != map.end()) {
+ fromRawValue(context, tmp_gapWidth->second, result.gapWidth);
+ }
+ auto tmp_backgroundColor = map.find("backgroundColor");
+ if (tmp_backgroundColor != map.end()) {
+ fromRawValue(context, tmp_backgroundColor->second, result.backgroundColor);
+ }
+ auto tmp_borderRadius = map.find("borderRadius");
+ if (tmp_borderRadius != map.end()) {
+ fromRawValue(context, tmp_borderRadius->second, result.borderRadius);
+ }
+ auto tmp_padding = map.find("padding");
+ if (tmp_padding != map.end()) {
+ fromRawValue(context, tmp_padding->second, result.padding);
+ }
+ auto tmp_admonitions = map.find("admonitions");
+ if (tmp_admonitions != map.end()) {
+ fromRawValue(context, tmp_admonitions->second, result.admonitions);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleBlockquoteStruct &value) {
+ return "[Object EnrichedMarkdownTextMarkdownStyleBlockquoteStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleBlockquoteStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownTextMarkdownStyleListStruct {
+ Float fontSize{0.0};
+ std::string fontFamily{};
+ std::string fontWeight{};
+ SharedColor color{};
+ Float marginTop{0.0};
+ Float marginBottom{0.0};
+ Float lineHeight{0.0};
+ SharedColor bulletColor{};
+ Float bulletSize{0.0};
+ Float markerMinWidth{0.0};
+ SharedColor markerColor{};
+ std::string markerFontWeight{};
+ Float gapWidth{0.0};
+ Float marginLeft{0.0};
+ Float itemSpacing{0.0};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownTextMarkdownStyleListStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["fontSize"] = fontSize;
+ result["fontFamily"] = fontFamily;
+ result["fontWeight"] = fontWeight;
+ result["color"] = ::facebook::react::toDynamic(color);
+ result["marginTop"] = marginTop;
+ result["marginBottom"] = marginBottom;
+ result["lineHeight"] = lineHeight;
+ result["bulletColor"] = ::facebook::react::toDynamic(bulletColor);
+ result["bulletSize"] = bulletSize;
+ result["markerMinWidth"] = markerMinWidth;
+ result["markerColor"] = ::facebook::react::toDynamic(markerColor);
+ result["markerFontWeight"] = markerFontWeight;
+ result["gapWidth"] = gapWidth;
+ result["marginLeft"] = marginLeft;
+ result["itemSpacing"] = itemSpacing;
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleListStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_fontSize = map.find("fontSize");
+ if (tmp_fontSize != map.end()) {
+ fromRawValue(context, tmp_fontSize->second, result.fontSize);
+ }
+ auto tmp_fontFamily = map.find("fontFamily");
+ if (tmp_fontFamily != map.end()) {
+ fromRawValue(context, tmp_fontFamily->second, result.fontFamily);
+ }
+ auto tmp_fontWeight = map.find("fontWeight");
+ if (tmp_fontWeight != map.end()) {
+ fromRawValue(context, tmp_fontWeight->second, result.fontWeight);
+ }
+ auto tmp_color = map.find("color");
+ if (tmp_color != map.end()) {
+ fromRawValue(context, tmp_color->second, result.color);
+ }
+ auto tmp_marginTop = map.find("marginTop");
+ if (tmp_marginTop != map.end()) {
+ fromRawValue(context, tmp_marginTop->second, result.marginTop);
+ }
+ auto tmp_marginBottom = map.find("marginBottom");
+ if (tmp_marginBottom != map.end()) {
+ fromRawValue(context, tmp_marginBottom->second, result.marginBottom);
+ }
+ auto tmp_lineHeight = map.find("lineHeight");
+ if (tmp_lineHeight != map.end()) {
+ fromRawValue(context, tmp_lineHeight->second, result.lineHeight);
+ }
+ auto tmp_bulletColor = map.find("bulletColor");
+ if (tmp_bulletColor != map.end()) {
+ fromRawValue(context, tmp_bulletColor->second, result.bulletColor);
+ }
+ auto tmp_bulletSize = map.find("bulletSize");
+ if (tmp_bulletSize != map.end()) {
+ fromRawValue(context, tmp_bulletSize->second, result.bulletSize);
+ }
+ auto tmp_markerMinWidth = map.find("markerMinWidth");
+ if (tmp_markerMinWidth != map.end()) {
+ fromRawValue(context, tmp_markerMinWidth->second, result.markerMinWidth);
+ }
+ auto tmp_markerColor = map.find("markerColor");
+ if (tmp_markerColor != map.end()) {
+ fromRawValue(context, tmp_markerColor->second, result.markerColor);
+ }
+ auto tmp_markerFontWeight = map.find("markerFontWeight");
+ if (tmp_markerFontWeight != map.end()) {
+ fromRawValue(context, tmp_markerFontWeight->second, result.markerFontWeight);
+ }
+ auto tmp_gapWidth = map.find("gapWidth");
+ if (tmp_gapWidth != map.end()) {
+ fromRawValue(context, tmp_gapWidth->second, result.gapWidth);
+ }
+ auto tmp_marginLeft = map.find("marginLeft");
+ if (tmp_marginLeft != map.end()) {
+ fromRawValue(context, tmp_marginLeft->second, result.marginLeft);
+ }
+ auto tmp_itemSpacing = map.find("itemSpacing");
+ if (tmp_itemSpacing != map.end()) {
+ fromRawValue(context, tmp_itemSpacing->second, result.itemSpacing);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleListStruct &value) {
+ return "[Object EnrichedMarkdownTextMarkdownStyleListStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleListStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownTextMarkdownStyleCodeBlockSyntaxColorsStruct {
+ SharedColor keyword{};
+ SharedColor operatorColor{};
+ SharedColor punctuation{};
+ SharedColor string{};
+ SharedColor number{};
+ SharedColor constant{};
+ SharedColor comment{};
+ SharedColor function{};
+ SharedColor type{};
+ SharedColor variable{};
+ SharedColor property{};
+ SharedColor tag{};
+ SharedColor attribute{};
+ SharedColor embedded{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownTextMarkdownStyleCodeBlockSyntaxColorsStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["keyword"] = ::facebook::react::toDynamic(keyword);
+ result["operatorColor"] = ::facebook::react::toDynamic(operatorColor);
+ result["punctuation"] = ::facebook::react::toDynamic(punctuation);
+ result["string"] = ::facebook::react::toDynamic(string);
+ result["number"] = ::facebook::react::toDynamic(number);
+ result["constant"] = ::facebook::react::toDynamic(constant);
+ result["comment"] = ::facebook::react::toDynamic(comment);
+ result["function"] = ::facebook::react::toDynamic(function);
+ result["type"] = ::facebook::react::toDynamic(type);
+ result["variable"] = ::facebook::react::toDynamic(variable);
+ result["property"] = ::facebook::react::toDynamic(property);
+ result["tag"] = ::facebook::react::toDynamic(tag);
+ result["attribute"] = ::facebook::react::toDynamic(attribute);
+ result["embedded"] = ::facebook::react::toDynamic(embedded);
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleCodeBlockSyntaxColorsStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_keyword = map.find("keyword");
+ if (tmp_keyword != map.end()) {
+ fromRawValue(context, tmp_keyword->second, result.keyword);
+ }
+ auto tmp_operatorColor = map.find("operatorColor");
+ if (tmp_operatorColor != map.end()) {
+ fromRawValue(context, tmp_operatorColor->second, result.operatorColor);
+ }
+ auto tmp_punctuation = map.find("punctuation");
+ if (tmp_punctuation != map.end()) {
+ fromRawValue(context, tmp_punctuation->second, result.punctuation);
+ }
+ auto tmp_string = map.find("string");
+ if (tmp_string != map.end()) {
+ fromRawValue(context, tmp_string->second, result.string);
+ }
+ auto tmp_number = map.find("number");
+ if (tmp_number != map.end()) {
+ fromRawValue(context, tmp_number->second, result.number);
+ }
+ auto tmp_constant = map.find("constant");
+ if (tmp_constant != map.end()) {
+ fromRawValue(context, tmp_constant->second, result.constant);
+ }
+ auto tmp_comment = map.find("comment");
+ if (tmp_comment != map.end()) {
+ fromRawValue(context, tmp_comment->second, result.comment);
+ }
+ auto tmp_function = map.find("function");
+ if (tmp_function != map.end()) {
+ fromRawValue(context, tmp_function->second, result.function);
+ }
+ auto tmp_type = map.find("type");
+ if (tmp_type != map.end()) {
+ fromRawValue(context, tmp_type->second, result.type);
+ }
+ auto tmp_variable = map.find("variable");
+ if (tmp_variable != map.end()) {
+ fromRawValue(context, tmp_variable->second, result.variable);
+ }
+ auto tmp_property = map.find("property");
+ if (tmp_property != map.end()) {
+ fromRawValue(context, tmp_property->second, result.property);
+ }
+ auto tmp_tag = map.find("tag");
+ if (tmp_tag != map.end()) {
+ fromRawValue(context, tmp_tag->second, result.tag);
+ }
+ auto tmp_attribute = map.find("attribute");
+ if (tmp_attribute != map.end()) {
+ fromRawValue(context, tmp_attribute->second, result.attribute);
+ }
+ auto tmp_embedded = map.find("embedded");
+ if (tmp_embedded != map.end()) {
+ fromRawValue(context, tmp_embedded->second, result.embedded);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleCodeBlockSyntaxColorsStruct &value) {
+ return "[Object EnrichedMarkdownTextMarkdownStyleCodeBlockSyntaxColorsStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleCodeBlockSyntaxColorsStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownTextMarkdownStyleCodeBlockStruct {
+ Float fontSize{0.0};
+ std::string fontFamily{};
+ std::string fontWeight{};
+ SharedColor color{};
+ Float marginTop{0.0};
+ Float marginBottom{0.0};
+ Float lineHeight{0.0};
+ SharedColor backgroundColor{};
+ SharedColor borderColor{};
+ Float borderRadius{0.0};
+ Float borderWidth{0.0};
+ Float padding{0.0};
+ EnrichedMarkdownTextMarkdownStyleCodeBlockSyntaxColorsStruct syntaxColors{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownTextMarkdownStyleCodeBlockStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["fontSize"] = fontSize;
+ result["fontFamily"] = fontFamily;
+ result["fontWeight"] = fontWeight;
+ result["color"] = ::facebook::react::toDynamic(color);
+ result["marginTop"] = marginTop;
+ result["marginBottom"] = marginBottom;
+ result["lineHeight"] = lineHeight;
+ result["backgroundColor"] = ::facebook::react::toDynamic(backgroundColor);
+ result["borderColor"] = ::facebook::react::toDynamic(borderColor);
+ result["borderRadius"] = borderRadius;
+ result["borderWidth"] = borderWidth;
+ result["padding"] = padding;
+ result["syntaxColors"] = ::facebook::react::toDynamic(syntaxColors);
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleCodeBlockStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_fontSize = map.find("fontSize");
+ if (tmp_fontSize != map.end()) {
+ fromRawValue(context, tmp_fontSize->second, result.fontSize);
+ }
+ auto tmp_fontFamily = map.find("fontFamily");
+ if (tmp_fontFamily != map.end()) {
+ fromRawValue(context, tmp_fontFamily->second, result.fontFamily);
+ }
+ auto tmp_fontWeight = map.find("fontWeight");
+ if (tmp_fontWeight != map.end()) {
+ fromRawValue(context, tmp_fontWeight->second, result.fontWeight);
+ }
+ auto tmp_color = map.find("color");
+ if (tmp_color != map.end()) {
+ fromRawValue(context, tmp_color->second, result.color);
+ }
+ auto tmp_marginTop = map.find("marginTop");
+ if (tmp_marginTop != map.end()) {
+ fromRawValue(context, tmp_marginTop->second, result.marginTop);
+ }
+ auto tmp_marginBottom = map.find("marginBottom");
+ if (tmp_marginBottom != map.end()) {
+ fromRawValue(context, tmp_marginBottom->second, result.marginBottom);
+ }
+ auto tmp_lineHeight = map.find("lineHeight");
+ if (tmp_lineHeight != map.end()) {
+ fromRawValue(context, tmp_lineHeight->second, result.lineHeight);
+ }
+ auto tmp_backgroundColor = map.find("backgroundColor");
+ if (tmp_backgroundColor != map.end()) {
+ fromRawValue(context, tmp_backgroundColor->second, result.backgroundColor);
+ }
+ auto tmp_borderColor = map.find("borderColor");
+ if (tmp_borderColor != map.end()) {
+ fromRawValue(context, tmp_borderColor->second, result.borderColor);
+ }
+ auto tmp_borderRadius = map.find("borderRadius");
+ if (tmp_borderRadius != map.end()) {
+ fromRawValue(context, tmp_borderRadius->second, result.borderRadius);
+ }
+ auto tmp_borderWidth = map.find("borderWidth");
+ if (tmp_borderWidth != map.end()) {
+ fromRawValue(context, tmp_borderWidth->second, result.borderWidth);
+ }
+ auto tmp_padding = map.find("padding");
+ if (tmp_padding != map.end()) {
+ fromRawValue(context, tmp_padding->second, result.padding);
+ }
+ auto tmp_syntaxColors = map.find("syntaxColors");
+ if (tmp_syntaxColors != map.end()) {
+ fromRawValue(context, tmp_syntaxColors->second, result.syntaxColors);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleCodeBlockStruct &value) {
+ return "[Object EnrichedMarkdownTextMarkdownStyleCodeBlockStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleCodeBlockStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownTextMarkdownStyleLinkStruct {
+ std::string fontFamily{};
+ SharedColor color{};
+ bool underline{false};
+ SharedColor backgroundColor{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownTextMarkdownStyleLinkStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["fontFamily"] = fontFamily;
+ result["color"] = ::facebook::react::toDynamic(color);
+ result["underline"] = underline;
+ result["backgroundColor"] = ::facebook::react::toDynamic(backgroundColor);
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleLinkStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_fontFamily = map.find("fontFamily");
+ if (tmp_fontFamily != map.end()) {
+ fromRawValue(context, tmp_fontFamily->second, result.fontFamily);
+ }
+ auto tmp_color = map.find("color");
+ if (tmp_color != map.end()) {
+ fromRawValue(context, tmp_color->second, result.color);
+ }
+ auto tmp_underline = map.find("underline");
+ if (tmp_underline != map.end()) {
+ fromRawValue(context, tmp_underline->second, result.underline);
+ }
+ auto tmp_backgroundColor = map.find("backgroundColor");
+ if (tmp_backgroundColor != map.end()) {
+ fromRawValue(context, tmp_backgroundColor->second, result.backgroundColor);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleLinkStruct &value) {
+ return "[Object EnrichedMarkdownTextMarkdownStyleLinkStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleLinkStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownTextMarkdownStyleLinkVariantsPillStruct {
+ bool enabled{false};
+ std::string label{};
+ std::string iconUri{};
+ SharedColor iconTintColor{};
+ Float borderRadius{0.0};
+ Float paddingHorizontal{0.0};
+ Float paddingVertical{0.0};
+ Float lineHeight{0.0};
+ Float borderWidth{0.0};
+ SharedColor borderColor{};
+ Float maxWidth{0.0};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownTextMarkdownStyleLinkVariantsPillStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["enabled"] = enabled;
+ result["label"] = label;
+ result["iconUri"] = iconUri;
+ result["iconTintColor"] = ::facebook::react::toDynamic(iconTintColor);
+ result["borderRadius"] = borderRadius;
+ result["paddingHorizontal"] = paddingHorizontal;
+ result["paddingVertical"] = paddingVertical;
+ result["lineHeight"] = lineHeight;
+ result["borderWidth"] = borderWidth;
+ result["borderColor"] = ::facebook::react::toDynamic(borderColor);
+ result["maxWidth"] = maxWidth;
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleLinkVariantsPillStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_enabled = map.find("enabled");
+ if (tmp_enabled != map.end()) {
+ fromRawValue(context, tmp_enabled->second, result.enabled);
+ }
+ auto tmp_label = map.find("label");
+ if (tmp_label != map.end()) {
+ fromRawValue(context, tmp_label->second, result.label);
+ }
+ auto tmp_iconUri = map.find("iconUri");
+ if (tmp_iconUri != map.end()) {
+ fromRawValue(context, tmp_iconUri->second, result.iconUri);
+ }
+ auto tmp_iconTintColor = map.find("iconTintColor");
+ if (tmp_iconTintColor != map.end()) {
+ fromRawValue(context, tmp_iconTintColor->second, result.iconTintColor);
+ }
+ auto tmp_borderRadius = map.find("borderRadius");
+ if (tmp_borderRadius != map.end()) {
+ fromRawValue(context, tmp_borderRadius->second, result.borderRadius);
+ }
+ auto tmp_paddingHorizontal = map.find("paddingHorizontal");
+ if (tmp_paddingHorizontal != map.end()) {
+ fromRawValue(context, tmp_paddingHorizontal->second, result.paddingHorizontal);
+ }
+ auto tmp_paddingVertical = map.find("paddingVertical");
+ if (tmp_paddingVertical != map.end()) {
+ fromRawValue(context, tmp_paddingVertical->second, result.paddingVertical);
+ }
+ auto tmp_lineHeight = map.find("lineHeight");
+ if (tmp_lineHeight != map.end()) {
+ fromRawValue(context, tmp_lineHeight->second, result.lineHeight);
+ }
+ auto tmp_borderWidth = map.find("borderWidth");
+ if (tmp_borderWidth != map.end()) {
+ fromRawValue(context, tmp_borderWidth->second, result.borderWidth);
+ }
+ auto tmp_borderColor = map.find("borderColor");
+ if (tmp_borderColor != map.end()) {
+ fromRawValue(context, tmp_borderColor->second, result.borderColor);
+ }
+ auto tmp_maxWidth = map.find("maxWidth");
+ if (tmp_maxWidth != map.end()) {
+ fromRawValue(context, tmp_maxWidth->second, result.maxWidth);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleLinkVariantsPillStruct &value) {
+ return "[Object EnrichedMarkdownTextMarkdownStyleLinkVariantsPillStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleLinkVariantsPillStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownTextMarkdownStyleLinkVariantsStruct {
+ std::string pattern{};
+ SharedColor color{};
+ bool underline{false};
+ SharedColor backgroundColor{};
+ std::string fontFamily{};
+ EnrichedMarkdownTextMarkdownStyleLinkVariantsPillStruct pill{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownTextMarkdownStyleLinkVariantsStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["pattern"] = pattern;
+ result["color"] = ::facebook::react::toDynamic(color);
+ result["underline"] = underline;
+ result["backgroundColor"] = ::facebook::react::toDynamic(backgroundColor);
+ result["fontFamily"] = fontFamily;
+ result["pill"] = ::facebook::react::toDynamic(pill);
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleLinkVariantsStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_pattern = map.find("pattern");
+ if (tmp_pattern != map.end()) {
+ fromRawValue(context, tmp_pattern->second, result.pattern);
+ }
+ auto tmp_color = map.find("color");
+ if (tmp_color != map.end()) {
+ fromRawValue(context, tmp_color->second, result.color);
+ }
+ auto tmp_underline = map.find("underline");
+ if (tmp_underline != map.end()) {
+ fromRawValue(context, tmp_underline->second, result.underline);
+ }
+ auto tmp_backgroundColor = map.find("backgroundColor");
+ if (tmp_backgroundColor != map.end()) {
+ fromRawValue(context, tmp_backgroundColor->second, result.backgroundColor);
+ }
+ auto tmp_fontFamily = map.find("fontFamily");
+ if (tmp_fontFamily != map.end()) {
+ fromRawValue(context, tmp_fontFamily->second, result.fontFamily);
+ }
+ auto tmp_pill = map.find("pill");
+ if (tmp_pill != map.end()) {
+ fromRawValue(context, tmp_pill->second, result.pill);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleLinkVariantsStruct &value) {
+ return "[Object EnrichedMarkdownTextMarkdownStyleLinkVariantsStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleLinkVariantsStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, std::vector &result) {
+ auto items = (std::vector)value;
+ for (const auto &item : items) {
+ EnrichedMarkdownTextMarkdownStyleLinkVariantsStruct newItem;
+ fromRawValue(context, item, newItem);
+ result.emplace_back(newItem);
+ }
+}
+
+
+struct EnrichedMarkdownTextMarkdownStyleStrongStruct {
+ std::string fontFamily{};
+ std::string fontWeight{};
+ SharedColor color{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownTextMarkdownStyleStrongStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["fontFamily"] = fontFamily;
+ result["fontWeight"] = fontWeight;
+ result["color"] = ::facebook::react::toDynamic(color);
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleStrongStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_fontFamily = map.find("fontFamily");
+ if (tmp_fontFamily != map.end()) {
+ fromRawValue(context, tmp_fontFamily->second, result.fontFamily);
+ }
+ auto tmp_fontWeight = map.find("fontWeight");
+ if (tmp_fontWeight != map.end()) {
+ fromRawValue(context, tmp_fontWeight->second, result.fontWeight);
+ }
+ auto tmp_color = map.find("color");
+ if (tmp_color != map.end()) {
+ fromRawValue(context, tmp_color->second, result.color);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleStrongStruct &value) {
+ return "[Object EnrichedMarkdownTextMarkdownStyleStrongStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleStrongStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownTextMarkdownStyleEmStruct {
+ std::string fontFamily{};
+ std::string fontStyle{};
+ SharedColor color{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownTextMarkdownStyleEmStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["fontFamily"] = fontFamily;
+ result["fontStyle"] = fontStyle;
+ result["color"] = ::facebook::react::toDynamic(color);
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleEmStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_fontFamily = map.find("fontFamily");
+ if (tmp_fontFamily != map.end()) {
+ fromRawValue(context, tmp_fontFamily->second, result.fontFamily);
+ }
+ auto tmp_fontStyle = map.find("fontStyle");
+ if (tmp_fontStyle != map.end()) {
+ fromRawValue(context, tmp_fontStyle->second, result.fontStyle);
+ }
+ auto tmp_color = map.find("color");
+ if (tmp_color != map.end()) {
+ fromRawValue(context, tmp_color->second, result.color);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleEmStruct &value) {
+ return "[Object EnrichedMarkdownTextMarkdownStyleEmStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleEmStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownTextMarkdownStyleStrikethroughStruct {
+ SharedColor color{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownTextMarkdownStyleStrikethroughStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["color"] = ::facebook::react::toDynamic(color);
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleStrikethroughStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_color = map.find("color");
+ if (tmp_color != map.end()) {
+ fromRawValue(context, tmp_color->second, result.color);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleStrikethroughStruct &value) {
+ return "[Object EnrichedMarkdownTextMarkdownStyleStrikethroughStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleStrikethroughStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownTextMarkdownStyleUnderlineStruct {
+ SharedColor color{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownTextMarkdownStyleUnderlineStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["color"] = ::facebook::react::toDynamic(color);
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleUnderlineStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_color = map.find("color");
+ if (tmp_color != map.end()) {
+ fromRawValue(context, tmp_color->second, result.color);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleUnderlineStruct &value) {
+ return "[Object EnrichedMarkdownTextMarkdownStyleUnderlineStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleUnderlineStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownTextMarkdownStyleCodeStruct {
+ std::string fontFamily{};
+ Float fontSize{0.0};
+ Float fontScale{0.0};
+ SharedColor color{};
+ SharedColor backgroundColor{};
+ SharedColor borderColor{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownTextMarkdownStyleCodeStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["fontFamily"] = fontFamily;
+ result["fontSize"] = fontSize;
+ result["fontScale"] = fontScale;
+ result["color"] = ::facebook::react::toDynamic(color);
+ result["backgroundColor"] = ::facebook::react::toDynamic(backgroundColor);
+ result["borderColor"] = ::facebook::react::toDynamic(borderColor);
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleCodeStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_fontFamily = map.find("fontFamily");
+ if (tmp_fontFamily != map.end()) {
+ fromRawValue(context, tmp_fontFamily->second, result.fontFamily);
+ }
+ auto tmp_fontSize = map.find("fontSize");
+ if (tmp_fontSize != map.end()) {
+ fromRawValue(context, tmp_fontSize->second, result.fontSize);
+ }
+ auto tmp_fontScale = map.find("fontScale");
+ if (tmp_fontScale != map.end()) {
+ fromRawValue(context, tmp_fontScale->second, result.fontScale);
+ }
+ auto tmp_color = map.find("color");
+ if (tmp_color != map.end()) {
+ fromRawValue(context, tmp_color->second, result.color);
+ }
+ auto tmp_backgroundColor = map.find("backgroundColor");
+ if (tmp_backgroundColor != map.end()) {
+ fromRawValue(context, tmp_backgroundColor->second, result.backgroundColor);
+ }
+ auto tmp_borderColor = map.find("borderColor");
+ if (tmp_borderColor != map.end()) {
+ fromRawValue(context, tmp_borderColor->second, result.borderColor);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleCodeStruct &value) {
+ return "[Object EnrichedMarkdownTextMarkdownStyleCodeStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleCodeStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownTextMarkdownStyleImageStruct {
+ Float height{0.0};
+ Float maxHeight{0.0};
+ Float aspectRatio{0.0};
+ std::string resizeMode{};
+ Float borderRadius{0.0};
+ Float marginTop{0.0};
+ Float marginBottom{0.0};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownTextMarkdownStyleImageStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["height"] = height;
+ result["maxHeight"] = maxHeight;
+ result["aspectRatio"] = aspectRatio;
+ result["resizeMode"] = resizeMode;
+ result["borderRadius"] = borderRadius;
+ result["marginTop"] = marginTop;
+ result["marginBottom"] = marginBottom;
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleImageStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_height = map.find("height");
+ if (tmp_height != map.end()) {
+ fromRawValue(context, tmp_height->second, result.height);
+ }
+ auto tmp_maxHeight = map.find("maxHeight");
+ if (tmp_maxHeight != map.end()) {
+ fromRawValue(context, tmp_maxHeight->second, result.maxHeight);
+ }
+ auto tmp_aspectRatio = map.find("aspectRatio");
+ if (tmp_aspectRatio != map.end()) {
+ fromRawValue(context, tmp_aspectRatio->second, result.aspectRatio);
+ }
+ auto tmp_resizeMode = map.find("resizeMode");
+ if (tmp_resizeMode != map.end()) {
+ fromRawValue(context, tmp_resizeMode->second, result.resizeMode);
+ }
+ auto tmp_borderRadius = map.find("borderRadius");
+ if (tmp_borderRadius != map.end()) {
+ fromRawValue(context, tmp_borderRadius->second, result.borderRadius);
+ }
+ auto tmp_marginTop = map.find("marginTop");
+ if (tmp_marginTop != map.end()) {
+ fromRawValue(context, tmp_marginTop->second, result.marginTop);
+ }
+ auto tmp_marginBottom = map.find("marginBottom");
+ if (tmp_marginBottom != map.end()) {
+ fromRawValue(context, tmp_marginBottom->second, result.marginBottom);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleImageStruct &value) {
+ return "[Object EnrichedMarkdownTextMarkdownStyleImageStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleImageStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownTextMarkdownStyleVideoStruct {
+ Float marginTop{0.0};
+ Float marginBottom{0.0};
+ Float borderRadius{0.0};
+ Float aspectRatio{0.0};
+ SharedColor backgroundColor{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownTextMarkdownStyleVideoStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["marginTop"] = marginTop;
+ result["marginBottom"] = marginBottom;
+ result["borderRadius"] = borderRadius;
+ result["aspectRatio"] = aspectRatio;
+ result["backgroundColor"] = ::facebook::react::toDynamic(backgroundColor);
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleVideoStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_marginTop = map.find("marginTop");
+ if (tmp_marginTop != map.end()) {
+ fromRawValue(context, tmp_marginTop->second, result.marginTop);
+ }
+ auto tmp_marginBottom = map.find("marginBottom");
+ if (tmp_marginBottom != map.end()) {
+ fromRawValue(context, tmp_marginBottom->second, result.marginBottom);
+ }
+ auto tmp_borderRadius = map.find("borderRadius");
+ if (tmp_borderRadius != map.end()) {
+ fromRawValue(context, tmp_borderRadius->second, result.borderRadius);
+ }
+ auto tmp_aspectRatio = map.find("aspectRatio");
+ if (tmp_aspectRatio != map.end()) {
+ fromRawValue(context, tmp_aspectRatio->second, result.aspectRatio);
+ }
+ auto tmp_backgroundColor = map.find("backgroundColor");
+ if (tmp_backgroundColor != map.end()) {
+ fromRawValue(context, tmp_backgroundColor->second, result.backgroundColor);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleVideoStruct &value) {
+ return "[Object EnrichedMarkdownTextMarkdownStyleVideoStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleVideoStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownTextMarkdownStyleInlineImageStruct {
+ Float size{0.0};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownTextMarkdownStyleInlineImageStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["size"] = size;
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleInlineImageStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_size = map.find("size");
+ if (tmp_size != map.end()) {
+ fromRawValue(context, tmp_size->second, result.size);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleInlineImageStruct &value) {
+ return "[Object EnrichedMarkdownTextMarkdownStyleInlineImageStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleInlineImageStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownTextMarkdownStyleThematicBreakStruct {
+ SharedColor color{};
+ Float height{0.0};
+ Float marginTop{0.0};
+ Float marginBottom{0.0};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownTextMarkdownStyleThematicBreakStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["color"] = ::facebook::react::toDynamic(color);
+ result["height"] = height;
+ result["marginTop"] = marginTop;
+ result["marginBottom"] = marginBottom;
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleThematicBreakStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_color = map.find("color");
+ if (tmp_color != map.end()) {
+ fromRawValue(context, tmp_color->second, result.color);
+ }
+ auto tmp_height = map.find("height");
+ if (tmp_height != map.end()) {
+ fromRawValue(context, tmp_height->second, result.height);
+ }
+ auto tmp_marginTop = map.find("marginTop");
+ if (tmp_marginTop != map.end()) {
+ fromRawValue(context, tmp_marginTop->second, result.marginTop);
+ }
+ auto tmp_marginBottom = map.find("marginBottom");
+ if (tmp_marginBottom != map.end()) {
+ fromRawValue(context, tmp_marginBottom->second, result.marginBottom);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleThematicBreakStruct &value) {
+ return "[Object EnrichedMarkdownTextMarkdownStyleThematicBreakStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleThematicBreakStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownTextMarkdownStyleTableStruct {
+ Float fontSize{0.0};
+ std::string fontFamily{};
+ std::string fontWeight{};
+ SharedColor color{};
+ Float marginTop{0.0};
+ Float marginBottom{0.0};
+ Float lineHeight{0.0};
+ std::string headerFontFamily{};
+ SharedColor headerBackgroundColor{};
+ SharedColor headerTextColor{};
+ SharedColor rowEvenBackgroundColor{};
+ SharedColor rowOddBackgroundColor{};
+ SharedColor borderColor{};
+ Float borderWidth{0.0};
+ Float borderRadius{0.0};
+ Float cellPaddingHorizontal{0.0};
+ Float cellPaddingVertical{0.0};
+ Float horizontalOverflow{0.0};
+ std::string align{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownTextMarkdownStyleTableStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["fontSize"] = fontSize;
+ result["fontFamily"] = fontFamily;
+ result["fontWeight"] = fontWeight;
+ result["color"] = ::facebook::react::toDynamic(color);
+ result["marginTop"] = marginTop;
+ result["marginBottom"] = marginBottom;
+ result["lineHeight"] = lineHeight;
+ result["headerFontFamily"] = headerFontFamily;
+ result["headerBackgroundColor"] = ::facebook::react::toDynamic(headerBackgroundColor);
+ result["headerTextColor"] = ::facebook::react::toDynamic(headerTextColor);
+ result["rowEvenBackgroundColor"] = ::facebook::react::toDynamic(rowEvenBackgroundColor);
+ result["rowOddBackgroundColor"] = ::facebook::react::toDynamic(rowOddBackgroundColor);
+ result["borderColor"] = ::facebook::react::toDynamic(borderColor);
+ result["borderWidth"] = borderWidth;
+ result["borderRadius"] = borderRadius;
+ result["cellPaddingHorizontal"] = cellPaddingHorizontal;
+ result["cellPaddingVertical"] = cellPaddingVertical;
+ result["horizontalOverflow"] = horizontalOverflow;
+ result["align"] = align;
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleTableStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_fontSize = map.find("fontSize");
+ if (tmp_fontSize != map.end()) {
+ fromRawValue(context, tmp_fontSize->second, result.fontSize);
+ }
+ auto tmp_fontFamily = map.find("fontFamily");
+ if (tmp_fontFamily != map.end()) {
+ fromRawValue(context, tmp_fontFamily->second, result.fontFamily);
+ }
+ auto tmp_fontWeight = map.find("fontWeight");
+ if (tmp_fontWeight != map.end()) {
+ fromRawValue(context, tmp_fontWeight->second, result.fontWeight);
+ }
+ auto tmp_color = map.find("color");
+ if (tmp_color != map.end()) {
+ fromRawValue(context, tmp_color->second, result.color);
+ }
+ auto tmp_marginTop = map.find("marginTop");
+ if (tmp_marginTop != map.end()) {
+ fromRawValue(context, tmp_marginTop->second, result.marginTop);
+ }
+ auto tmp_marginBottom = map.find("marginBottom");
+ if (tmp_marginBottom != map.end()) {
+ fromRawValue(context, tmp_marginBottom->second, result.marginBottom);
+ }
+ auto tmp_lineHeight = map.find("lineHeight");
+ if (tmp_lineHeight != map.end()) {
+ fromRawValue(context, tmp_lineHeight->second, result.lineHeight);
+ }
+ auto tmp_headerFontFamily = map.find("headerFontFamily");
+ if (tmp_headerFontFamily != map.end()) {
+ fromRawValue(context, tmp_headerFontFamily->second, result.headerFontFamily);
+ }
+ auto tmp_headerBackgroundColor = map.find("headerBackgroundColor");
+ if (tmp_headerBackgroundColor != map.end()) {
+ fromRawValue(context, tmp_headerBackgroundColor->second, result.headerBackgroundColor);
+ }
+ auto tmp_headerTextColor = map.find("headerTextColor");
+ if (tmp_headerTextColor != map.end()) {
+ fromRawValue(context, tmp_headerTextColor->second, result.headerTextColor);
+ }
+ auto tmp_rowEvenBackgroundColor = map.find("rowEvenBackgroundColor");
+ if (tmp_rowEvenBackgroundColor != map.end()) {
+ fromRawValue(context, tmp_rowEvenBackgroundColor->second, result.rowEvenBackgroundColor);
+ }
+ auto tmp_rowOddBackgroundColor = map.find("rowOddBackgroundColor");
+ if (tmp_rowOddBackgroundColor != map.end()) {
+ fromRawValue(context, tmp_rowOddBackgroundColor->second, result.rowOddBackgroundColor);
+ }
+ auto tmp_borderColor = map.find("borderColor");
+ if (tmp_borderColor != map.end()) {
+ fromRawValue(context, tmp_borderColor->second, result.borderColor);
+ }
+ auto tmp_borderWidth = map.find("borderWidth");
+ if (tmp_borderWidth != map.end()) {
+ fromRawValue(context, tmp_borderWidth->second, result.borderWidth);
+ }
+ auto tmp_borderRadius = map.find("borderRadius");
+ if (tmp_borderRadius != map.end()) {
+ fromRawValue(context, tmp_borderRadius->second, result.borderRadius);
+ }
+ auto tmp_cellPaddingHorizontal = map.find("cellPaddingHorizontal");
+ if (tmp_cellPaddingHorizontal != map.end()) {
+ fromRawValue(context, tmp_cellPaddingHorizontal->second, result.cellPaddingHorizontal);
+ }
+ auto tmp_cellPaddingVertical = map.find("cellPaddingVertical");
+ if (tmp_cellPaddingVertical != map.end()) {
+ fromRawValue(context, tmp_cellPaddingVertical->second, result.cellPaddingVertical);
+ }
+ auto tmp_horizontalOverflow = map.find("horizontalOverflow");
+ if (tmp_horizontalOverflow != map.end()) {
+ fromRawValue(context, tmp_horizontalOverflow->second, result.horizontalOverflow);
+ }
+ auto tmp_align = map.find("align");
+ if (tmp_align != map.end()) {
+ fromRawValue(context, tmp_align->second, result.align);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleTableStruct &value) {
+ return "[Object EnrichedMarkdownTextMarkdownStyleTableStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleTableStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownTextMarkdownStyleTaskListStruct {
+ SharedColor checkedColor{};
+ SharedColor borderColor{};
+ Float checkboxSize{0.0};
+ Float checkboxBorderRadius{0.0};
+ SharedColor checkmarkColor{};
+ SharedColor checkedTextColor{};
+ bool checkedStrikethrough{false};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownTextMarkdownStyleTaskListStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["checkedColor"] = ::facebook::react::toDynamic(checkedColor);
+ result["borderColor"] = ::facebook::react::toDynamic(borderColor);
+ result["checkboxSize"] = checkboxSize;
+ result["checkboxBorderRadius"] = checkboxBorderRadius;
+ result["checkmarkColor"] = ::facebook::react::toDynamic(checkmarkColor);
+ result["checkedTextColor"] = ::facebook::react::toDynamic(checkedTextColor);
+ result["checkedStrikethrough"] = checkedStrikethrough;
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleTaskListStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_checkedColor = map.find("checkedColor");
+ if (tmp_checkedColor != map.end()) {
+ fromRawValue(context, tmp_checkedColor->second, result.checkedColor);
+ }
+ auto tmp_borderColor = map.find("borderColor");
+ if (tmp_borderColor != map.end()) {
+ fromRawValue(context, tmp_borderColor->second, result.borderColor);
+ }
+ auto tmp_checkboxSize = map.find("checkboxSize");
+ if (tmp_checkboxSize != map.end()) {
+ fromRawValue(context, tmp_checkboxSize->second, result.checkboxSize);
+ }
+ auto tmp_checkboxBorderRadius = map.find("checkboxBorderRadius");
+ if (tmp_checkboxBorderRadius != map.end()) {
+ fromRawValue(context, tmp_checkboxBorderRadius->second, result.checkboxBorderRadius);
+ }
+ auto tmp_checkmarkColor = map.find("checkmarkColor");
+ if (tmp_checkmarkColor != map.end()) {
+ fromRawValue(context, tmp_checkmarkColor->second, result.checkmarkColor);
+ }
+ auto tmp_checkedTextColor = map.find("checkedTextColor");
+ if (tmp_checkedTextColor != map.end()) {
+ fromRawValue(context, tmp_checkedTextColor->second, result.checkedTextColor);
+ }
+ auto tmp_checkedStrikethrough = map.find("checkedStrikethrough");
+ if (tmp_checkedStrikethrough != map.end()) {
+ fromRawValue(context, tmp_checkedStrikethrough->second, result.checkedStrikethrough);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleTaskListStruct &value) {
+ return "[Object EnrichedMarkdownTextMarkdownStyleTaskListStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleTaskListStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownTextMarkdownStyleMathStruct {
+ Float fontSize{0.0};
+ SharedColor color{};
+ SharedColor backgroundColor{};
+ Float padding{0.0};
+ Float marginTop{0.0};
+ Float marginBottom{0.0};
+ std::string textAlign{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownTextMarkdownStyleMathStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["fontSize"] = fontSize;
+ result["color"] = ::facebook::react::toDynamic(color);
+ result["backgroundColor"] = ::facebook::react::toDynamic(backgroundColor);
+ result["padding"] = padding;
+ result["marginTop"] = marginTop;
+ result["marginBottom"] = marginBottom;
+ result["textAlign"] = textAlign;
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleMathStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_fontSize = map.find("fontSize");
+ if (tmp_fontSize != map.end()) {
+ fromRawValue(context, tmp_fontSize->second, result.fontSize);
+ }
+ auto tmp_color = map.find("color");
+ if (tmp_color != map.end()) {
+ fromRawValue(context, tmp_color->second, result.color);
+ }
+ auto tmp_backgroundColor = map.find("backgroundColor");
+ if (tmp_backgroundColor != map.end()) {
+ fromRawValue(context, tmp_backgroundColor->second, result.backgroundColor);
+ }
+ auto tmp_padding = map.find("padding");
+ if (tmp_padding != map.end()) {
+ fromRawValue(context, tmp_padding->second, result.padding);
+ }
+ auto tmp_marginTop = map.find("marginTop");
+ if (tmp_marginTop != map.end()) {
+ fromRawValue(context, tmp_marginTop->second, result.marginTop);
+ }
+ auto tmp_marginBottom = map.find("marginBottom");
+ if (tmp_marginBottom != map.end()) {
+ fromRawValue(context, tmp_marginBottom->second, result.marginBottom);
+ }
+ auto tmp_textAlign = map.find("textAlign");
+ if (tmp_textAlign != map.end()) {
+ fromRawValue(context, tmp_textAlign->second, result.textAlign);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleMathStruct &value) {
+ return "[Object EnrichedMarkdownTextMarkdownStyleMathStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleMathStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownTextMarkdownStyleInlineMathStruct {
+ SharedColor color{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownTextMarkdownStyleInlineMathStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["color"] = ::facebook::react::toDynamic(color);
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleInlineMathStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_color = map.find("color");
+ if (tmp_color != map.end()) {
+ fromRawValue(context, tmp_color->second, result.color);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleInlineMathStruct &value) {
+ return "[Object EnrichedMarkdownTextMarkdownStyleInlineMathStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleInlineMathStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownTextMarkdownStyleSpoilerParticlesStruct {
+ Float density{0.0};
+ Float speed{0.0};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownTextMarkdownStyleSpoilerParticlesStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["density"] = density;
+ result["speed"] = speed;
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleSpoilerParticlesStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_density = map.find("density");
+ if (tmp_density != map.end()) {
+ fromRawValue(context, tmp_density->second, result.density);
+ }
+ auto tmp_speed = map.find("speed");
+ if (tmp_speed != map.end()) {
+ fromRawValue(context, tmp_speed->second, result.speed);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleSpoilerParticlesStruct &value) {
+ return "[Object EnrichedMarkdownTextMarkdownStyleSpoilerParticlesStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleSpoilerParticlesStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownTextMarkdownStyleSpoilerSolidStruct {
+ Float borderRadius{0.0};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownTextMarkdownStyleSpoilerSolidStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["borderRadius"] = borderRadius;
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleSpoilerSolidStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_borderRadius = map.find("borderRadius");
+ if (tmp_borderRadius != map.end()) {
+ fromRawValue(context, tmp_borderRadius->second, result.borderRadius);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleSpoilerSolidStruct &value) {
+ return "[Object EnrichedMarkdownTextMarkdownStyleSpoilerSolidStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleSpoilerSolidStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownTextMarkdownStyleSpoilerStruct {
+ SharedColor color{};
+ EnrichedMarkdownTextMarkdownStyleSpoilerParticlesStruct particles{};
+ EnrichedMarkdownTextMarkdownStyleSpoilerSolidStruct solid{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownTextMarkdownStyleSpoilerStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["color"] = ::facebook::react::toDynamic(color);
+ result["particles"] = ::facebook::react::toDynamic(particles);
+ result["solid"] = ::facebook::react::toDynamic(solid);
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleSpoilerStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_color = map.find("color");
+ if (tmp_color != map.end()) {
+ fromRawValue(context, tmp_color->second, result.color);
+ }
+ auto tmp_particles = map.find("particles");
+ if (tmp_particles != map.end()) {
+ fromRawValue(context, tmp_particles->second, result.particles);
+ }
+ auto tmp_solid = map.find("solid");
+ if (tmp_solid != map.end()) {
+ fromRawValue(context, tmp_solid->second, result.solid);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleSpoilerStruct &value) {
+ return "[Object EnrichedMarkdownTextMarkdownStyleSpoilerStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleSpoilerStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownTextMarkdownStyleSuperscriptStruct {
+ Float fontScale{0.0};
+ Float baselineOffsetScale{0.0};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownTextMarkdownStyleSuperscriptStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["fontScale"] = fontScale;
+ result["baselineOffsetScale"] = baselineOffsetScale;
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleSuperscriptStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_fontScale = map.find("fontScale");
+ if (tmp_fontScale != map.end()) {
+ fromRawValue(context, tmp_fontScale->second, result.fontScale);
+ }
+ auto tmp_baselineOffsetScale = map.find("baselineOffsetScale");
+ if (tmp_baselineOffsetScale != map.end()) {
+ fromRawValue(context, tmp_baselineOffsetScale->second, result.baselineOffsetScale);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleSuperscriptStruct &value) {
+ return "[Object EnrichedMarkdownTextMarkdownStyleSuperscriptStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleSuperscriptStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownTextMarkdownStyleSubscriptStruct {
+ Float fontScale{0.0};
+ Float baselineOffsetScale{0.0};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownTextMarkdownStyleSubscriptStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["fontScale"] = fontScale;
+ result["baselineOffsetScale"] = baselineOffsetScale;
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleSubscriptStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_fontScale = map.find("fontScale");
+ if (tmp_fontScale != map.end()) {
+ fromRawValue(context, tmp_fontScale->second, result.fontScale);
+ }
+ auto tmp_baselineOffsetScale = map.find("baselineOffsetScale");
+ if (tmp_baselineOffsetScale != map.end()) {
+ fromRawValue(context, tmp_baselineOffsetScale->second, result.baselineOffsetScale);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleSubscriptStruct &value) {
+ return "[Object EnrichedMarkdownTextMarkdownStyleSubscriptStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleSubscriptStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownTextMarkdownStyleHighlightStruct {
+ SharedColor color{};
+ SharedColor backgroundColor{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownTextMarkdownStyleHighlightStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["color"] = ::facebook::react::toDynamic(color);
+ result["backgroundColor"] = ::facebook::react::toDynamic(backgroundColor);
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleHighlightStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_color = map.find("color");
+ if (tmp_color != map.end()) {
+ fromRawValue(context, tmp_color->second, result.color);
+ }
+ auto tmp_backgroundColor = map.find("backgroundColor");
+ if (tmp_backgroundColor != map.end()) {
+ fromRawValue(context, tmp_backgroundColor->second, result.backgroundColor);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleHighlightStruct &value) {
+ return "[Object EnrichedMarkdownTextMarkdownStyleHighlightStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleHighlightStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownTextMarkdownStyleStruct {
+ EnrichedMarkdownTextMarkdownStyleParagraphStruct paragraph{};
+ EnrichedMarkdownTextMarkdownStyleH1Struct h1{};
+ EnrichedMarkdownTextMarkdownStyleH2Struct h2{};
+ EnrichedMarkdownTextMarkdownStyleH3Struct h3{};
+ EnrichedMarkdownTextMarkdownStyleH4Struct h4{};
+ EnrichedMarkdownTextMarkdownStyleH5Struct h5{};
+ EnrichedMarkdownTextMarkdownStyleH6Struct h6{};
+ EnrichedMarkdownTextMarkdownStyleBlockquoteStruct blockquote{};
+ EnrichedMarkdownTextMarkdownStyleListStruct list{};
+ EnrichedMarkdownTextMarkdownStyleCodeBlockStruct codeBlock{};
+ EnrichedMarkdownTextMarkdownStyleLinkStruct link{};
+ std::vector linkVariants{};
+ EnrichedMarkdownTextMarkdownStyleStrongStruct strong{};
+ EnrichedMarkdownTextMarkdownStyleEmStruct em{};
+ EnrichedMarkdownTextMarkdownStyleStrikethroughStruct strikethrough{};
+ EnrichedMarkdownTextMarkdownStyleUnderlineStruct underline{};
+ EnrichedMarkdownTextMarkdownStyleCodeStruct code{};
+ EnrichedMarkdownTextMarkdownStyleImageStruct image{};
+ EnrichedMarkdownTextMarkdownStyleVideoStruct video{};
+ EnrichedMarkdownTextMarkdownStyleInlineImageStruct inlineImage{};
+ EnrichedMarkdownTextMarkdownStyleThematicBreakStruct thematicBreak{};
+ EnrichedMarkdownTextMarkdownStyleTableStruct table{};
+ EnrichedMarkdownTextMarkdownStyleTaskListStruct taskList{};
+ EnrichedMarkdownTextMarkdownStyleMathStruct math{};
+ EnrichedMarkdownTextMarkdownStyleInlineMathStruct inlineMath{};
+ EnrichedMarkdownTextMarkdownStyleSpoilerStruct spoiler{};
+ EnrichedMarkdownTextMarkdownStyleSuperscriptStruct superscript{};
+ EnrichedMarkdownTextMarkdownStyleSubscriptStruct subscript{};
+ EnrichedMarkdownTextMarkdownStyleHighlightStruct highlight{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownTextMarkdownStyleStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["paragraph"] = ::facebook::react::toDynamic(paragraph);
+ result["h1"] = ::facebook::react::toDynamic(h1);
+ result["h2"] = ::facebook::react::toDynamic(h2);
+ result["h3"] = ::facebook::react::toDynamic(h3);
+ result["h4"] = ::facebook::react::toDynamic(h4);
+ result["h5"] = ::facebook::react::toDynamic(h5);
+ result["h6"] = ::facebook::react::toDynamic(h6);
+ result["blockquote"] = ::facebook::react::toDynamic(blockquote);
+ result["list"] = ::facebook::react::toDynamic(list);
+ result["codeBlock"] = ::facebook::react::toDynamic(codeBlock);
+ result["link"] = ::facebook::react::toDynamic(link);
+ result["linkVariants"] = ::facebook::react::toDynamic(linkVariants);
+ result["strong"] = ::facebook::react::toDynamic(strong);
+ result["em"] = ::facebook::react::toDynamic(em);
+ result["strikethrough"] = ::facebook::react::toDynamic(strikethrough);
+ result["underline"] = ::facebook::react::toDynamic(underline);
+ result["code"] = ::facebook::react::toDynamic(code);
+ result["image"] = ::facebook::react::toDynamic(image);
+ result["video"] = ::facebook::react::toDynamic(video);
+ result["inlineImage"] = ::facebook::react::toDynamic(inlineImage);
+ result["thematicBreak"] = ::facebook::react::toDynamic(thematicBreak);
+ result["table"] = ::facebook::react::toDynamic(table);
+ result["taskList"] = ::facebook::react::toDynamic(taskList);
+ result["math"] = ::facebook::react::toDynamic(math);
+ result["inlineMath"] = ::facebook::react::toDynamic(inlineMath);
+ result["spoiler"] = ::facebook::react::toDynamic(spoiler);
+ result["superscript"] = ::facebook::react::toDynamic(superscript);
+ result["subscript"] = ::facebook::react::toDynamic(subscript);
+ result["highlight"] = ::facebook::react::toDynamic(highlight);
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_paragraph = map.find("paragraph");
+ if (tmp_paragraph != map.end()) {
+ fromRawValue(context, tmp_paragraph->second, result.paragraph);
+ }
+ auto tmp_h1 = map.find("h1");
+ if (tmp_h1 != map.end()) {
+ fromRawValue(context, tmp_h1->second, result.h1);
+ }
+ auto tmp_h2 = map.find("h2");
+ if (tmp_h2 != map.end()) {
+ fromRawValue(context, tmp_h2->second, result.h2);
+ }
+ auto tmp_h3 = map.find("h3");
+ if (tmp_h3 != map.end()) {
+ fromRawValue(context, tmp_h3->second, result.h3);
+ }
+ auto tmp_h4 = map.find("h4");
+ if (tmp_h4 != map.end()) {
+ fromRawValue(context, tmp_h4->second, result.h4);
+ }
+ auto tmp_h5 = map.find("h5");
+ if (tmp_h5 != map.end()) {
+ fromRawValue(context, tmp_h5->second, result.h5);
+ }
+ auto tmp_h6 = map.find("h6");
+ if (tmp_h6 != map.end()) {
+ fromRawValue(context, tmp_h6->second, result.h6);
+ }
+ auto tmp_blockquote = map.find("blockquote");
+ if (tmp_blockquote != map.end()) {
+ fromRawValue(context, tmp_blockquote->second, result.blockquote);
+ }
+ auto tmp_list = map.find("list");
+ if (tmp_list != map.end()) {
+ fromRawValue(context, tmp_list->second, result.list);
+ }
+ auto tmp_codeBlock = map.find("codeBlock");
+ if (tmp_codeBlock != map.end()) {
+ fromRawValue(context, tmp_codeBlock->second, result.codeBlock);
+ }
+ auto tmp_link = map.find("link");
+ if (tmp_link != map.end()) {
+ fromRawValue(context, tmp_link->second, result.link);
+ }
+ auto tmp_linkVariants = map.find("linkVariants");
+ if (tmp_linkVariants != map.end()) {
+ fromRawValue(context, tmp_linkVariants->second, result.linkVariants);
+ }
+ auto tmp_strong = map.find("strong");
+ if (tmp_strong != map.end()) {
+ fromRawValue(context, tmp_strong->second, result.strong);
+ }
+ auto tmp_em = map.find("em");
+ if (tmp_em != map.end()) {
+ fromRawValue(context, tmp_em->second, result.em);
+ }
+ auto tmp_strikethrough = map.find("strikethrough");
+ if (tmp_strikethrough != map.end()) {
+ fromRawValue(context, tmp_strikethrough->second, result.strikethrough);
+ }
+ auto tmp_underline = map.find("underline");
+ if (tmp_underline != map.end()) {
+ fromRawValue(context, tmp_underline->second, result.underline);
+ }
+ auto tmp_code = map.find("code");
+ if (tmp_code != map.end()) {
+ fromRawValue(context, tmp_code->second, result.code);
+ }
+ auto tmp_image = map.find("image");
+ if (tmp_image != map.end()) {
+ fromRawValue(context, tmp_image->second, result.image);
+ }
+ auto tmp_video = map.find("video");
+ if (tmp_video != map.end()) {
+ fromRawValue(context, tmp_video->second, result.video);
+ }
+ auto tmp_inlineImage = map.find("inlineImage");
+ if (tmp_inlineImage != map.end()) {
+ fromRawValue(context, tmp_inlineImage->second, result.inlineImage);
+ }
+ auto tmp_thematicBreak = map.find("thematicBreak");
+ if (tmp_thematicBreak != map.end()) {
+ fromRawValue(context, tmp_thematicBreak->second, result.thematicBreak);
+ }
+ auto tmp_table = map.find("table");
+ if (tmp_table != map.end()) {
+ fromRawValue(context, tmp_table->second, result.table);
+ }
+ auto tmp_taskList = map.find("taskList");
+ if (tmp_taskList != map.end()) {
+ fromRawValue(context, tmp_taskList->second, result.taskList);
+ }
+ auto tmp_math = map.find("math");
+ if (tmp_math != map.end()) {
+ fromRawValue(context, tmp_math->second, result.math);
+ }
+ auto tmp_inlineMath = map.find("inlineMath");
+ if (tmp_inlineMath != map.end()) {
+ fromRawValue(context, tmp_inlineMath->second, result.inlineMath);
+ }
+ auto tmp_spoiler = map.find("spoiler");
+ if (tmp_spoiler != map.end()) {
+ fromRawValue(context, tmp_spoiler->second, result.spoiler);
+ }
+ auto tmp_superscript = map.find("superscript");
+ if (tmp_superscript != map.end()) {
+ fromRawValue(context, tmp_superscript->second, result.superscript);
+ }
+ auto tmp_subscript = map.find("subscript");
+ if (tmp_subscript != map.end()) {
+ fromRawValue(context, tmp_subscript->second, result.subscript);
+ }
+ auto tmp_highlight = map.find("highlight");
+ if (tmp_highlight != map.end()) {
+ fromRawValue(context, tmp_highlight->second, result.highlight);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleStruct &value) {
+ return "[Object EnrichedMarkdownTextMarkdownStyleStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownTextMd4cFlagsStruct {
+ bool underline{false};
+ bool superscript{false};
+ bool subscript{false};
+ bool latexMath{false};
+ bool highlight{false};
+ bool hardSoftBreaks{false};
+ bool preserveBlankLines{false};
+ bool admonitions{false};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownTextMd4cFlagsStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["underline"] = underline;
+ result["superscript"] = superscript;
+ result["subscript"] = subscript;
+ result["latexMath"] = latexMath;
+ result["highlight"] = highlight;
+ result["hardSoftBreaks"] = hardSoftBreaks;
+ result["preserveBlankLines"] = preserveBlankLines;
+ result["admonitions"] = admonitions;
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMd4cFlagsStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_underline = map.find("underline");
+ if (tmp_underline != map.end()) {
+ fromRawValue(context, tmp_underline->second, result.underline);
+ }
+ auto tmp_superscript = map.find("superscript");
+ if (tmp_superscript != map.end()) {
+ fromRawValue(context, tmp_superscript->second, result.superscript);
+ }
+ auto tmp_subscript = map.find("subscript");
+ if (tmp_subscript != map.end()) {
+ fromRawValue(context, tmp_subscript->second, result.subscript);
+ }
+ auto tmp_latexMath = map.find("latexMath");
+ if (tmp_latexMath != map.end()) {
+ fromRawValue(context, tmp_latexMath->second, result.latexMath);
+ }
+ auto tmp_highlight = map.find("highlight");
+ if (tmp_highlight != map.end()) {
+ fromRawValue(context, tmp_highlight->second, result.highlight);
+ }
+ auto tmp_hardSoftBreaks = map.find("hardSoftBreaks");
+ if (tmp_hardSoftBreaks != map.end()) {
+ fromRawValue(context, tmp_hardSoftBreaks->second, result.hardSoftBreaks);
+ }
+ auto tmp_preserveBlankLines = map.find("preserveBlankLines");
+ if (tmp_preserveBlankLines != map.end()) {
+ fromRawValue(context, tmp_preserveBlankLines->second, result.preserveBlankLines);
+ }
+ auto tmp_admonitions = map.find("admonitions");
+ if (tmp_admonitions != map.end()) {
+ fromRawValue(context, tmp_admonitions->second, result.admonitions);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownTextMd4cFlagsStruct &value) {
+ return "[Object EnrichedMarkdownTextMd4cFlagsStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMd4cFlagsStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownTextStreamingConfigStruct {
+ std::string tableMode{};
+ std::string codeBlockMode{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownTextStreamingConfigStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["tableMode"] = tableMode;
+ result["codeBlockMode"] = codeBlockMode;
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextStreamingConfigStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_tableMode = map.find("tableMode");
+ if (tmp_tableMode != map.end()) {
+ fromRawValue(context, tmp_tableMode->second, result.tableMode);
+ }
+ auto tmp_codeBlockMode = map.find("codeBlockMode");
+ if (tmp_codeBlockMode != map.end()) {
+ fromRawValue(context, tmp_codeBlockMode->second, result.codeBlockMode);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownTextStreamingConfigStruct &value) {
+ return "[Object EnrichedMarkdownTextStreamingConfigStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownTextStreamingConfigStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownTextContextMenuItemsStruct {
+ std::string text{};
+ std::string icon{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownTextContextMenuItemsStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["text"] = text;
+ result["icon"] = icon;
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextContextMenuItemsStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_text = map.find("text");
+ if (tmp_text != map.end()) {
+ fromRawValue(context, tmp_text->second, result.text);
+ }
+ auto tmp_icon = map.find("icon");
+ if (tmp_icon != map.end()) {
+ fromRawValue(context, tmp_icon->second, result.icon);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownTextContextMenuItemsStruct &value) {
+ return "[Object EnrichedMarkdownTextContextMenuItemsStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownTextContextMenuItemsStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, std::vector &result) {
+ auto items = (std::vector)value;
+ for (const auto &item : items) {
+ EnrichedMarkdownTextContextMenuItemsStruct newItem;
+ fromRawValue(context, item, newItem);
+ result.emplace_back(newItem);
+ }
+}
+
+
+struct EnrichedMarkdownTextImageRequestHeadersStruct {
+ std::string name{};
+ std::string value{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownTextImageRequestHeadersStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["name"] = name;
+ result["value"] = value;
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextImageRequestHeadersStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_name = map.find("name");
+ if (tmp_name != map.end()) {
+ fromRawValue(context, tmp_name->second, result.name);
+ }
+ auto tmp_value = map.find("value");
+ if (tmp_value != map.end()) {
+ fromRawValue(context, tmp_value->second, result.value);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownTextImageRequestHeadersStruct &value) {
+ return "[Object EnrichedMarkdownTextImageRequestHeadersStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownTextImageRequestHeadersStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, std::vector &result) {
+ auto items = (std::vector)value;
+ for (const auto &item : items) {
+ EnrichedMarkdownTextImageRequestHeadersStruct newItem;
+ fromRawValue(context, item, newItem);
+ result.emplace_back(newItem);
+ }
+}
+
+
+struct EnrichedMarkdownTextLinkPillContentStruct {
+ std::string url{};
+ std::string label{};
+ std::string iconUri{};
+ SharedColor iconTintColor{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownTextLinkPillContentStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["url"] = url;
+ result["label"] = label;
+ result["iconUri"] = iconUri;
+ result["iconTintColor"] = ::facebook::react::toDynamic(iconTintColor);
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextLinkPillContentStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_url = map.find("url");
+ if (tmp_url != map.end()) {
+ fromRawValue(context, tmp_url->second, result.url);
+ }
+ auto tmp_label = map.find("label");
+ if (tmp_label != map.end()) {
+ fromRawValue(context, tmp_label->second, result.label);
+ }
+ auto tmp_iconUri = map.find("iconUri");
+ if (tmp_iconUri != map.end()) {
+ fromRawValue(context, tmp_iconUri->second, result.iconUri);
+ }
+ auto tmp_iconTintColor = map.find("iconTintColor");
+ if (tmp_iconTintColor != map.end()) {
+ fromRawValue(context, tmp_iconTintColor->second, result.iconTintColor);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownTextLinkPillContentStruct &value) {
+ return "[Object EnrichedMarkdownTextLinkPillContentStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownTextLinkPillContentStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, std::vector &result) {
+ auto items = (std::vector)value;
+ for (const auto &item : items) {
+ EnrichedMarkdownTextLinkPillContentStruct newItem;
+ fromRawValue(context, item, newItem);
+ result.emplace_back(newItem);
+ }
+}
+
+
+struct EnrichedMarkdownTextLinkRecognitionTextStruct {
+ std::string pattern{};
+ bool caseInsensitive{false};
+ bool dotAll{false};
+ bool isDisabled{false};
+ bool isDefault{false};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownTextLinkRecognitionTextStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["pattern"] = pattern;
+ result["caseInsensitive"] = caseInsensitive;
+ result["dotAll"] = dotAll;
+ result["isDisabled"] = isDisabled;
+ result["isDefault"] = isDefault;
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextLinkRecognitionTextStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_pattern = map.find("pattern");
+ if (tmp_pattern != map.end()) {
+ fromRawValue(context, tmp_pattern->second, result.pattern);
+ }
+ auto tmp_caseInsensitive = map.find("caseInsensitive");
+ if (tmp_caseInsensitive != map.end()) {
+ fromRawValue(context, tmp_caseInsensitive->second, result.caseInsensitive);
+ }
+ auto tmp_dotAll = map.find("dotAll");
+ if (tmp_dotAll != map.end()) {
+ fromRawValue(context, tmp_dotAll->second, result.dotAll);
+ }
+ auto tmp_isDisabled = map.find("isDisabled");
+ if (tmp_isDisabled != map.end()) {
+ fromRawValue(context, tmp_isDisabled->second, result.isDisabled);
+ }
+ auto tmp_isDefault = map.find("isDefault");
+ if (tmp_isDefault != map.end()) {
+ fromRawValue(context, tmp_isDefault->second, result.isDefault);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownTextLinkRecognitionTextStruct &value) {
+ return "[Object EnrichedMarkdownTextLinkRecognitionTextStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownTextLinkRecognitionTextStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownTextLinkRecognitionInlineCodeStruct {
+ std::string pattern{};
+ bool caseInsensitive{false};
+ bool dotAll{false};
+ bool isDisabled{false};
+ bool isDefault{false};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownTextLinkRecognitionInlineCodeStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["pattern"] = pattern;
+ result["caseInsensitive"] = caseInsensitive;
+ result["dotAll"] = dotAll;
+ result["isDisabled"] = isDisabled;
+ result["isDefault"] = isDefault;
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextLinkRecognitionInlineCodeStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_pattern = map.find("pattern");
+ if (tmp_pattern != map.end()) {
+ fromRawValue(context, tmp_pattern->second, result.pattern);
+ }
+ auto tmp_caseInsensitive = map.find("caseInsensitive");
+ if (tmp_caseInsensitive != map.end()) {
+ fromRawValue(context, tmp_caseInsensitive->second, result.caseInsensitive);
+ }
+ auto tmp_dotAll = map.find("dotAll");
+ if (tmp_dotAll != map.end()) {
+ fromRawValue(context, tmp_dotAll->second, result.dotAll);
+ }
+ auto tmp_isDisabled = map.find("isDisabled");
+ if (tmp_isDisabled != map.end()) {
+ fromRawValue(context, tmp_isDisabled->second, result.isDisabled);
+ }
+ auto tmp_isDefault = map.find("isDefault");
+ if (tmp_isDefault != map.end()) {
+ fromRawValue(context, tmp_isDefault->second, result.isDefault);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownTextLinkRecognitionInlineCodeStruct &value) {
+ return "[Object EnrichedMarkdownTextLinkRecognitionInlineCodeStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownTextLinkRecognitionInlineCodeStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownTextLinkRecognitionStruct {
+ EnrichedMarkdownTextLinkRecognitionTextStruct text{};
+ EnrichedMarkdownTextLinkRecognitionInlineCodeStruct inlineCode{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownTextLinkRecognitionStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["text"] = ::facebook::react::toDynamic(text);
+ result["inlineCode"] = ::facebook::react::toDynamic(inlineCode);
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextLinkRecognitionStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_text = map.find("text");
+ if (tmp_text != map.end()) {
+ fromRawValue(context, tmp_text->second, result.text);
+ }
+ auto tmp_inlineCode = map.find("inlineCode");
+ if (tmp_inlineCode != map.end()) {
+ fromRawValue(context, tmp_inlineCode->second, result.inlineCode);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownTextLinkRecognitionStruct &value) {
+ return "[Object EnrichedMarkdownTextLinkRecognitionStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownTextLinkRecognitionStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownTextLinkContextMenuItemsItemsStruct {
+ std::string text{};
+ std::string icon{};
+ bool disabled{false};
+ bool destructive{false};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownTextLinkContextMenuItemsItemsStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["text"] = text;
+ result["icon"] = icon;
+ result["disabled"] = disabled;
+ result["destructive"] = destructive;
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextLinkContextMenuItemsItemsStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_text = map.find("text");
+ if (tmp_text != map.end()) {
+ fromRawValue(context, tmp_text->second, result.text);
+ }
+ auto tmp_icon = map.find("icon");
+ if (tmp_icon != map.end()) {
+ fromRawValue(context, tmp_icon->second, result.icon);
+ }
+ auto tmp_disabled = map.find("disabled");
+ if (tmp_disabled != map.end()) {
+ fromRawValue(context, tmp_disabled->second, result.disabled);
+ }
+ auto tmp_destructive = map.find("destructive");
+ if (tmp_destructive != map.end()) {
+ fromRawValue(context, tmp_destructive->second, result.destructive);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownTextLinkContextMenuItemsItemsStruct &value) {
+ return "[Object EnrichedMarkdownTextLinkContextMenuItemsItemsStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownTextLinkContextMenuItemsItemsStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, std::vector &result) {
+ auto items = (std::vector)value;
+ for (const auto &item : items) {
+ EnrichedMarkdownTextLinkContextMenuItemsItemsStruct newItem;
+ fromRawValue(context, item, newItem);
+ result.emplace_back(newItem);
+ }
+}
+
+
+struct EnrichedMarkdownTextLinkContextMenuItemsStruct {
+ std::string pattern{};
+ std::vector items{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownTextLinkContextMenuItemsStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["pattern"] = pattern;
+ result["items"] = ::facebook::react::toDynamic(items);
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextLinkContextMenuItemsStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_pattern = map.find("pattern");
+ if (tmp_pattern != map.end()) {
+ fromRawValue(context, tmp_pattern->second, result.pattern);
+ }
+ auto tmp_items = map.find("items");
+ if (tmp_items != map.end()) {
+ fromRawValue(context, tmp_items->second, result.items);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownTextLinkContextMenuItemsStruct &value) {
+ return "[Object EnrichedMarkdownTextLinkContextMenuItemsStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownTextLinkContextMenuItemsStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, std::vector &result) {
+ auto items = (std::vector)value;
+ for (const auto &item : items) {
+ EnrichedMarkdownTextLinkContextMenuItemsStruct newItem;
+ fromRawValue(context, item, newItem);
+ result.emplace_back(newItem);
+ }
+}
+
+
+struct EnrichedMarkdownTextSelectionMenuConfigStruct {
+ bool copyAsMarkdown{false};
+ bool copyImageUrl{false};
+ std::string copyLabel{};
+ std::string copyAsMarkdownLabel{};
+ std::string copyImageUrlLabel{};
+ std::string copyImageUrlsLabel{};
+ std::vector copyImageUrlPluralTemplates{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownTextSelectionMenuConfigStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["copyAsMarkdown"] = copyAsMarkdown;
+ result["copyImageUrl"] = copyImageUrl;
+ result["copyLabel"] = copyLabel;
+ result["copyAsMarkdownLabel"] = copyAsMarkdownLabel;
+ result["copyImageUrlLabel"] = copyImageUrlLabel;
+ result["copyImageUrlsLabel"] = copyImageUrlsLabel;
+ result["copyImageUrlPluralTemplates"] = ::facebook::react::toDynamic(copyImageUrlPluralTemplates);
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextSelectionMenuConfigStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_copyAsMarkdown = map.find("copyAsMarkdown");
+ if (tmp_copyAsMarkdown != map.end()) {
+ fromRawValue(context, tmp_copyAsMarkdown->second, result.copyAsMarkdown);
+ }
+ auto tmp_copyImageUrl = map.find("copyImageUrl");
+ if (tmp_copyImageUrl != map.end()) {
+ fromRawValue(context, tmp_copyImageUrl->second, result.copyImageUrl);
+ }
+ auto tmp_copyLabel = map.find("copyLabel");
+ if (tmp_copyLabel != map.end()) {
+ fromRawValue(context, tmp_copyLabel->second, result.copyLabel);
+ }
+ auto tmp_copyAsMarkdownLabel = map.find("copyAsMarkdownLabel");
+ if (tmp_copyAsMarkdownLabel != map.end()) {
+ fromRawValue(context, tmp_copyAsMarkdownLabel->second, result.copyAsMarkdownLabel);
+ }
+ auto tmp_copyImageUrlLabel = map.find("copyImageUrlLabel");
+ if (tmp_copyImageUrlLabel != map.end()) {
+ fromRawValue(context, tmp_copyImageUrlLabel->second, result.copyImageUrlLabel);
+ }
+ auto tmp_copyImageUrlsLabel = map.find("copyImageUrlsLabel");
+ if (tmp_copyImageUrlsLabel != map.end()) {
+ fromRawValue(context, tmp_copyImageUrlsLabel->second, result.copyImageUrlsLabel);
+ }
+ auto tmp_copyImageUrlPluralTemplates = map.find("copyImageUrlPluralTemplates");
+ if (tmp_copyImageUrlPluralTemplates != map.end()) {
+ fromRawValue(context, tmp_copyImageUrlPluralTemplates->second, result.copyImageUrlPluralTemplates);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownTextSelectionMenuConfigStruct &value) {
+ return "[Object EnrichedMarkdownTextSelectionMenuConfigStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownTextSelectionMenuConfigStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownTextAccessibilityLabelsListStruct {
+ std::string bulletPoint{};
+ std::string nestedBulletPoint{};
+ std::string orderedItem{};
+ std::string nestedOrderedItem{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownTextAccessibilityLabelsListStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["bulletPoint"] = bulletPoint;
+ result["nestedBulletPoint"] = nestedBulletPoint;
+ result["orderedItem"] = orderedItem;
+ result["nestedOrderedItem"] = nestedOrderedItem;
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextAccessibilityLabelsListStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_bulletPoint = map.find("bulletPoint");
+ if (tmp_bulletPoint != map.end()) {
+ fromRawValue(context, tmp_bulletPoint->second, result.bulletPoint);
+ }
+ auto tmp_nestedBulletPoint = map.find("nestedBulletPoint");
+ if (tmp_nestedBulletPoint != map.end()) {
+ fromRawValue(context, tmp_nestedBulletPoint->second, result.nestedBulletPoint);
+ }
+ auto tmp_orderedItem = map.find("orderedItem");
+ if (tmp_orderedItem != map.end()) {
+ fromRawValue(context, tmp_orderedItem->second, result.orderedItem);
+ }
+ auto tmp_nestedOrderedItem = map.find("nestedOrderedItem");
+ if (tmp_nestedOrderedItem != map.end()) {
+ fromRawValue(context, tmp_nestedOrderedItem->second, result.nestedOrderedItem);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownTextAccessibilityLabelsListStruct &value) {
+ return "[Object EnrichedMarkdownTextAccessibilityLabelsListStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownTextAccessibilityLabelsListStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownTextAccessibilityLabelsBlockquoteStruct {
+ std::string quote{};
+ std::string nestedQuote{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownTextAccessibilityLabelsBlockquoteStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["quote"] = quote;
+ result["nestedQuote"] = nestedQuote;
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextAccessibilityLabelsBlockquoteStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_quote = map.find("quote");
+ if (tmp_quote != map.end()) {
+ fromRawValue(context, tmp_quote->second, result.quote);
+ }
+ auto tmp_nestedQuote = map.find("nestedQuote");
+ if (tmp_nestedQuote != map.end()) {
+ fromRawValue(context, tmp_nestedQuote->second, result.nestedQuote);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownTextAccessibilityLabelsBlockquoteStruct &value) {
+ return "[Object EnrichedMarkdownTextAccessibilityLabelsBlockquoteStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownTextAccessibilityLabelsBlockquoteStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownTextAccessibilityLabelsTableStruct {
+ std::string row{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownTextAccessibilityLabelsTableStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["row"] = row;
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextAccessibilityLabelsTableStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_row = map.find("row");
+ if (tmp_row != map.end()) {
+ fromRawValue(context, tmp_row->second, result.row);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownTextAccessibilityLabelsTableStruct &value) {
+ return "[Object EnrichedMarkdownTextAccessibilityLabelsTableStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownTextAccessibilityLabelsTableStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownTextAccessibilityLabelsMathStruct {
+ std::string equation{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownTextAccessibilityLabelsMathStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["equation"] = equation;
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextAccessibilityLabelsMathStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_equation = map.find("equation");
+ if (tmp_equation != map.end()) {
+ fromRawValue(context, tmp_equation->second, result.equation);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownTextAccessibilityLabelsMathStruct &value) {
+ return "[Object EnrichedMarkdownTextAccessibilityLabelsMathStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownTextAccessibilityLabelsMathStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownTextAccessibilityLabelsRotorStruct {
+ std::string headings{};
+ std::string links{};
+ std::string images{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownTextAccessibilityLabelsRotorStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["headings"] = headings;
+ result["links"] = links;
+ result["images"] = images;
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextAccessibilityLabelsRotorStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_headings = map.find("headings");
+ if (tmp_headings != map.end()) {
+ fromRawValue(context, tmp_headings->second, result.headings);
+ }
+ auto tmp_links = map.find("links");
+ if (tmp_links != map.end()) {
+ fromRawValue(context, tmp_links->second, result.links);
+ }
+ auto tmp_images = map.find("images");
+ if (tmp_images != map.end()) {
+ fromRawValue(context, tmp_images->second, result.images);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownTextAccessibilityLabelsRotorStruct &value) {
+ return "[Object EnrichedMarkdownTextAccessibilityLabelsRotorStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownTextAccessibilityLabelsRotorStruct &value) {
+ return value.toDynamic();
+}
+#endif
+
+struct EnrichedMarkdownTextAccessibilityLabelsStruct {
+ EnrichedMarkdownTextAccessibilityLabelsListStruct list{};
+ EnrichedMarkdownTextAccessibilityLabelsBlockquoteStruct blockquote{};
+ EnrichedMarkdownTextAccessibilityLabelsTableStruct table{};
+ EnrichedMarkdownTextAccessibilityLabelsMathStruct math{};
+ EnrichedMarkdownTextAccessibilityLabelsRotorStruct rotor{};
+
+
+#ifdef RN_SERIALIZABLE_STATE
+ bool operator==(const EnrichedMarkdownTextAccessibilityLabelsStruct&) const = default;
+
+ folly::dynamic toDynamic() const {
+ folly::dynamic result = folly::dynamic::object();
+ result["list"] = ::facebook::react::toDynamic(list);
+ result["blockquote"] = ::facebook::react::toDynamic(blockquote);
+ result["table"] = ::facebook::react::toDynamic(table);
+ result["math"] = ::facebook::react::toDynamic(math);
+ result["rotor"] = ::facebook::react::toDynamic(rotor);
+ return result;
+ }
+#endif
+};
+
+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextAccessibilityLabelsStruct &result) {
+ auto map = (std::unordered_map)value;
+
+ auto tmp_list = map.find("list");
+ if (tmp_list != map.end()) {
+ fromRawValue(context, tmp_list->second, result.list);
+ }
+ auto tmp_blockquote = map.find("blockquote");
+ if (tmp_blockquote != map.end()) {
+ fromRawValue(context, tmp_blockquote->second, result.blockquote);
+ }
+ auto tmp_table = map.find("table");
+ if (tmp_table != map.end()) {
+ fromRawValue(context, tmp_table->second, result.table);
+ }
+ auto tmp_math = map.find("math");
+ if (tmp_math != map.end()) {
+ fromRawValue(context, tmp_math->second, result.math);
+ }
+ auto tmp_rotor = map.find("rotor");
+ if (tmp_rotor != map.end()) {
+ fromRawValue(context, tmp_rotor->second, result.rotor);
+ }
+}
+
+static inline std::string toString(const EnrichedMarkdownTextAccessibilityLabelsStruct &value) {
+ return "[Object EnrichedMarkdownTextAccessibilityLabelsStruct]";
+}
+
+#ifdef RN_SERIALIZABLE_STATE
+static inline folly::dynamic toDynamic(const EnrichedMarkdownTextAccessibilityLabelsStruct &value) {
+ return value.toDynamic();
+}
+#endif
+class EnrichedMarkdownTextProps final : public ViewProps {
+ public:
+ EnrichedMarkdownTextProps() = default;
+ EnrichedMarkdownTextProps(const PropsParserContext& context, const EnrichedMarkdownTextProps &sourceProps, const RawProps &rawProps);
+
+#pragma mark - Props
+
+ std::string markdown{};
+ EnrichedMarkdownTextMarkdownStyleStruct markdownStyle{};
+ bool enableImagePress{false};
+ bool enableTaskListItemToggle{true};
+ bool enableCodeBlockPress{false};
+ bool enableBlockContextMenu{true};
+ bool enableLinkPreview{true};
+ bool selectable{false};
+ SharedColor selectionColor{};
+ SharedColor selectionHandleColor{};
+ EnrichedMarkdownTextMd4cFlagsStruct md4cFlags{};
+ bool isGFM{false};
+ bool allowFontScaling{true};
+ Float maxFontSizeMultiplier{0.0};
+ bool allowTrailingMargin{false};
+ bool streamingAnimation{false};
+ EnrichedMarkdownTextStreamingConfigStruct streamingConfig{};
+ std::string spoilerOverlay{std::string{"particles"}};
+ std::vector contextMenuItems{};
+ std::vector imageRequestHeaders{};
+ std::vector linkPillContent{};
+ EnrichedMarkdownTextLinkRecognitionStruct linkRecognition{};
+ std::vector linkContextMenuItems{};
+ EnrichedMarkdownTextSelectionMenuConfigStruct selectionMenuConfig{};
+ EnrichedMarkdownTextAccessibilityLabelsStruct accessibilityLabels{};
+ std::string textBreakStrategy{std::string{"highQuality"}};
+ std::string lineBreakStrategyIOS{std::string{"none"}};
+ std::string writingDirection{std::string{"first-strong"}};
+ int numberOfLines{0};
+ std::string ellipsizeMode{std::string{"tail"}};
+
+ #ifdef RN_SERIALIZABLE_STATE
+ ComponentName getDiffPropsImplementationTarget() const override;
+
+ folly::dynamic getDiffProps(const Props* prevProps) const override;
+ #endif
+
+
+};
+
+} // namespace facebook::react
diff --git a/packages/react-native-enriched-markdown/android/generated/jni/react/renderer/components/EnrichedMarkdownTextSpec/ShadowNodes.cpp b/packages/react-native-enriched-markdown/android/generated/jni/react/renderer/components/EnrichedMarkdownTextSpec/ShadowNodes.cpp
new file mode 100644
index 000000000..feadde330
--- /dev/null
+++ b/packages/react-native-enriched-markdown/android/generated/jni/react/renderer/components/EnrichedMarkdownTextSpec/ShadowNodes.cpp
@@ -0,0 +1,17 @@
+
+/**
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
+ *
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
+ * once the code is regenerated.
+ *
+ * @generated by codegen project: GenerateShadowNodeCpp.js
+ */
+
+#include "ShadowNodes.h"
+
+namespace facebook::react {
+
+
+
+} // namespace facebook::react
diff --git a/packages/react-native-enriched-markdown/android/generated/jni/react/renderer/components/EnrichedMarkdownTextSpec/ShadowNodes.h b/packages/react-native-enriched-markdown/android/generated/jni/react/renderer/components/EnrichedMarkdownTextSpec/ShadowNodes.h
new file mode 100644
index 000000000..615dfa650
--- /dev/null
+++ b/packages/react-native-enriched-markdown/android/generated/jni/react/renderer/components/EnrichedMarkdownTextSpec/ShadowNodes.h
@@ -0,0 +1,23 @@
+
+/**
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
+ *
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
+ * once the code is regenerated.
+ *
+ * @generated by codegen project: GenerateShadowNodeH.js
+ */
+
+#pragma once
+
+#include "EventEmitters.h"
+#include "Props.h"
+#include "States.h"
+#include
+#include
+
+namespace facebook::react {
+
+
+
+} // namespace facebook::react
diff --git a/packages/react-native-enriched-markdown/android/generated/jni/react/renderer/components/EnrichedMarkdownTextSpec/States.cpp b/packages/react-native-enriched-markdown/android/generated/jni/react/renderer/components/EnrichedMarkdownTextSpec/States.cpp
new file mode 100644
index 000000000..1dbb184cb
--- /dev/null
+++ b/packages/react-native-enriched-markdown/android/generated/jni/react/renderer/components/EnrichedMarkdownTextSpec/States.cpp
@@ -0,0 +1,16 @@
+
+/**
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
+ *
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
+ * once the code is regenerated.
+ *
+ * @generated by codegen project: GenerateStateCpp.js
+ */
+#include "States.h"
+
+namespace facebook::react {
+
+
+
+} // namespace facebook::react
diff --git a/packages/react-native-enriched-markdown/android/generated/jni/react/renderer/components/EnrichedMarkdownTextSpec/States.h b/packages/react-native-enriched-markdown/android/generated/jni/react/renderer/components/EnrichedMarkdownTextSpec/States.h
new file mode 100644
index 000000000..2e55bce75
--- /dev/null
+++ b/packages/react-native-enriched-markdown/android/generated/jni/react/renderer/components/EnrichedMarkdownTextSpec/States.h
@@ -0,0 +1,20 @@
+/**
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
+ *
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
+ * once the code is regenerated.
+ *
+ * @generated by codegen project: GenerateStateH.js
+ */
+#pragma once
+
+#include
+#ifdef RN_SERIALIZABLE_STATE
+#include
+#endif
+
+namespace facebook::react {
+
+
+
+} // namespace facebook::react
\ No newline at end of file
diff --git a/packages/react-native-enriched-markdown/android/gradle.properties b/packages/react-native-enriched-markdown/android/gradle.properties
new file mode 100644
index 000000000..ac90eaea9
--- /dev/null
+++ b/packages/react-native-enriched-markdown/android/gradle.properties
@@ -0,0 +1,5 @@
+EnrichedMarkdown_kotlinVersion=2.0.21
+EnrichedMarkdown_minSdkVersion=24
+EnrichedMarkdown_targetSdkVersion=34
+EnrichedMarkdown_compileSdkVersion=35
+EnrichedMarkdown_ndkVersion=27.1.12297006
diff --git a/packages/react-native-enriched-markdown/android/src/main/AndroidManifest.xml b/packages/react-native-enriched-markdown/android/src/main/AndroidManifest.xml
new file mode 100644
index 000000000..a2f47b605
--- /dev/null
+++ b/packages/react-native-enriched-markdown/android/src/main/AndroidManifest.xml
@@ -0,0 +1,2 @@
+
+
diff --git a/packages/react-native-enriched-markdown/android/src/main/baseline-prof.txt b/packages/react-native-enriched-markdown/android/src/main/baseline-prof.txt
new file mode 100644
index 000000000..c8b634ee1
--- /dev/null
+++ b/packages/react-native-enriched-markdown/android/src/main/baseline-prof.txt
@@ -0,0 +1,326 @@
+# Baseline Profile for react-native-enriched-markdown
+# These classes will be AOT compiled during app install
+# to improve cold start performance.
+
+# Core View and Rendering
+Lcom/swmansion/enriched/markdown/EnrichedMarkdown;
+Lcom/swmansion/enriched/markdown/EnrichedMarkdown$DirtyFlag;
+Lcom/swmansion/enriched/markdown/EnrichedMarkdownInternalText;
+Lcom/swmansion/enriched/markdown/EnrichedMarkdownManager;
+Lcom/swmansion/enriched/markdown/EnrichedMarkdownText;
+Lcom/swmansion/enriched/markdown/EnrichedMarkdownTextLayoutManager;
+Lcom/swmansion/enriched/markdown/EnrichedMarkdownTextManager;
+Lcom/swmansion/enriched/markdown/EnrichedMarkdownTextPackage;
+Lcom/swmansion/enriched/markdown/MeasurementStore;
+Lcom/swmansion/enriched/markdown/MeasurementStore$FontScalingSettings;
+Lcom/swmansion/enriched/markdown/MeasurementStore$MeasurementParams;
+Lcom/swmansion/enriched/markdown/MeasurementStore$PaintParams;
+
+# Accessibility
+Lcom/swmansion/enriched/markdown/accessibility/AccessibilityLabels;
+Lcom/swmansion/enriched/markdown/accessibility/AccessibleMarkdownTextView;
+Lcom/swmansion/enriched/markdown/accessibility/MarkdownAccessibilityHelper;
+Lcom/swmansion/enriched/markdown/accessibility/MarkdownAccessibilityHelper$AccessibilityItem;
+Lcom/swmansion/enriched/markdown/accessibility/MarkdownAccessibilityHelper$ListItemInfo;
+Lcom/swmansion/enriched/markdown/accessibility/MarkdownAccessibilityHelper$SpanRange;
+Lcom/swmansion/enriched/markdown/accessibility/MarkdownAccessibilityHelperKt;
+
+# Events
+Lcom/swmansion/enriched/markdown/events/ContextMenuItemPressEvent;
+Lcom/swmansion/enriched/markdown/events/LinkLongPressEvent;
+Lcom/swmansion/enriched/markdown/events/LinkPressEvent;
+Lcom/swmansion/enriched/markdown/events/TaskListItemPressEvent;
+
+# Input - Core
+Lcom/swmansion/enriched/markdown/input/EnrichedMarkdownTextInputManager;
+Lcom/swmansion/enriched/markdown/input/EnrichedMarkdownTextInputView;
+Lcom/swmansion/enriched/markdown/input/EnrichedMarkdownTextInputView$MentionCandidate;
+Lcom/swmansion/enriched/markdown/input/EnrichedMarkdownTextInputViewKt;
+
+# Input - Autolink
+Lcom/swmansion/enriched/markdown/input/autolink/AutoDetectedLinkColorSpan;
+Lcom/swmansion/enriched/markdown/input/autolink/AutoDetectedLinkMarkerSpan;
+Lcom/swmansion/enriched/markdown/input/autolink/AutoDetectedLinkUnderlineSpan;
+Lcom/swmansion/enriched/markdown/input/autolink/AutoLinkDetector;
+Lcom/swmansion/enriched/markdown/input/autolink/AutoLinkDetectorKt;
+Lcom/swmansion/enriched/markdown/utils/common/LinkRegexConfig;
+
+# Input - Detection
+Lcom/swmansion/enriched/markdown/input/detection/DetectorPipeline;
+Lcom/swmansion/enriched/markdown/input/detection/TextDetector;
+Lcom/swmansion/enriched/markdown/input/detection/WordResult;
+Lcom/swmansion/enriched/markdown/input/detection/WordsUtils;
+
+# Input - Editing
+Lcom/swmansion/enriched/markdown/input/editing/InputConnectionWrapper;
+Lcom/swmansion/enriched/markdown/input/editing/MarkdownEditableFactory;
+Lcom/swmansion/enriched/markdown/input/editing/MarkdownTextWatcher;
+
+# Input - Events
+Lcom/swmansion/enriched/markdown/input/events/OnCaretRectChangeEvent;
+Lcom/swmansion/enriched/markdown/input/events/OnChangeMentionEvent;
+Lcom/swmansion/enriched/markdown/input/events/OnChangeMarkdownEvent;
+Lcom/swmansion/enriched/markdown/input/events/OnChangeSelectionEvent;
+Lcom/swmansion/enriched/markdown/input/events/OnChangeStateEvent;
+Lcom/swmansion/enriched/markdown/input/events/OnChangeTextEvent;
+Lcom/swmansion/enriched/markdown/input/events/OnContextMenuItemPressEvent;
+Lcom/swmansion/enriched/markdown/input/events/OnEndMentionEvent;
+Lcom/swmansion/enriched/markdown/input/events/OnInputBlurEvent;
+Lcom/swmansion/enriched/markdown/input/events/OnInputFocusEvent;
+Lcom/swmansion/enriched/markdown/input/events/OnLinkDetectedEvent;
+Lcom/swmansion/enriched/markdown/input/events/OnRequestCaretRectResultEvent;
+Lcom/swmansion/enriched/markdown/input/events/OnRequestMarkdownResultEvent;
+Lcom/swmansion/enriched/markdown/input/events/OnStartMentionEvent;
+
+# Input - Formatting
+Lcom/swmansion/enriched/markdown/input/formatting/FormattingStore;
+Lcom/swmansion/enriched/markdown/input/formatting/FormattingStore$EditOverlap;
+Lcom/swmansion/enriched/markdown/input/formatting/InputFormatter;
+Lcom/swmansion/enriched/markdown/input/formatting/InputParser;
+Lcom/swmansion/enriched/markdown/input/formatting/InputRemend;
+Lcom/swmansion/enriched/markdown/input/formatting/InputRemend$DelimiterPair;
+Lcom/swmansion/enriched/markdown/input/formatting/MarkdownSerializer;
+Lcom/swmansion/enriched/markdown/input/formatting/MarkdownSerializer$BoundaryEvent;
+Lcom/swmansion/enriched/markdown/input/formatting/MarkdownSpan;
+Lcom/swmansion/enriched/markdown/input/formatting/MarkdownSpan$SpanDescriptor;
+Lcom/swmansion/enriched/markdown/input/formatting/ParseResult;
+Lcom/swmansion/enriched/markdown/input/formatting/ParseResult$ActiveStyle;
+
+# Input - Layout
+Lcom/swmansion/enriched/markdown/input/layout/InputEventEmitter;
+Lcom/swmansion/enriched/markdown/input/layout/InputLayoutManager;
+Lcom/swmansion/enriched/markdown/input/layout/InputMeasurementStore;
+Lcom/swmansion/enriched/markdown/input/layout/InputMeasurementStore$MeasurementParams;
+Lcom/swmansion/enriched/markdown/input/layout/InputMeasurementStore$PaintParams;
+
+# Input - Model
+Lcom/swmansion/enriched/markdown/input/model/CaretRect;
+Lcom/swmansion/enriched/markdown/input/model/FormattingRange;
+Lcom/swmansion/enriched/markdown/input/model/InputFormatterStyle;
+Lcom/swmansion/enriched/markdown/input/model/InputLinkVariantStyle;
+Lcom/swmansion/enriched/markdown/input/model/StyleType;
+
+# Input - Styles
+Lcom/swmansion/enriched/markdown/input/styles/BoldStyleHandler;
+Lcom/swmansion/enriched/markdown/input/styles/ItalicStyleHandler;
+Lcom/swmansion/enriched/markdown/input/styles/LinkStyleHandler;
+Lcom/swmansion/enriched/markdown/input/styles/MarkdownBoldColorSpan;
+Lcom/swmansion/enriched/markdown/input/styles/MarkdownBoldSpan;
+Lcom/swmansion/enriched/markdown/input/styles/MarkdownItalicColorSpan;
+Lcom/swmansion/enriched/markdown/input/styles/MarkdownItalicSpan;
+Lcom/swmansion/enriched/markdown/input/styles/MarkdownLinkBackgroundColorSpan;
+Lcom/swmansion/enriched/markdown/input/styles/MarkdownLinkColorSpan;
+Lcom/swmansion/enriched/markdown/input/styles/MarkdownLinkColorSpan$ResolvedLinkStyle;
+Lcom/swmansion/enriched/markdown/input/styles/MarkdownLinkUnderlineSpan;
+Lcom/swmansion/enriched/markdown/input/styles/MarkdownSpoilerBackgroundSpan;
+Lcom/swmansion/enriched/markdown/input/styles/MarkdownSpoilerColorSpan;
+Lcom/swmansion/enriched/markdown/input/styles/MarkdownStrikethroughSpan;
+Lcom/swmansion/enriched/markdown/input/styles/MarkdownUnderlineSpan;
+Lcom/swmansion/enriched/markdown/input/styles/SpoilerStyleHandler;
+Lcom/swmansion/enriched/markdown/input/styles/StrikethroughStyleHandler;
+Lcom/swmansion/enriched/markdown/input/styles/StyleHandler;
+Lcom/swmansion/enriched/markdown/input/styles/StyleMergingConfig;
+Lcom/swmansion/enriched/markdown/input/styles/UnderlineStyleHandler;
+
+# Input - Toolbar
+Lcom/swmansion/enriched/markdown/input/toolbar/FormatMenuConfig;
+Lcom/swmansion/enriched/markdown/input/toolbar/InputContextMenu;
+Lcom/swmansion/enriched/markdown/input/toolbar/InputSelectionMenuConfig;
+
+# Parser
+Lcom/swmansion/enriched/markdown/parser/Md4cFlags;
+Lcom/swmansion/enriched/markdown/parser/MarkdownASTNode;
+Lcom/swmansion/enriched/markdown/parser/MarkdownASTNode$NodeType;
+Lcom/swmansion/enriched/markdown/parser/MarkdownASTNodeKt;
+Lcom/swmansion/enriched/markdown/parser/Parser;
+
+# Renderer Classes
+Lcom/swmansion/enriched/markdown/renderer/BaselineShiftRenderer;
+Lcom/swmansion/enriched/markdown/renderer/BlockStyle;
+Lcom/swmansion/enriched/markdown/renderer/BlockStyleContext;
+Lcom/swmansion/enriched/markdown/renderer/BlockStyleEntry;
+Lcom/swmansion/enriched/markdown/renderer/BlockType;
+Lcom/swmansion/enriched/markdown/renderer/BlockType$ListType;
+Lcom/swmansion/enriched/markdown/renderer/BlockquoteRenderer;
+Lcom/swmansion/enriched/markdown/renderer/CodeBlockRenderer;
+Lcom/swmansion/enriched/markdown/renderer/CodeBlockRenderer$CodeBlockBoundaryPaddingSpan;
+Lcom/swmansion/enriched/markdown/renderer/CodeRenderer;
+Lcom/swmansion/enriched/markdown/renderer/EmphasisRenderer;
+Lcom/swmansion/enriched/markdown/renderer/HeadingRenderer;
+Lcom/swmansion/enriched/markdown/renderer/HighlightRenderer;
+Lcom/swmansion/enriched/markdown/renderer/ImageRenderer;
+Lcom/swmansion/enriched/markdown/renderer/LineBreakRenderer;
+Lcom/swmansion/enriched/markdown/renderer/LinkRenderer;
+Lcom/swmansion/enriched/markdown/renderer/ListContextManager;
+Lcom/swmansion/enriched/markdown/renderer/ListContextManager$ListEntryState;
+Lcom/swmansion/enriched/markdown/renderer/ListItemRenderer;
+Lcom/swmansion/enriched/markdown/renderer/ListRenderer;
+Lcom/swmansion/enriched/markdown/renderer/MathInlineRenderer;
+Lcom/swmansion/enriched/markdown/renderer/NodeRenderer;
+Lcom/swmansion/enriched/markdown/renderer/NodeRenderer$DeferredSpan;
+Lcom/swmansion/enriched/markdown/renderer/ParagraphRenderer;
+Lcom/swmansion/enriched/markdown/renderer/Renderer;
+Lcom/swmansion/enriched/markdown/renderer/RendererConfig;
+Lcom/swmansion/enriched/markdown/renderer/RendererFactory;
+Lcom/swmansion/enriched/markdown/renderer/SpanStyleCache;
+Lcom/swmansion/enriched/markdown/renderer/SpoilerRenderer;
+Lcom/swmansion/enriched/markdown/renderer/StrikethroughRenderer;
+Lcom/swmansion/enriched/markdown/renderer/StrongRenderer;
+Lcom/swmansion/enriched/markdown/renderer/SubscriptRenderer;
+Lcom/swmansion/enriched/markdown/renderer/SuperscriptRenderer;
+Lcom/swmansion/enriched/markdown/renderer/TextRenderer;
+Lcom/swmansion/enriched/markdown/renderer/ThematicBreakRenderer;
+Lcom/swmansion/enriched/markdown/renderer/UnderlineRenderer;
+
+# Spans
+Lcom/swmansion/enriched/markdown/spans/BaselineShiftSpan;
+Lcom/swmansion/enriched/markdown/spans/BaselineShiftSpan$SpanType;
+Lcom/swmansion/enriched/markdown/spans/BaseListSpan;
+Lcom/swmansion/enriched/markdown/spans/BlockquoteSpan;
+Lcom/swmansion/enriched/markdown/spans/CodeBackgroundSpan;
+Lcom/swmansion/enriched/markdown/spans/CodeBlockSpan;
+Lcom/swmansion/enriched/markdown/spans/CodeSpan;
+Lcom/swmansion/enriched/markdown/spans/EmphasisSpan;
+Lcom/swmansion/enriched/markdown/spans/FadeInSpan;
+Lcom/swmansion/enriched/markdown/spans/HeadingSpan;
+Lcom/swmansion/enriched/markdown/spans/HighlightSpan;
+Lcom/swmansion/enriched/markdown/spans/ImageSpan;
+Lcom/swmansion/enriched/markdown/spans/ImageSpan$CacheKey;
+Lcom/swmansion/enriched/markdown/spans/ImageSpan$ScaledImageDrawable;
+Lcom/swmansion/enriched/markdown/spans/LineHeightSpan;
+Lcom/swmansion/enriched/markdown/spans/LinkSpan;
+Lcom/swmansion/enriched/markdown/spans/MarginBottomSpan;
+Lcom/swmansion/enriched/markdown/spans/MathInlinePlaceholderSpan;
+Lcom/swmansion/enriched/markdown/spans/MathInlineSpan;
+Lcom/swmansion/enriched/markdown/spans/MathMeasureRequest;
+Lcom/swmansion/enriched/markdown/spans/MathMetrics;
+Lcom/swmansion/enriched/markdown/spans/MathRenderMode;
+Lcom/swmansion/enriched/markdown/spans/OrderedListSpan;
+Lcom/swmansion/enriched/markdown/spans/SpoilerSpan;
+Lcom/swmansion/enriched/markdown/spans/StrikethroughSpan;
+Lcom/swmansion/enriched/markdown/spans/StrongSpan;
+Lcom/swmansion/enriched/markdown/spans/TaskListSpan;
+Lcom/swmansion/enriched/markdown/spans/TextSpan;
+Lcom/swmansion/enriched/markdown/spans/ThematicBreakSpan;
+Lcom/swmansion/enriched/markdown/spans/UnorderedListSpan;
+
+# Spoiler
+Lcom/swmansion/enriched/markdown/spoiler/ParticleStrategy;
+Lcom/swmansion/enriched/markdown/spoiler/SegmentKey;
+Lcom/swmansion/enriched/markdown/spoiler/SegmentRect;
+Lcom/swmansion/enriched/markdown/spoiler/SolidStrategy;
+Lcom/swmansion/enriched/markdown/spoiler/SolidStrategy$SegmentState;
+Lcom/swmansion/enriched/markdown/spoiler/SpoilerAnimator;
+Lcom/swmansion/enriched/markdown/spoiler/SpoilerCapable;
+Lcom/swmansion/enriched/markdown/spoiler/SpoilerConstantsKt;
+Lcom/swmansion/enriched/markdown/spoiler/SpoilerDrawContext;
+Lcom/swmansion/enriched/markdown/spoiler/SpoilerDrawUtilsKt;
+Lcom/swmansion/enriched/markdown/spoiler/SpoilerOverlay;
+Lcom/swmansion/enriched/markdown/spoiler/SpoilerOverlayDrawer;
+Lcom/swmansion/enriched/markdown/spoiler/SpoilerParticleDrawable;
+Lcom/swmansion/enriched/markdown/spoiler/SpoilerParticleDrawable$DotType;
+Lcom/swmansion/enriched/markdown/spoiler/SpoilerStrategy;
+Lcom/swmansion/enriched/markdown/spoiler/SpoilerStrategyKt;
+
+# Style Configuration
+Lcom/swmansion/enriched/markdown/styles/BaseBlockStyle;
+Lcom/swmansion/enriched/markdown/styles/BlockquoteStyle;
+Lcom/swmansion/enriched/markdown/styles/CodeBlockStyle;
+Lcom/swmansion/enriched/markdown/styles/CodeStyle;
+Lcom/swmansion/enriched/markdown/styles/EmphasisStyle;
+Lcom/swmansion/enriched/markdown/styles/HeadingStyle;
+Lcom/swmansion/enriched/markdown/styles/HighlightStyle;
+Lcom/swmansion/enriched/markdown/styles/ImageStyle;
+Lcom/swmansion/enriched/markdown/styles/InlineImageStyle;
+Lcom/swmansion/enriched/markdown/styles/InlineMathStyle;
+Lcom/swmansion/enriched/markdown/styles/LinkStyle;
+Lcom/swmansion/enriched/markdown/styles/LinkVariantEntry;
+Lcom/swmansion/enriched/markdown/styles/ListStyle;
+Lcom/swmansion/enriched/markdown/styles/MathStyle;
+Lcom/swmansion/enriched/markdown/styles/ParagraphStyle;
+Lcom/swmansion/enriched/markdown/styles/SpoilerStyle;
+Lcom/swmansion/enriched/markdown/styles/StrikethroughStyle;
+Lcom/swmansion/enriched/markdown/styles/SubscriptStyle;
+Lcom/swmansion/enriched/markdown/styles/SuperscriptStyle;
+Lcom/swmansion/enriched/markdown/styles/StrongStyle;
+Lcom/swmansion/enriched/markdown/styles/StyleConfig;
+Lcom/swmansion/enriched/markdown/styles/StyleParser;
+Lcom/swmansion/enriched/markdown/styles/TableStyle;
+Lcom/swmansion/enriched/markdown/styles/TaskListStyle;
+Lcom/swmansion/enriched/markdown/styles/TextAlignment;
+Lcom/swmansion/enriched/markdown/styles/ThematicBreakStyle;
+Lcom/swmansion/enriched/markdown/styles/UnderlineStyle;
+
+# Utilities - Common
+Lcom/swmansion/enriched/markdown/utils/common/BreakStrategyUtils;
+Lcom/swmansion/enriched/markdown/utils/common/FeatureFlags;
+Lcom/swmansion/enriched/markdown/segments/MarkdownSegment;
+Lcom/swmansion/enriched/markdown/segments/MarkdownSegment$Math;
+Lcom/swmansion/enriched/markdown/segments/MarkdownSegment$Table;
+Lcom/swmansion/enriched/markdown/segments/MarkdownSegment$Text;
+Lcom/swmansion/enriched/markdown/segments/MarkdownSegmentKt;
+Lcom/swmansion/enriched/markdown/segments/MarkdownSegmentRenderer;
+Lcom/swmansion/enriched/markdown/utils/common/MarkdownViewManagerUtilsKt;
+Lcom/swmansion/enriched/markdown/utils/common/MotionPreferencesKt;
+Lcom/swmansion/enriched/markdown/utils/common/ReadableMapExtensionsKt;
+Lcom/swmansion/enriched/markdown/utils/common/ReconciliationResult;
+Lcom/swmansion/enriched/markdown/segments/RenderedSegment;
+Lcom/swmansion/enriched/markdown/segments/RenderedSegment$Math;
+Lcom/swmansion/enriched/markdown/segments/RenderedSegment$Table;
+Lcom/swmansion/enriched/markdown/segments/RenderedSegment$Text;
+Lcom/swmansion/enriched/markdown/segments/SegmentReconciler;
+Lcom/swmansion/enriched/markdown/segments/SegmentSignature;
+Lcom/swmansion/enriched/markdown/utils/common/StreamingMarkdownFilter;
+Lcom/swmansion/enriched/markdown/utils/common/TableStreamingMode;
+Lcom/swmansion/enriched/markdown/utils/common/layout/RTLUtilsKt;
+Lcom/swmansion/enriched/markdown/utils/common/serialization/MarkdownASTSerializer;
+
+# Utilities - Input
+Lcom/swmansion/enriched/markdown/utils/input/AutoCapitalizeUtils;
+Lcom/swmansion/enriched/markdown/utils/input/BorderPropsApplicator;
+Lcom/swmansion/enriched/markdown/utils/input/MarkdownStyleParser;
+
+# Utilities - Text
+Lcom/swmansion/enriched/markdown/utils/text/ImageCache;
+Lcom/swmansion/enriched/markdown/utils/text/ImageDownloader;
+Lcom/swmansion/enriched/markdown/utils/text/TailFadeInAnimator;
+Lcom/swmansion/enriched/markdown/utils/text/conversion/HTMLGenerator;
+Lcom/swmansion/enriched/markdown/utils/text/conversion/HTMLGenerator$CachedStyles;
+Lcom/swmansion/enriched/markdown/utils/text/conversion/HTMLGenerator$GeneratorState;
+Lcom/swmansion/enriched/markdown/utils/text/conversion/HTMLGenerator$ParagraphInfo;
+Lcom/swmansion/enriched/markdown/utils/text/conversion/MarkdownExtractor;
+Lcom/swmansion/enriched/markdown/utils/text/conversion/MarkdownExtractor$ExtractionState;
+Lcom/swmansion/enriched/markdown/utils/text/conversion/MarkdownExtractor$HeadingAccumulator;
+Lcom/swmansion/enriched/markdown/utils/text/extensions/ParagraphUtilsKt;
+Lcom/swmansion/enriched/markdown/utils/text/extensions/SpannableExtensionsKt;
+Lcom/swmansion/enriched/markdown/utils/text/extensions/TextPaintExtensionsKt;
+Lcom/swmansion/enriched/markdown/utils/text/interaction/CheckboxTouchHelper;
+Lcom/swmansion/enriched/markdown/utils/text/interaction/TaskListHitTestResult;
+Lcom/swmansion/enriched/markdown/utils/text/interaction/TaskListTapUtils;
+Lcom/swmansion/enriched/markdown/utils/text/interaction/TaskListToggleUtils;
+Lcom/swmansion/enriched/markdown/utils/text/span/BlockSpacingKt;
+Lcom/swmansion/enriched/markdown/utils/text/span/SpanFlagsKt;
+Lcom/swmansion/enriched/markdown/utils/text/view/LinkEventsKt;
+Lcom/swmansion/enriched/markdown/utils/text/view/LinkLongPressMovementMethod;
+Lcom/swmansion/enriched/markdown/utils/text/view/SelectionActionModeKt;
+Lcom/swmansion/enriched/markdown/utils/text/view/SelectionMenuConfig;
+Lcom/swmansion/enriched/markdown/utils/text/view/TextSelectionColorsKt;
+Lcom/swmansion/enriched/markdown/utils/text/view/TextViewSetupKt;
+
+# Views
+Lcom/swmansion/enriched/markdown/segments/BlockSegmentView;
+Lcom/swmansion/enriched/markdown/views/ContextMenuPopup;
+Lcom/swmansion/enriched/markdown/views/ContextMenuPopup$Builder;
+Lcom/swmansion/enriched/markdown/views/ContextMenuPopup$Icon;
+Lcom/swmansion/enriched/markdown/views/ContextMenuPopup$MenuItem;
+Lcom/swmansion/enriched/markdown/segments/MathContainerView;
+Lcom/swmansion/enriched/markdown/segments/TableContainerView;
+Lcom/swmansion/enriched/markdown/segments/TableContainerView$CellBackgroundView;
+Lcom/swmansion/enriched/markdown/segments/TableContainerView$CellTextView;
+Lcom/swmansion/enriched/markdown/segments/TableContainerView$GridContainerView;
+Lcom/swmansion/enriched/markdown/segments/TableContainerView$HeaderTypefaceSpan;
+Lcom/swmansion/enriched/markdown/segments/TableContainerView$TableCellData;
+
+# Math (optional, from src/math source set)
+Lcom/swmansion/enriched/markdown/spans/MathMeasureHelper;
+Lcom/swmansion/enriched/markdown/segments/MathContainerView$RaTeXCanvasView;
diff --git a/packages/react-native-enriched-markdown/android/src/main/cpp/jni-adapter.cpp b/packages/react-native-enriched-markdown/android/src/main/cpp/jni-adapter.cpp
new file mode 100644
index 000000000..64ad81a80
--- /dev/null
+++ b/packages/react-native-enriched-markdown/android/src/main/cpp/jni-adapter.cpp
@@ -0,0 +1,476 @@
+#include "CodeBlockHighlighter.hpp"
+#include "CodeBlockLanguages.hpp"
+#include "MD4CParser.hpp"
+#include "TextLinkRecognizer.hpp"
+#include
+#include
+#include
+#include
+#include
+
+using namespace Markdown;
+
+#define ENRICHEDMARKDOWN_LOG_TAG "EnrichedMarkdownJNI"
+#define LOGI(...) __android_log_print(ANDROID_LOG_INFO, ENRICHEDMARKDOWN_LOG_TAG, __VA_ARGS__)
+#define LOGE(...) __android_log_print(ANDROID_LOG_ERROR, ENRICHEDMARKDOWN_LOG_TAG, __VA_ARGS__)
+
+// Helper function to convert C++ NodeType to Kotlin enum ordinal
+static jint nodeTypeToJavaOrdinal(NodeType type) {
+ switch (type) {
+ case NodeType::Document:
+ return 0;
+ case NodeType::Paragraph:
+ return 1;
+ case NodeType::Text:
+ return 2;
+ case NodeType::Link:
+ return 3;
+ case NodeType::Heading:
+ return 4;
+ case NodeType::LineBreak:
+ return 5;
+ case NodeType::Strong:
+ return 6;
+ case NodeType::Emphasis:
+ return 7;
+ case NodeType::Strikethrough:
+ return 8;
+ case NodeType::Underline:
+ return 9;
+ case NodeType::Code:
+ return 10;
+ case NodeType::Image:
+ return 11;
+ case NodeType::Blockquote:
+ return 12;
+ case NodeType::UnorderedList:
+ return 13;
+ case NodeType::OrderedList:
+ return 14;
+ case NodeType::ListItem:
+ return 15;
+ case NodeType::CodeBlock:
+ return 16;
+ case NodeType::ThematicBreak:
+ return 17;
+ case NodeType::Table:
+ return 18;
+ case NodeType::TableHead:
+ return 19;
+ case NodeType::TableBody:
+ return 20;
+ case NodeType::TableRow:
+ return 21;
+ case NodeType::TableHeaderCell:
+ return 22;
+ case NodeType::TableCell:
+ return 23;
+ case NodeType::LatexMathInline:
+ return 24;
+ case NodeType::LatexMathDisplay:
+ return 25;
+ case NodeType::Spoiler:
+ return 26;
+ case NodeType::Superscript:
+ return 27;
+ case NodeType::Subscript:
+ return 28;
+ case NodeType::Highlight:
+ return 29;
+ case NodeType::SoftBreak:
+ return 30;
+ case NodeType::BlankLine:
+ return 31;
+ case NodeType::Admonition:
+ return 32;
+ case NodeType::Video:
+ return 33;
+ default:
+ return 0;
+ }
+}
+
+// Helper function to create a Kotlin MarkdownASTNode object from C++ AST node
+static jobject createJavaNode(JNIEnv *env, std::shared_ptr node) {
+ if (!node) {
+ return nullptr;
+ }
+
+ // Find the MarkdownASTNode class
+ jclass nodeClass = env->FindClass("com/swmansion/enriched/markdown/parser/MarkdownASTNode");
+ if (!nodeClass) {
+ LOGE("Failed to find MarkdownASTNode class");
+ return nullptr;
+ }
+
+ // Find the NodeType enum class
+ jclass nodeTypeClass = env->FindClass("com/swmansion/enriched/markdown/parser/MarkdownASTNode$NodeType");
+ if (!nodeTypeClass) {
+ LOGE("Failed to find NodeType enum class");
+ return nullptr;
+ }
+
+ // Get the enum values array
+ jmethodID valuesMethod = env->GetStaticMethodID(
+ nodeTypeClass, "values", "()[Lcom/swmansion/enriched/markdown/parser/MarkdownASTNode$NodeType;");
+ if (!valuesMethod) {
+ LOGE("Failed to find NodeType.values() method");
+ return nullptr;
+ }
+
+ jobjectArray enumValues = (jobjectArray)env->CallStaticObjectMethod(nodeTypeClass, valuesMethod);
+ if (!enumValues) {
+ LOGE("Failed to get NodeType enum values");
+ return nullptr;
+ }
+
+ // Get the enum value for this node type
+ jint ordinal = nodeTypeToJavaOrdinal(node->type);
+ jobject nodeTypeEnum = env->GetObjectArrayElement(enumValues, ordinal);
+ if (!nodeTypeEnum) {
+ LOGE("Failed to get NodeType enum value at index %d", ordinal);
+ return nullptr;
+ }
+
+ // Create content string
+ jstring contentStr = env->NewStringUTF(node->content.c_str());
+ if (!contentStr && !node->content.empty()) {
+ LOGE("Failed to create content string");
+ return nullptr;
+ }
+
+ // Create attributes HashMap
+ jclass mapClass = env->FindClass("java/util/HashMap");
+ jmethodID mapInit = env->GetMethodID(mapClass, "", "(I)V");
+ jmethodID mapPut = env->GetMethodID(mapClass, "put", "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;");
+
+ jobject attributesMap = env->NewObject(mapClass, mapInit, static_cast(node->attributes.size()));
+
+ for (const auto &pair : node->attributes) {
+ jstring key = env->NewStringUTF(pair.first.c_str());
+ jstring value = env->NewStringUTF(pair.second.c_str());
+ env->CallObjectMethod(attributesMap, mapPut, key, value);
+ env->DeleteLocalRef(key);
+ env->DeleteLocalRef(value);
+ }
+
+ // Create children ArrayList
+ jclass listClass = env->FindClass("java/util/ArrayList");
+ jmethodID listInit = env->GetMethodID(listClass, "", "(I)V");
+ jmethodID listAdd = env->GetMethodID(listClass, "add", "(Ljava/lang/Object;)Z");
+
+ jobject childrenList = env->NewObject(listClass, listInit, static_cast(node->children.size()));
+
+ for (const auto &child : node->children) {
+ jobject childObj = createJavaNode(env, child);
+ if (childObj) {
+ env->CallBooleanMethod(childrenList, listAdd, childObj);
+ env->DeleteLocalRef(childObj);
+ }
+ }
+
+ // Find the MarkdownASTNode constructor
+ // Constructor signature: (Lcom/swmansion/enriched/markdown/parser/MarkdownASTNode$NodeType;Ljava/lang/String;Ljava/util/Map;Ljava/util/List;)V
+ jmethodID constructor = env->GetMethodID(nodeClass, "",
+ "(Lcom/swmansion/enriched/markdown/parser/MarkdownASTNode$NodeType;Ljava/"
+ "lang/String;Ljava/util/Map;Ljava/util/List;)V");
+ if (!constructor) {
+ LOGE("Failed to find MarkdownASTNode constructor");
+ return nullptr;
+ }
+
+ // Create the Kotlin MarkdownASTNode object
+ jobject javaNode = env->NewObject(nodeClass, constructor, nodeTypeEnum, contentStr, attributesMap, childrenList);
+
+ // Clean up local references
+ env->DeleteLocalRef(nodeTypeClass);
+ env->DeleteLocalRef(enumValues);
+ env->DeleteLocalRef(nodeTypeEnum);
+ if (contentStr)
+ env->DeleteLocalRef(contentStr);
+ env->DeleteLocalRef(attributesMap);
+ env->DeleteLocalRef(childrenList);
+
+ return javaNode;
+}
+
+// UTF-16 via NewString, not NewStringUTF: the matcher's offsets must count the same units
+// the core maps back to bytes, and modified UTF-8 cannot carry 4-byte sequences.
+static std::u16string toUtf16(std::string_view utf8) {
+ std::u16string out;
+ out.reserve(utf8.size());
+ for (size_t i = 0; i < utf8.size();) {
+ unsigned char lead = static_cast(utf8[i]);
+ size_t length = lead < 0x80 ? 1 : lead < 0xE0 ? 2 : lead < 0xF0 ? 3 : 4;
+ if (i + length > utf8.size())
+ break;
+ uint32_t codePoint = length == 1 ? lead
+ : length == 2 ? ((lead & 0x1Fu) << 6) | (utf8[i + 1] & 0x3Fu)
+ : length == 3 ? ((lead & 0x0Fu) << 12) | ((utf8[i + 1] & 0x3Fu) << 6) | (utf8[i + 2] & 0x3Fu)
+ : ((lead & 0x07u) << 18) | ((utf8[i + 1] & 0x3Fu) << 12) |
+ ((utf8[i + 2] & 0x3Fu) << 6) | (utf8[i + 3] & 0x3Fu);
+ if (codePoint >= 0x10000) {
+ codePoint -= 0x10000;
+ out.push_back(static_cast(0xD800 + (codePoint >> 10)));
+ out.push_back(static_cast(0xDC00 + (codePoint & 0x3FF)));
+ } else {
+ out.push_back(static_cast(codePoint));
+ }
+ i += length;
+ }
+ return out;
+}
+
+static jobjectArray toJavaStrings(JNIEnv *env, const std::vector &strings) {
+ jclass stringClass = env->FindClass("java/lang/String");
+ jobjectArray array = env->NewObjectArray(static_cast(strings.size()), stringClass, nullptr);
+ for (size_t i = 0; i < strings.size(); i++) {
+ std::u16string utf16 = toUtf16(strings[i]);
+ jstring value = env->NewString(reinterpret_cast(utf16.data()), static_cast(utf16.size()));
+ env->SetObjectArrayElement(array, static_cast(i), value);
+ env->DeleteLocalRef(value);
+ }
+ env->DeleteLocalRef(stringClass);
+ return array;
+}
+
+// A host exception must not leak into later JNI calls; recognition is dropped for that call.
+static bool clearHostException(JNIEnv *env) {
+ if (!env->ExceptionCheck())
+ return false;
+ env->ExceptionDescribe();
+ env->ExceptionClear();
+ return true;
+}
+
+// Host matchers for the core recognizer: one JNI round trip per kind per parse, into TextLinkMatching.
+// Capturing env is safe because the core invokes these synchronously, inside this native call.
+static Markdown::TextLinkMatchers makeTextLinkMatchers(JNIEnv *env, jobject textConfig, jobject codeConfig) {
+ Markdown::TextLinkMatchers matchers;
+ if (!textConfig && !codeConfig)
+ return matchers;
+ jclass matchingClass = env->FindClass("com/swmansion/enriched/markdown/parser/TextLinkMatching");
+ if (!matchingClass) {
+ clearHostException(env);
+ return matchers;
+ }
+ const char *configSig = "com/swmansion/enriched/markdown/utils/common/LinkRegexConfig";
+
+ if (textConfig) {
+ jmethodID method = env->GetStaticMethodID(matchingClass, "matchText",
+ ("([Ljava/lang/String;L" + std::string(configSig) + ";)[I").c_str());
+ if (!method) {
+ clearHostException(env);
+ return matchers;
+ }
+ matchers.text = [env, matchingClass, method, textConfig](const std::vector &runs) {
+ std::vector> all(runs.size());
+ jobjectArray javaRuns = toJavaStrings(env, runs);
+ jintArray triples = (jintArray)env->CallStaticObjectMethod(matchingClass, method, javaRuns, textConfig);
+ env->DeleteLocalRef(javaRuns);
+ if (clearHostException(env))
+ return all;
+ if (triples) {
+ jsize count = env->GetArrayLength(triples);
+ jint *data = env->GetIntArrayElements(triples, nullptr);
+ for (jsize i = 0; i + 2 < count; i += 3) {
+ size_t run = static_cast(data[i]);
+ if (run < all.size())
+ all[run].push_back({static_cast(data[i + 1]), static_cast(data[i + 2])});
+ }
+ env->ReleaseIntArrayElements(triples, data, JNI_ABORT);
+ env->DeleteLocalRef(triples);
+ }
+ return all;
+ };
+ }
+
+ if (codeConfig) {
+ jmethodID method = env->GetStaticMethodID(matchingClass, "matchWholeCode",
+ ("([Ljava/lang/String;L" + std::string(configSig) + ";)[Z").c_str());
+ if (!method) {
+ clearHostException(env);
+ return matchers;
+ }
+ matchers.inlineCode = [env, matchingClass, method, codeConfig](const std::vector &spans) {
+ std::vector matched(spans.size(), 0);
+ jobjectArray javaSpans = toJavaStrings(env, spans);
+ jbooleanArray flags = (jbooleanArray)env->CallStaticObjectMethod(matchingClass, method, javaSpans, codeConfig);
+ env->DeleteLocalRef(javaSpans);
+ if (clearHostException(env))
+ return matched;
+ if (flags) {
+ jsize count = env->GetArrayLength(flags);
+ jboolean *data = env->GetBooleanArrayElements(flags, nullptr);
+ for (jsize i = 0; i < count && static_cast(i) < matched.size(); i++)
+ matched[i] = data[i] == JNI_TRUE ? 1 : 0;
+ env->ReleaseBooleanArrayElements(flags, data, JNI_ABORT);
+ env->DeleteLocalRef(flags);
+ }
+ return matched;
+ };
+ }
+ return matchers;
+}
+
+extern "C" {
+
+JNIEXPORT jobject JNICALL Java_com_swmansion_enriched_markdown_parser_Parser_nativeParseMarkdown(
+ JNIEnv *env, jobject /* this */, jstring markdown, jobject flags, jboolean isGFM, jobject textLinkRegex,
+ jobject inlineCodeLinkRegex) {
+ if (!markdown) {
+ LOGE("Markdown string is null");
+ return nullptr;
+ }
+
+ const char *markdownStr = env->GetStringUTFChars(markdown, nullptr);
+ if (!markdownStr) {
+ LOGE("Failed to get UTF-8 chars from markdown string");
+ return nullptr;
+ }
+
+ try {
+ // Extract flags from Kotlin Md4cFlags data class
+ Md4cFlags md4cFlags;
+ if (flags) {
+ jclass flagsClass = env->GetObjectClass(flags);
+ if (flagsClass) {
+ jfieldID underlineField = env->GetFieldID(flagsClass, "underline", "Z");
+ if (underlineField) {
+ md4cFlags.underline = env->GetBooleanField(flags, underlineField) == JNI_TRUE;
+ }
+ jfieldID latexMathField = env->GetFieldID(flagsClass, "latexMath", "Z");
+ if (latexMathField) {
+ md4cFlags.latexMath = env->GetBooleanField(flags, latexMathField) == JNI_TRUE;
+ }
+ jfieldID superscriptField = env->GetFieldID(flagsClass, "superscript", "Z");
+ if (superscriptField) {
+ md4cFlags.superscript = env->GetBooleanField(flags, superscriptField) == JNI_TRUE;
+ }
+ jfieldID subscriptField = env->GetFieldID(flagsClass, "subscript", "Z");
+ if (subscriptField) {
+ md4cFlags.subscript = env->GetBooleanField(flags, subscriptField) == JNI_TRUE;
+ }
+ jfieldID highlightField = env->GetFieldID(flagsClass, "highlight", "Z");
+ if (highlightField) {
+ md4cFlags.highlight = env->GetBooleanField(flags, highlightField) == JNI_TRUE;
+ }
+ jfieldID permissiveAutolinksField = env->GetFieldID(flagsClass, "permissiveAutolinks", "Z");
+ if (permissiveAutolinksField) {
+ md4cFlags.permissiveAutolinks = env->GetBooleanField(flags, permissiveAutolinksField) == JNI_TRUE;
+ }
+ jfieldID hardSoftBreaksField = env->GetFieldID(flagsClass, "hardSoftBreaks", "Z");
+ if (hardSoftBreaksField) {
+ md4cFlags.hardSoftBreaks = env->GetBooleanField(flags, hardSoftBreaksField) == JNI_TRUE;
+ }
+ jfieldID preserveBlankLinesField = env->GetFieldID(flagsClass, "preserveBlankLines", "Z");
+ if (preserveBlankLinesField) {
+ md4cFlags.preserveBlankLines = env->GetBooleanField(flags, preserveBlankLinesField) == JNI_TRUE;
+ }
+ jfieldID admonitionsField = env->GetFieldID(flagsClass, "admonitions", "Z");
+ if (admonitionsField) {
+ md4cFlags.admonitions = env->GetBooleanField(flags, admonitionsField) == JNI_TRUE;
+ }
+ env->DeleteLocalRef(flagsClass);
+ }
+ }
+
+ MD4CParser parser;
+ auto ast = parser.parse(std::string(markdownStr), md4cFlags, isGFM == JNI_TRUE);
+
+ env->ReleaseStringUTFChars(markdown, markdownStr);
+
+ if (!ast) {
+ LOGE("Parser returned null AST");
+ return nullptr;
+ }
+
+ if (textLinkRegex || inlineCodeLinkRegex) {
+ Markdown::recognizeTextLinks(*ast, makeTextLinkMatchers(env, textLinkRegex, inlineCodeLinkRegex));
+ }
+
+ // Convert C++ AST to Kotlin MarkdownASTNode object
+ jobject javaNode = createJavaNode(env, ast);
+
+ if (!javaNode) {
+ LOGE("Failed to create Java node from AST");
+ }
+
+ return javaNode;
+ } catch (const std::exception &e) {
+ env->ReleaseStringUTFChars(markdown, markdownStr);
+ LOGE("Exception during parsing: %s", e.what());
+ return nullptr;
+ } catch (...) {
+ env->ReleaseStringUTFChars(markdown, markdownStr);
+ LOGE("Unknown exception during parsing");
+ return nullptr;
+ }
+}
+
+JNIEXPORT jstring JNICALL Java_com_swmansion_enriched_markdown_utils_common_CodeBlockNode_nativeDisplayLanguageName(
+ JNIEnv *env, jobject /* this */, jstring language) {
+ if (!language) {
+ return nullptr;
+ }
+ const char *languageStr = env->GetStringUTFChars(language, nullptr);
+ if (!languageStr) {
+ return nullptr;
+ }
+ std::string display = displayNameForLanguage(languageStr);
+ env->ReleaseStringUTFChars(language, languageStr);
+ return env->NewStringUTF(display.c_str());
+}
+
+// Returns highlight tokens as (start, end, type) int triplets with UTF-16
+// offsets, or null when highlighting is unavailable. See
+// cpp/highlight/CodeBlockHighlighter.hpp for the seam contract.
+JNIEXPORT jintArray JNICALL Java_com_swmansion_enriched_markdown_utils_common_CodeBlockHighlighter_nativeHighlightCode(
+ JNIEnv *env, jobject /* this */, jstring code, jstring language) {
+ if (!code) {
+ return nullptr;
+ }
+
+ const char *codeStr = env->GetStringUTFChars(code, nullptr);
+ if (!codeStr) {
+ return nullptr;
+ }
+ const char *languageStr = language ? env->GetStringUTFChars(language, nullptr) : nullptr;
+
+ std::vector tokens;
+ try {
+ tokens = highlightCode(codeStr, languageStr ? languageStr : "");
+ } catch (const std::exception &e) {
+ LOGE("Exception during highlighting: %s", e.what());
+ tokens.clear();
+ } catch (...) {
+ LOGE("Unknown exception during highlighting");
+ tokens.clear();
+ }
+
+ env->ReleaseStringUTFChars(code, codeStr);
+ if (languageStr) {
+ env->ReleaseStringUTFChars(language, languageStr);
+ }
+
+ if (tokens.empty()) {
+ return nullptr;
+ }
+
+ std::vector flat;
+ flat.reserve(tokens.size() * 3);
+ for (const auto &token : tokens) {
+ flat.push_back(static_cast(token.start));
+ flat.push_back(static_cast(token.end));
+ flat.push_back(static_cast(token.type));
+ }
+
+ jintArray result = env->NewIntArray(static_cast(flat.size()));
+ if (!result) {
+ return nullptr;
+ }
+ env->SetIntArrayRegion(result, 0, static_cast(flat.size()), flat.data());
+ return result;
+}
+
+} // extern "C"
diff --git a/packages/react-native-enriched-markdown/android/src/main/java/com/swmansion/enriched/markdown/EnrichedMarkdown.kt b/packages/react-native-enriched-markdown/android/src/main/java/com/swmansion/enriched/markdown/EnrichedMarkdown.kt
new file mode 100644
index 000000000..810583342
--- /dev/null
+++ b/packages/react-native-enriched-markdown/android/src/main/java/com/swmansion/enriched/markdown/EnrichedMarkdown.kt
@@ -0,0 +1,693 @@
+package com.swmansion.enriched.markdown
+
+import android.content.Context
+import android.content.res.Configuration
+import android.os.Build
+import android.os.Handler
+import android.os.Looper
+import android.util.Log
+import android.view.View
+import com.facebook.react.bridge.Arguments
+import com.facebook.react.bridge.ReadableMap
+import com.facebook.react.uimanager.StateWrapper
+import com.swmansion.enriched.markdown.accessibility.AccessibilityLabels
+import com.swmansion.enriched.markdown.math.LatexErrorReporter
+import com.swmansion.enriched.markdown.parser.Md4cFlags
+import com.swmansion.enriched.markdown.parser.Parser
+import com.swmansion.enriched.markdown.segments.BlockquoteContainerView
+import com.swmansion.enriched.markdown.segments.CodeBlockContainerView
+import com.swmansion.enriched.markdown.segments.ContainerNodeView
+import com.swmansion.enriched.markdown.segments.DynamicBlockProps
+import com.swmansion.enriched.markdown.segments.MarkdownSegmentRenderer
+import com.swmansion.enriched.markdown.segments.RenderedSegment
+import com.swmansion.enriched.markdown.segments.SegmentViewConfig
+import com.swmansion.enriched.markdown.segments.SegmentViewCreators
+import com.swmansion.enriched.markdown.segments.SegmentViewFactory
+import com.swmansion.enriched.markdown.segments.TableContainerView
+import com.swmansion.enriched.markdown.segments.splitASTIntoSegments
+import com.swmansion.enriched.markdown.spoiler.SpoilerOverlay
+import com.swmansion.enriched.markdown.styles.LinkPillContent
+import com.swmansion.enriched.markdown.styles.StyleConfig
+import com.swmansion.enriched.markdown.utils.common.BreakStrategyUtils
+import com.swmansion.enriched.markdown.utils.common.CodeBlockStreamingMode
+import com.swmansion.enriched.markdown.utils.common.LinkRegexConfig
+import com.swmansion.enriched.markdown.utils.common.StreamingMarkdownFilter
+import com.swmansion.enriched.markdown.utils.common.TableStreamingMode
+import com.swmansion.enriched.markdown.utils.common.isReducedMotionEnabled
+import com.swmansion.enriched.markdown.utils.text.TailFadeInAnimator
+import com.swmansion.enriched.markdown.utils.text.view.ImagePressHost
+import com.swmansion.enriched.markdown.utils.text.view.SelectionMenuConfig
+import com.swmansion.enriched.markdown.utils.text.view.applySelectionColors
+import com.swmansion.enriched.markdown.utils.text.view.emitImagePressEvent
+import java.util.EnumSet
+import java.util.concurrent.ExecutorService
+import java.util.concurrent.Executors
+
+class EnrichedMarkdown(
+ context: Context,
+) : ContainerNodeView(context),
+ ImagePressHost {
+ private enum class DirtyFlag {
+ RECREATE_SEGMENTS,
+ FORCE_HEIGHT,
+ }
+
+ private val parser = Parser.shared
+ private val mainHandler = Handler(Looper.getMainLooper())
+ private val executor: ExecutorService = Executors.newSingleThreadExecutor()
+ private val mathContainerClass: Class<*>? by lazy { SegmentViewCreators.mathContainerClass() }
+ private val videoContainerClass: Class<*>? by lazy { SegmentViewCreators.videoContainerClass() }
+
+ private var currentRenderId = 0L
+ private val dirtyFlags = EnumSet.noneOf(DirtyFlag::class.java)
+ var streamingAnimation: Boolean = false
+
+ // used to force a Yoga re-measure when a block image resolves its box height
+ var stateWrapper: StateWrapper? = null
+ private var forceHeightRecalculationCounter = 0
+
+ var tableStreamingMode: TableStreamingMode = TableStreamingMode.PROGRESSIVE
+ var codeBlockStreamingMode: CodeBlockStreamingMode = CodeBlockStreamingMode.PROGRESSIVE
+ private var renderPending: Boolean = false
+
+ var currentMarkdown: String = ""
+ private set
+
+ var markdownStyle: StyleConfig? = null
+ private set
+
+ private var markdownStyleMap: ReadableMap? = null
+ private var lastKnownFontScale: Float = context.resources.configuration.fontScale
+
+ var md4cFlags: Md4cFlags = Md4cFlags.DEFAULT
+ private set
+ private var linkRegex: LinkRegexConfig? = null
+ private var inlineCodeLinkRegex: LinkRegexConfig? = null
+ private var isGFM: Boolean = true
+ private var allowFontScaling: Boolean = true
+ private var maxFontSizeMultiplier: Float = 0f
+ private var imageRequestHeaders: Map = emptyMap()
+ private var linkPillContent: Map = emptyMap()
+ private var selectable: Boolean = true
+ private var selectionColor: Int? = null
+ private var selectionHandleColor: Int? = null
+ private var selectionMenuConfig = SelectionMenuConfig()
+ private var accessibilityLabels = AccessibilityLabels()
+ private var textBreakStrategy: String = BreakStrategyUtils.DEFAULT_STRATEGY
+
+ private var onLinkPressCallback: ((String, String) -> Unit)? = null
+ private var onLinkLongPressCallback: ((String) -> Unit)? = null
+ private var onTaskListItemPressCallback: ((Int, Boolean, String) -> Unit)? = null
+ private var onLatexErrorCallback: LatexErrorReporter? = null
+
+ private val reportedLatexErrors = HashSet()
+
+ private val latexErrorReporter =
+ LatexErrorReporter { source, message, displayMode ->
+ val key = (if (displayMode) "B " else "I ") + source
+ if (reportedLatexErrors.add(key)) {
+ onLatexErrorCallback?.report(source, message, displayMode)
+ }
+ }
+ private var contextMenuItemTexts: List