react-native-enriched-markdown-scaffold 1.0.2-scaffold.8 → 1.2.0-scaffold.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ReactNativeEnrichedMarkdown.podspec +31 -10
- package/android/build.gradle +51 -12
- package/android/consumer-rules.pro +3 -0
- package/android/generated/java/com/facebook/react/viewmanagers/EnrichedMarkdownManagerDelegate.java +18 -0
- package/android/generated/java/com/facebook/react/viewmanagers/EnrichedMarkdownManagerInterface.java +6 -0
- package/android/generated/java/com/facebook/react/viewmanagers/EnrichedMarkdownTextInputManagerDelegate.java +3 -0
- package/android/generated/java/com/facebook/react/viewmanagers/EnrichedMarkdownTextInputManagerInterface.java +1 -0
- package/android/generated/java/com/facebook/react/viewmanagers/EnrichedMarkdownTextManagerDelegate.java +18 -0
- package/android/generated/java/com/facebook/react/viewmanagers/EnrichedMarkdownTextManagerInterface.java +6 -0
- package/android/generated/jni/react/renderer/components/EnrichedMarkdownTextSpec/EventEmitters.cpp +62 -0
- package/android/generated/jni/react/renderer/components/EnrichedMarkdownTextSpec/EventEmitters.h +44 -0
- package/android/generated/jni/react/renderer/components/EnrichedMarkdownTextSpec/Props.cpp +67 -2
- package/android/generated/jni/react/renderer/components/EnrichedMarkdownTextSpec/Props.h +929 -178
- package/android/src/main/baseline-prof.txt +21 -22
- package/android/src/main/cpp/jni-adapter.cpp +17 -5
- package/android/src/main/java/com/swmansion/enriched/markdown/EnrichedMarkdown.kt +718 -768
- package/android/src/main/java/com/swmansion/enriched/markdown/EnrichedMarkdownInternalText.kt +11 -1
- package/android/src/main/java/com/swmansion/enriched/markdown/EnrichedMarkdownManager.kt +72 -3
- package/android/src/main/java/com/swmansion/enriched/markdown/EnrichedMarkdownText.kt +220 -7
- package/android/src/main/java/com/swmansion/enriched/markdown/EnrichedMarkdownTextManager.kt +65 -1
- package/android/src/main/java/com/swmansion/enriched/markdown/MeasurementStore.kt +228 -29
- package/android/src/main/java/com/swmansion/enriched/markdown/accessibility/AccessibleMarkdownTextView.kt +10 -0
- package/android/src/main/java/com/swmansion/enriched/markdown/accessibility/MarkdownAccessibilityHelper.kt +54 -6
- package/android/src/main/java/com/swmansion/enriched/markdown/events/CodeBlockPressEvent.kt +24 -0
- package/android/src/main/java/com/swmansion/enriched/markdown/events/ImagePressEvent.kt +25 -0
- package/android/src/main/java/com/swmansion/enriched/markdown/events/LatexErrorEvent.kt +29 -0
- package/android/src/main/java/com/swmansion/enriched/markdown/input/EnrichedMarkdownTextInputManager.kt +21 -0
- package/android/src/main/java/com/swmansion/enriched/markdown/input/EnrichedMarkdownTextInputView.kt +101 -9
- package/android/src/main/java/com/swmansion/enriched/markdown/input/editing/EditPipeline.kt +48 -0
- package/android/src/main/java/com/swmansion/enriched/markdown/input/editing/InputConnectionWrapper.kt +7 -0
- package/android/src/main/java/com/swmansion/enriched/markdown/input/editing/MarkdownShortcutMatcher.kt +64 -0
- package/android/src/main/java/com/swmansion/enriched/markdown/input/formatting/InputRemend.kt +44 -6
- package/android/src/main/java/com/swmansion/enriched/markdown/input/layout/InputEventEmitter.kt +9 -8
- package/android/src/main/java/com/swmansion/enriched/markdown/math/LatexErrorReporter.kt +9 -0
- package/android/src/main/java/com/swmansion/enriched/markdown/parser/MarkdownASTNode.kt +6 -0
- package/android/src/main/java/com/swmansion/enriched/markdown/parser/Parser.kt +5 -1
- package/android/src/main/java/com/swmansion/enriched/markdown/renderer/BlankLineRenderer.kt +38 -0
- package/android/src/main/java/com/swmansion/enriched/markdown/renderer/BlockStyleContext.kt +2 -2
- package/android/src/main/java/com/swmansion/enriched/markdown/renderer/BlockquoteRenderer.kt +3 -2
- package/android/src/main/java/com/swmansion/enriched/markdown/renderer/BlockquoteTextRenderer.kt +55 -0
- package/android/src/main/java/com/swmansion/enriched/markdown/renderer/CodeBlockRenderer.kt +8 -1
- package/android/src/main/java/com/swmansion/enriched/markdown/renderer/HighlightRenderer.kt +10 -1
- package/android/src/main/java/com/swmansion/enriched/markdown/renderer/NodeRenderer.kt +31 -3
- package/android/src/main/java/com/swmansion/enriched/markdown/renderer/ParagraphRenderer.kt +17 -2
- package/android/src/main/java/com/swmansion/enriched/markdown/renderer/Renderer.kt +40 -21
- package/android/src/main/java/com/swmansion/enriched/markdown/segments/AdmonitionIcons.kt +62 -0
- package/android/src/main/java/com/swmansion/enriched/markdown/{views → segments}/BlockSegmentView.kt +1 -1
- package/android/src/main/java/com/swmansion/enriched/markdown/segments/BlockquoteContainerView.kt +401 -0
- package/android/src/main/java/com/swmansion/enriched/markdown/{views → segments}/CodeBlockContainerView.kt +55 -16
- package/android/src/main/java/com/swmansion/enriched/markdown/segments/ContainerNodeView.kt +164 -0
- package/android/src/main/java/com/swmansion/enriched/markdown/{utils/common → segments}/MarkdownSegment.kt +21 -1
- package/android/src/main/java/com/swmansion/enriched/markdown/segments/RenderedSegment.kt +137 -0
- package/android/src/main/java/com/swmansion/enriched/markdown/segments/SegmentHeightMeasurer.kt +139 -0
- package/android/src/main/java/com/swmansion/enriched/markdown/{utils/common → segments}/SegmentReconciler.kt +1 -1
- package/android/src/main/java/com/swmansion/enriched/markdown/{utils/common → segments}/SegmentSignature.kt +3 -1
- package/android/src/main/java/com/swmansion/enriched/markdown/segments/SegmentViewCreators.kt +262 -0
- package/android/src/main/java/com/swmansion/enriched/markdown/segments/SegmentViewFactory.kt +29 -0
- package/android/src/main/java/com/swmansion/enriched/markdown/{views → segments}/TableContainerView.kt +100 -36
- package/android/src/main/java/com/swmansion/enriched/markdown/spans/CodeBackgroundSpan.kt +18 -17
- package/android/src/main/java/com/swmansion/enriched/markdown/spans/CodeBlockSpan.kt +3 -0
- package/android/src/main/java/com/swmansion/enriched/markdown/spans/HighlightSpan.kt +60 -6
- package/android/src/main/java/com/swmansion/enriched/markdown/spans/ImageSpan.kt +15 -5
- package/android/src/main/java/com/swmansion/enriched/markdown/spans/InlineBackgroundGeometry.kt +42 -0
- package/android/src/main/java/com/swmansion/enriched/markdown/spans/InlineChipPainter.kt +4 -27
- package/android/src/main/java/com/swmansion/enriched/markdown/spans/LineHeightSpan.kt +10 -0
- package/android/src/main/java/com/swmansion/enriched/markdown/spans/LinkSpan.kt +1 -1
- package/android/src/main/java/com/swmansion/enriched/markdown/spoiler/SpoilerDrawUtils.kt +11 -0
- package/android/src/main/java/com/swmansion/enriched/markdown/styles/BlockquoteStyle.kt +27 -0
- package/android/src/main/java/com/swmansion/enriched/markdown/styles/LinkVariantEntry.kt +2 -0
- package/android/src/main/java/com/swmansion/enriched/markdown/styles/StyleConfig.kt +10 -0
- package/android/src/main/java/com/swmansion/enriched/markdown/styles/VideoStyle.kt +31 -0
- package/android/src/main/java/com/swmansion/enriched/markdown/utils/common/BorderStyleUtils.kt +86 -0
- package/android/src/main/java/com/swmansion/enriched/markdown/utils/common/EllipsizeUtils.kt +27 -0
- package/android/src/main/java/com/swmansion/enriched/markdown/utils/common/EnrichedMarkdownAncestorUtils.kt +10 -0
- package/android/src/main/java/com/swmansion/enriched/markdown/utils/common/FeatureFlags.kt +1 -0
- package/android/src/main/java/com/swmansion/enriched/markdown/utils/common/MarkdownViewManagerUtils.kt +36 -0
- package/android/src/main/java/com/swmansion/enriched/markdown/utils/common/ReadableMapExtensions.kt +5 -0
- package/android/src/main/java/com/swmansion/enriched/markdown/utils/common/serialization/MarkdownASTSerializer.kt +227 -0
- package/android/src/main/java/com/swmansion/enriched/markdown/utils/input/PasteTextUtils.kt +34 -2
- package/android/src/main/java/com/swmansion/enriched/markdown/utils/text/conversion/HTMLGenerator.kt +50 -28
- package/android/src/main/java/com/swmansion/enriched/markdown/utils/text/conversion/MarkdownExtractor.kt +16 -21
- package/android/src/main/java/com/swmansion/enriched/markdown/utils/text/extensions/SpannableExtensions.kt +4 -3
- package/android/src/main/java/com/swmansion/enriched/markdown/utils/text/span/BlockSpacing.kt +3 -2
- package/android/src/main/java/com/swmansion/enriched/markdown/utils/text/span/SpanFlags.kt +13 -0
- package/android/src/main/java/com/swmansion/enriched/markdown/utils/text/view/CodeBlockPressHost.kt +15 -0
- package/android/src/main/java/com/swmansion/enriched/markdown/utils/text/view/HeadlessActionMode.kt +12 -0
- package/android/src/main/java/com/swmansion/enriched/markdown/utils/text/view/ImagePressHost.kt +19 -0
- package/android/src/main/java/com/swmansion/enriched/markdown/utils/text/view/LinkEvents.kt +11 -0
- package/android/src/main/java/com/swmansion/enriched/markdown/utils/text/view/LinkLongPressMovementMethod.kt +87 -2
- package/android/src/main/java/com/swmansion/enriched/markdown/utils/text/view/TextViewSetup.kt +79 -0
- package/android/src/main/jni/react/renderer/components/EnrichedMarkdownTextSpec/conversions.h +2 -0
- package/android/src/math/java/com/swmansion/enriched/markdown/renderer/MathInlineRenderer.kt +9 -3
- package/android/src/math/java/com/swmansion/enriched/markdown/{views → segments}/MathContainerView.kt +86 -29
- package/android/src/math/java/com/swmansion/enriched/markdown/spans/MathInlineSpan.kt +33 -7
- package/android/src/video/java/com/swmansion/enriched/markdown/segments/VideoContainerView.kt +115 -0
- package/cpp/md4c/md4c.c +343 -236
- package/cpp/md4c/md4c.h +28 -11
- package/cpp/parser/MD4CParser.cpp +266 -4
- package/cpp/parser/MD4CParser.hpp +6 -2
- package/cpp/parser/MarkdownASTNode.hpp +4 -1
- package/cpp/wasm/ASTSerializer.cpp +6 -0
- package/cpp/wasm/md4c_wasm.cpp +5 -1
- package/docs/API_REFERENCE.md +199 -12
- package/docs/BREAKING_CHANGES.md +75 -0
- package/docs/CODE_HIGHLIGHT.md +4 -0
- package/docs/COPY_OPTIONS.md +52 -9
- package/docs/ELEMENTS_STRUCTURE.md +48 -1
- package/docs/INPUT.md +60 -3
- package/docs/LATEX_MATH.md +30 -0
- package/docs/MACOS.md +1 -1
- package/docs/MENTIONS.md +2 -2
- package/docs/STYLES.md +27 -0
- package/docs/TEXT.md +8 -0
- package/docs/WEB.md +44 -10
- package/ios/EnrichedMarkdown.mm +285 -43
- package/ios/EnrichedMarkdownText.mm +185 -23
- package/ios/attachments/ENRMImageAttachment.h +17 -2
- package/ios/attachments/ENRMImageAttachment.m +26 -28
- package/ios/attachments/ENRMMathInlineAttachment+macOS.m +10 -2
- package/ios/attachments/ENRMMathInlineAttachment.h +3 -1
- package/ios/attachments/ENRMMathInlineAttachment.m +17 -1
- package/ios/attachments/ENRMMathInlineAttachmentShared.h +3 -0
- package/ios/generated/ReactCodegen/EnrichedMarkdownTextSpec/EventEmitters.cpp +62 -0
- package/ios/generated/ReactCodegen/EnrichedMarkdownTextSpec/EventEmitters.h +44 -0
- package/ios/generated/ReactCodegen/EnrichedMarkdownTextSpec/Props.cpp +67 -2
- package/ios/generated/ReactCodegen/EnrichedMarkdownTextSpec/Props.h +929 -178
- package/ios/input/ENRMInputFormatter.mm +68 -12
- package/ios/input/ENRMInputFormatterStyle.mm +9 -2
- package/ios/input/ENRMInputParser.mm +18 -0
- package/ios/input/ENRMInputRemend.mm +40 -3
- package/ios/input/ENRMMarkdownShortcutMatcher.h +39 -0
- package/ios/input/ENRMMarkdownShortcutMatcher.mm +66 -0
- package/ios/input/EnrichedMarkdownTextInput.mm +129 -1
- package/ios/internals/ENRMViewFreeMeasurement.h +45 -6
- package/ios/internals/MeasurementCache.h +20 -4
- package/ios/internals/ShadowMeasurementUtils.h +2 -0
- package/ios/math/ENRMLatexErrorCoordinator.h +27 -0
- package/ios/math/ENRMLatexErrorCoordinator.mm +75 -0
- package/ios/math/ENRMLatexErrorReporting.h +13 -0
- package/ios/math/ENRMRaTeXBridge.swift +46 -3
- package/ios/parser/ENRMMarkdownParser.h +3 -0
- package/ios/parser/ENRMMarkdownParser.mm +11 -2
- package/ios/parser/MarkdownASTNode.h +8 -1
- package/ios/parser/MarkdownASTNode.m +20 -0
- package/ios/parser/MarkdownParserBridge.mm +13 -2
- package/ios/renderer/AttributedRenderer.h +13 -1
- package/ios/renderer/AttributedRenderer.m +24 -13
- package/ios/renderer/BaselineShiftTextAttributes.h +4 -0
- package/ios/renderer/BaselineShiftTextAttributes.m +4 -0
- package/ios/renderer/BlankLineRenderer.h +4 -0
- package/ios/renderer/BlankLineRenderer.m +51 -0
- package/ios/renderer/BlockquoteRenderer.m +1 -0
- package/ios/renderer/CodeBlockRenderer.m +8 -0
- package/ios/renderer/CodeRenderer.m +5 -2
- package/ios/renderer/ENRMBlockquoteTextRenderer.h +25 -0
- package/ios/renderer/ENRMBlockquoteTextRenderer.m +48 -0
- package/ios/renderer/ENRMImageRenderer.m +1 -1
- package/ios/renderer/ENRMMathInlineRenderer.m +9 -1
- package/ios/renderer/HeadingRenderer.m +1 -0
- package/ios/renderer/HighlightRenderer.m +6 -0
- package/ios/renderer/LinkRenderer.m +1 -1
- package/ios/renderer/ListItemRenderer.m +51 -2
- package/ios/renderer/ParagraphRenderer.m +10 -3
- package/ios/renderer/RenderContext.h +16 -0
- package/ios/renderer/RenderContext.m +16 -0
- package/ios/renderer/RendererFactory.m +6 -0
- package/ios/renderer/SubscriptRenderer.m +1 -0
- package/ios/renderer/SuperscriptRenderer.m +1 -0
- package/ios/segments/ENRMAdmonitionIcons.h +31 -0
- package/ios/segments/ENRMAdmonitionIcons.m +93 -0
- package/ios/segments/ENRMBlockquoteContainerView.h +90 -0
- package/ios/segments/ENRMBlockquoteContainerView.mm +551 -0
- package/ios/{views → segments}/ENRMCodeBlockContainerView.h +9 -4
- package/ios/{views → segments}/ENRMCodeBlockContainerView.m +147 -36
- package/ios/segments/ENRMContainerNodeView.h +52 -0
- package/ios/segments/ENRMContainerNodeView.mm +201 -0
- package/ios/segments/ENRMDynamicBlockProps.h +32 -0
- package/ios/segments/ENRMDynamicBlockProps.m +15 -0
- package/ios/{views → segments}/ENRMMathContainerView.h +13 -5
- package/ios/{views → segments}/ENRMMathContainerView.m +60 -9
- package/ios/segments/ENRMSVGPath.h +21 -0
- package/ios/segments/ENRMSVGPath.m +409 -0
- package/ios/segments/ENRMSegmentHeightMeasurer.h +33 -0
- package/ios/segments/ENRMSegmentHeightMeasurer.mm +94 -0
- package/ios/segments/ENRMVideoContainerView.h +40 -0
- package/ios/segments/ENRMVideoContainerView.m +421 -0
- package/ios/{utils → segments}/RenderedMarkdownSegment.h +19 -2
- package/ios/{utils → segments}/RenderedMarkdownSegment.m +42 -1
- package/ios/segments/SegmentRenderer.h +26 -0
- package/ios/{utils → segments}/SegmentRenderer.m +46 -9
- package/ios/{views → segments}/TableContainerView.h +5 -4
- package/ios/{views → segments}/TableContainerView.m +96 -12
- package/ios/styles/StyleConfig.h +17 -0
- package/ios/styles/StyleConfig.mm +90 -0
- package/ios/utils/ENRMCodeBlockContent.mm +13 -0
- package/ios/utils/ENRMFeatureFlags.h +6 -0
- package/ios/utils/ENRMTextRenderer.h +8 -0
- package/ios/utils/ENRMTextRenderer.m +26 -10
- package/ios/utils/ENRMUIKit.h +1 -0
- package/ios/utils/FontUtils.h +2 -1
- package/ios/utils/FontUtils.m +22 -6
- package/ios/utils/LinkTapUtils.h +17 -2
- package/ios/utils/LinkTapUtils.m +44 -2
- package/ios/utils/ListMarkerDrawer.m +25 -1
- package/ios/utils/MarkdownASTSerializer.h +7 -0
- package/ios/utils/MarkdownASTSerializer.m +243 -0
- package/ios/utils/MarkdownAccessibilityElementBuilder.m +9 -67
- package/ios/utils/MarkdownExtractor.m +6 -3
- package/ios/utils/ParagraphStyleUtils.h +25 -1
- package/ios/utils/ParagraphStyleUtils.m +51 -7
- package/ios/utils/StylePropsUtils.h +60 -1
- package/ios/utils/TextViewLayoutManager.mm +57 -0
- package/lib/module/EnrichedMarkdownNativeComponent.ts +110 -4
- package/lib/module/EnrichedMarkdownTextInput.js +60 -2
- package/lib/module/EnrichedMarkdownTextInput.js.map +1 -1
- package/lib/module/EnrichedMarkdownTextInputNativeComponent.ts +12 -0
- package/lib/module/EnrichedMarkdownTextNativeComponent.ts +115 -4
- package/lib/module/admonitionDefaults.js +34 -0
- package/lib/module/admonitionDefaults.js.map +1 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/jest/index.js +84 -4
- package/lib/module/jest/index.js.map +1 -1
- package/lib/module/native/EnrichedMarkdownText.js +58 -5
- package/lib/module/native/EnrichedMarkdownText.js.map +1 -1
- package/lib/module/normalizeMarkdownShortcuts.js +31 -0
- package/lib/module/normalizeMarkdownShortcuts.js.map +1 -0
- package/lib/module/normalizeMarkdownStyle.js +15 -1
- package/lib/module/normalizeMarkdownStyle.js.map +1 -1
- package/lib/module/normalizeMarkdownStyle.web.js +15 -1
- package/lib/module/normalizeMarkdownStyle.web.js.map +1 -1
- package/lib/module/styleUtils.js +15 -3
- package/lib/module/styleUtils.js.map +1 -1
- package/lib/module/utils/textInputState.js +4 -3
- package/lib/module/utils/textInputState.js.map +1 -1
- package/lib/module/utils/usePressability.js +28 -0
- package/lib/module/utils/usePressability.js.map +1 -0
- package/lib/module/web/EnrichedMarkdownText.js +19 -6
- package/lib/module/web/EnrichedMarkdownText.js.map +1 -1
- package/lib/module/web/globalStyles.js +7 -1
- package/lib/module/web/globalStyles.js.map +1 -1
- package/lib/module/web/nativeProps.js +70 -0
- package/lib/module/web/nativeProps.js.map +1 -0
- package/lib/module/web/parseMarkdown.js +5 -3
- package/lib/module/web/parseMarkdown.js.map +1 -1
- package/lib/module/web/renderers/BlockRenderers.js +164 -8
- package/lib/module/web/renderers/BlockRenderers.js.map +1 -1
- package/lib/module/web/renderers/admonitionIcons.js +34 -0
- package/lib/module/web/renderers/admonitionIcons.js.map +1 -0
- package/lib/module/web/styles.js +30 -8
- package/lib/module/web/styles.js.map +1 -1
- package/lib/module/web/wasm/md4c.js +0 -0
- package/lib/module/web/wasm/md4c.js.map +1 -1
- package/lib/typescript/src/EnrichedMarkdownNativeComponent.d.ts +103 -3
- package/lib/typescript/src/EnrichedMarkdownNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/EnrichedMarkdownTextInput.d.ts +27 -3
- package/lib/typescript/src/EnrichedMarkdownTextInput.d.ts.map +1 -1
- package/lib/typescript/src/EnrichedMarkdownTextInputNativeComponent.d.ts +11 -0
- package/lib/typescript/src/EnrichedMarkdownTextInputNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/EnrichedMarkdownTextNativeComponent.d.ts +108 -3
- package/lib/typescript/src/EnrichedMarkdownTextNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/admonitionDefaults.d.ts +10 -0
- package/lib/typescript/src/admonitionDefaults.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +3 -2
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/index.web.d.ts +1 -1
- package/lib/typescript/src/index.web.d.ts.map +1 -1
- package/lib/typescript/src/jest/index.d.ts +2 -2
- package/lib/typescript/src/jest/index.d.ts.map +1 -1
- package/lib/typescript/src/native/EnrichedMarkdownText.d.ts +3 -3
- package/lib/typescript/src/native/EnrichedMarkdownText.d.ts.map +1 -1
- package/lib/typescript/src/normalizeMarkdownShortcuts.d.ts +7 -0
- package/lib/typescript/src/normalizeMarkdownShortcuts.d.ts.map +1 -0
- package/lib/typescript/src/normalizeMarkdownStyle.d.ts.map +1 -1
- package/lib/typescript/src/normalizeMarkdownStyle.web.d.ts.map +1 -1
- package/lib/typescript/src/styleUtils.d.ts.map +1 -1
- package/lib/typescript/src/types/MarkdownStyle.d.ts +59 -1
- package/lib/typescript/src/types/MarkdownStyle.d.ts.map +1 -1
- package/lib/typescript/src/types/MarkdownStyleInternal.d.ts +21 -0
- package/lib/typescript/src/types/MarkdownStyleInternal.d.ts.map +1 -1
- package/lib/typescript/src/types/MarkdownTextProps.d.ts +93 -8
- package/lib/typescript/src/types/MarkdownTextProps.d.ts.map +1 -1
- package/lib/typescript/src/types/MarkdownTextProps.web.d.ts +25 -1
- package/lib/typescript/src/types/MarkdownTextProps.web.d.ts.map +1 -1
- package/lib/typescript/src/types/events.d.ts +33 -5
- package/lib/typescript/src/types/events.d.ts.map +1 -1
- package/lib/typescript/src/utils/textInputState.d.ts +5 -3
- package/lib/typescript/src/utils/textInputState.d.ts.map +1 -1
- package/lib/typescript/src/utils/usePressability.d.ts +24 -0
- package/lib/typescript/src/utils/usePressability.d.ts.map +1 -0
- package/lib/typescript/src/web/EnrichedMarkdownText.d.ts +1 -1
- package/lib/typescript/src/web/EnrichedMarkdownText.d.ts.map +1 -1
- package/lib/typescript/src/web/globalStyles.d.ts +1 -0
- package/lib/typescript/src/web/globalStyles.d.ts.map +1 -1
- package/lib/typescript/src/web/nativeProps.d.ts +34 -0
- package/lib/typescript/src/web/nativeProps.d.ts.map +1 -0
- package/lib/typescript/src/web/parseMarkdown.d.ts +1 -1
- package/lib/typescript/src/web/parseMarkdown.d.ts.map +1 -1
- package/lib/typescript/src/web/renderers/BlockRenderers.d.ts.map +1 -1
- package/lib/typescript/src/web/renderers/admonitionIcons.d.ts +5 -0
- package/lib/typescript/src/web/renderers/admonitionIcons.d.ts.map +1 -0
- package/lib/typescript/src/web/styles.d.ts +1 -0
- package/lib/typescript/src/web/styles.d.ts.map +1 -1
- package/lib/typescript/src/web/types.d.ts +8 -2
- package/lib/typescript/src/web/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/postinstall.mjs +7 -0
- package/src/EnrichedMarkdownNativeComponent.ts +110 -4
- package/src/EnrichedMarkdownTextInput.tsx +101 -4
- package/src/EnrichedMarkdownTextInputNativeComponent.ts +12 -0
- package/src/EnrichedMarkdownTextNativeComponent.ts +115 -4
- package/src/admonitionDefaults.ts +58 -0
- package/src/index.tsx +5 -0
- package/src/index.web.tsx +3 -0
- package/src/jest/index.tsx +138 -5
- package/src/native/EnrichedMarkdownText.tsx +55 -3
- package/src/normalizeMarkdownShortcuts.ts +38 -0
- package/src/normalizeMarkdownStyle.ts +17 -0
- package/src/normalizeMarkdownStyle.web.ts +17 -0
- package/src/styleUtils.ts +17 -6
- package/src/types/MarkdownStyle.ts +62 -1
- package/src/types/MarkdownStyleInternal.ts +24 -0
- package/src/types/MarkdownTextProps.ts +95 -7
- package/src/types/MarkdownTextProps.web.ts +26 -0
- package/src/types/events.ts +36 -5
- package/src/utils/textInputState.ts +5 -3
- package/src/utils/usePressability.ts +34 -0
- package/src/web/EnrichedMarkdownText.tsx +36 -3
- package/src/web/globalStyles.ts +10 -0
- package/src/web/nativeProps.ts +78 -0
- package/src/web/parseMarkdown.ts +10 -2
- package/src/web/renderers/BlockRenderers.tsx +175 -6
- package/src/web/renderers/admonitionIcons.ts +37 -0
- package/src/web/styles.ts +28 -3
- package/src/web/types.ts +12 -1
- package/src/web/wasm/md4c.js +0 -0
- package/vendor-ratex.mjs +86 -17
- package/android/src/main/java/com/swmansion/enriched/markdown/renderer/DocumentRenderer.kt +0 -16
- package/android/src/main/java/com/swmansion/enriched/markdown/utils/common/RenderedSegment.kt +0 -88
- package/ios/utils/SegmentRenderer.h +0 -24
- /package/ios/{views → segments}/ENRMTableGridView.h +0 -0
- /package/ios/{views → segments}/ENRMTableGridView.m +0 -0
- /package/ios/{views → segments}/ENRMTableIOSGridView.h +0 -0
- /package/ios/{views → segments}/ENRMTableIOSGridView.m +0 -0
- /package/ios/{utils → segments}/SegmentReconciler.h +0 -0
- /package/ios/{utils → segments}/SegmentReconciler.m +0 -0
- /package/ios/{utils → segments}/SegmentViewRegistry.h +0 -0
- /package/ios/{utils → segments}/SegmentViewRegistry.m +0 -0
|
@@ -550,6 +550,264 @@ static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleH6Stru
|
|
|
550
550
|
}
|
|
551
551
|
#endif
|
|
552
552
|
|
|
553
|
+
struct EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsNoteStruct {
|
|
554
|
+
SharedColor color{};
|
|
555
|
+
SharedColor backgroundColor{};
|
|
556
|
+
|
|
557
|
+
|
|
558
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
559
|
+
bool operator==(const EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsNoteStruct&) const = default;
|
|
560
|
+
|
|
561
|
+
folly::dynamic toDynamic() const {
|
|
562
|
+
folly::dynamic result = folly::dynamic::object();
|
|
563
|
+
result["color"] = ::facebook::react::toDynamic(color);
|
|
564
|
+
result["backgroundColor"] = ::facebook::react::toDynamic(backgroundColor);
|
|
565
|
+
return result;
|
|
566
|
+
}
|
|
567
|
+
#endif
|
|
568
|
+
};
|
|
569
|
+
|
|
570
|
+
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsNoteStruct &result) {
|
|
571
|
+
auto map = (std::unordered_map<std::string, RawValue>)value;
|
|
572
|
+
|
|
573
|
+
auto tmp_color = map.find("color");
|
|
574
|
+
if (tmp_color != map.end()) {
|
|
575
|
+
fromRawValue(context, tmp_color->second, result.color);
|
|
576
|
+
}
|
|
577
|
+
auto tmp_backgroundColor = map.find("backgroundColor");
|
|
578
|
+
if (tmp_backgroundColor != map.end()) {
|
|
579
|
+
fromRawValue(context, tmp_backgroundColor->second, result.backgroundColor);
|
|
580
|
+
}
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
static inline std::string toString(const EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsNoteStruct &value) {
|
|
584
|
+
return "[Object EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsNoteStruct]";
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
588
|
+
static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsNoteStruct &value) {
|
|
589
|
+
return value.toDynamic();
|
|
590
|
+
}
|
|
591
|
+
#endif
|
|
592
|
+
|
|
593
|
+
struct EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsTipStruct {
|
|
594
|
+
SharedColor color{};
|
|
595
|
+
SharedColor backgroundColor{};
|
|
596
|
+
|
|
597
|
+
|
|
598
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
599
|
+
bool operator==(const EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsTipStruct&) const = default;
|
|
600
|
+
|
|
601
|
+
folly::dynamic toDynamic() const {
|
|
602
|
+
folly::dynamic result = folly::dynamic::object();
|
|
603
|
+
result["color"] = ::facebook::react::toDynamic(color);
|
|
604
|
+
result["backgroundColor"] = ::facebook::react::toDynamic(backgroundColor);
|
|
605
|
+
return result;
|
|
606
|
+
}
|
|
607
|
+
#endif
|
|
608
|
+
};
|
|
609
|
+
|
|
610
|
+
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsTipStruct &result) {
|
|
611
|
+
auto map = (std::unordered_map<std::string, RawValue>)value;
|
|
612
|
+
|
|
613
|
+
auto tmp_color = map.find("color");
|
|
614
|
+
if (tmp_color != map.end()) {
|
|
615
|
+
fromRawValue(context, tmp_color->second, result.color);
|
|
616
|
+
}
|
|
617
|
+
auto tmp_backgroundColor = map.find("backgroundColor");
|
|
618
|
+
if (tmp_backgroundColor != map.end()) {
|
|
619
|
+
fromRawValue(context, tmp_backgroundColor->second, result.backgroundColor);
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
static inline std::string toString(const EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsTipStruct &value) {
|
|
624
|
+
return "[Object EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsTipStruct]";
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
628
|
+
static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsTipStruct &value) {
|
|
629
|
+
return value.toDynamic();
|
|
630
|
+
}
|
|
631
|
+
#endif
|
|
632
|
+
|
|
633
|
+
struct EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsImportantStruct {
|
|
634
|
+
SharedColor color{};
|
|
635
|
+
SharedColor backgroundColor{};
|
|
636
|
+
|
|
637
|
+
|
|
638
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
639
|
+
bool operator==(const EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsImportantStruct&) const = default;
|
|
640
|
+
|
|
641
|
+
folly::dynamic toDynamic() const {
|
|
642
|
+
folly::dynamic result = folly::dynamic::object();
|
|
643
|
+
result["color"] = ::facebook::react::toDynamic(color);
|
|
644
|
+
result["backgroundColor"] = ::facebook::react::toDynamic(backgroundColor);
|
|
645
|
+
return result;
|
|
646
|
+
}
|
|
647
|
+
#endif
|
|
648
|
+
};
|
|
649
|
+
|
|
650
|
+
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsImportantStruct &result) {
|
|
651
|
+
auto map = (std::unordered_map<std::string, RawValue>)value;
|
|
652
|
+
|
|
653
|
+
auto tmp_color = map.find("color");
|
|
654
|
+
if (tmp_color != map.end()) {
|
|
655
|
+
fromRawValue(context, tmp_color->second, result.color);
|
|
656
|
+
}
|
|
657
|
+
auto tmp_backgroundColor = map.find("backgroundColor");
|
|
658
|
+
if (tmp_backgroundColor != map.end()) {
|
|
659
|
+
fromRawValue(context, tmp_backgroundColor->second, result.backgroundColor);
|
|
660
|
+
}
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
static inline std::string toString(const EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsImportantStruct &value) {
|
|
664
|
+
return "[Object EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsImportantStruct]";
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
668
|
+
static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsImportantStruct &value) {
|
|
669
|
+
return value.toDynamic();
|
|
670
|
+
}
|
|
671
|
+
#endif
|
|
672
|
+
|
|
673
|
+
struct EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsWarningStruct {
|
|
674
|
+
SharedColor color{};
|
|
675
|
+
SharedColor backgroundColor{};
|
|
676
|
+
|
|
677
|
+
|
|
678
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
679
|
+
bool operator==(const EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsWarningStruct&) const = default;
|
|
680
|
+
|
|
681
|
+
folly::dynamic toDynamic() const {
|
|
682
|
+
folly::dynamic result = folly::dynamic::object();
|
|
683
|
+
result["color"] = ::facebook::react::toDynamic(color);
|
|
684
|
+
result["backgroundColor"] = ::facebook::react::toDynamic(backgroundColor);
|
|
685
|
+
return result;
|
|
686
|
+
}
|
|
687
|
+
#endif
|
|
688
|
+
};
|
|
689
|
+
|
|
690
|
+
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsWarningStruct &result) {
|
|
691
|
+
auto map = (std::unordered_map<std::string, RawValue>)value;
|
|
692
|
+
|
|
693
|
+
auto tmp_color = map.find("color");
|
|
694
|
+
if (tmp_color != map.end()) {
|
|
695
|
+
fromRawValue(context, tmp_color->second, result.color);
|
|
696
|
+
}
|
|
697
|
+
auto tmp_backgroundColor = map.find("backgroundColor");
|
|
698
|
+
if (tmp_backgroundColor != map.end()) {
|
|
699
|
+
fromRawValue(context, tmp_backgroundColor->second, result.backgroundColor);
|
|
700
|
+
}
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
static inline std::string toString(const EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsWarningStruct &value) {
|
|
704
|
+
return "[Object EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsWarningStruct]";
|
|
705
|
+
}
|
|
706
|
+
|
|
707
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
708
|
+
static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsWarningStruct &value) {
|
|
709
|
+
return value.toDynamic();
|
|
710
|
+
}
|
|
711
|
+
#endif
|
|
712
|
+
|
|
713
|
+
struct EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsCautionStruct {
|
|
714
|
+
SharedColor color{};
|
|
715
|
+
SharedColor backgroundColor{};
|
|
716
|
+
|
|
717
|
+
|
|
718
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
719
|
+
bool operator==(const EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsCautionStruct&) const = default;
|
|
720
|
+
|
|
721
|
+
folly::dynamic toDynamic() const {
|
|
722
|
+
folly::dynamic result = folly::dynamic::object();
|
|
723
|
+
result["color"] = ::facebook::react::toDynamic(color);
|
|
724
|
+
result["backgroundColor"] = ::facebook::react::toDynamic(backgroundColor);
|
|
725
|
+
return result;
|
|
726
|
+
}
|
|
727
|
+
#endif
|
|
728
|
+
};
|
|
729
|
+
|
|
730
|
+
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsCautionStruct &result) {
|
|
731
|
+
auto map = (std::unordered_map<std::string, RawValue>)value;
|
|
732
|
+
|
|
733
|
+
auto tmp_color = map.find("color");
|
|
734
|
+
if (tmp_color != map.end()) {
|
|
735
|
+
fromRawValue(context, tmp_color->second, result.color);
|
|
736
|
+
}
|
|
737
|
+
auto tmp_backgroundColor = map.find("backgroundColor");
|
|
738
|
+
if (tmp_backgroundColor != map.end()) {
|
|
739
|
+
fromRawValue(context, tmp_backgroundColor->second, result.backgroundColor);
|
|
740
|
+
}
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
static inline std::string toString(const EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsCautionStruct &value) {
|
|
744
|
+
return "[Object EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsCautionStruct]";
|
|
745
|
+
}
|
|
746
|
+
|
|
747
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
748
|
+
static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsCautionStruct &value) {
|
|
749
|
+
return value.toDynamic();
|
|
750
|
+
}
|
|
751
|
+
#endif
|
|
752
|
+
|
|
753
|
+
struct EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsStruct {
|
|
754
|
+
EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsNoteStruct note{};
|
|
755
|
+
EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsTipStruct tip{};
|
|
756
|
+
EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsImportantStruct important{};
|
|
757
|
+
EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsWarningStruct warning{};
|
|
758
|
+
EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsCautionStruct caution{};
|
|
759
|
+
|
|
760
|
+
|
|
761
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
762
|
+
bool operator==(const EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsStruct&) const = default;
|
|
763
|
+
|
|
764
|
+
folly::dynamic toDynamic() const {
|
|
765
|
+
folly::dynamic result = folly::dynamic::object();
|
|
766
|
+
result["note"] = ::facebook::react::toDynamic(note);
|
|
767
|
+
result["tip"] = ::facebook::react::toDynamic(tip);
|
|
768
|
+
result["important"] = ::facebook::react::toDynamic(important);
|
|
769
|
+
result["warning"] = ::facebook::react::toDynamic(warning);
|
|
770
|
+
result["caution"] = ::facebook::react::toDynamic(caution);
|
|
771
|
+
return result;
|
|
772
|
+
}
|
|
773
|
+
#endif
|
|
774
|
+
};
|
|
775
|
+
|
|
776
|
+
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsStruct &result) {
|
|
777
|
+
auto map = (std::unordered_map<std::string, RawValue>)value;
|
|
778
|
+
|
|
779
|
+
auto tmp_note = map.find("note");
|
|
780
|
+
if (tmp_note != map.end()) {
|
|
781
|
+
fromRawValue(context, tmp_note->second, result.note);
|
|
782
|
+
}
|
|
783
|
+
auto tmp_tip = map.find("tip");
|
|
784
|
+
if (tmp_tip != map.end()) {
|
|
785
|
+
fromRawValue(context, tmp_tip->second, result.tip);
|
|
786
|
+
}
|
|
787
|
+
auto tmp_important = map.find("important");
|
|
788
|
+
if (tmp_important != map.end()) {
|
|
789
|
+
fromRawValue(context, tmp_important->second, result.important);
|
|
790
|
+
}
|
|
791
|
+
auto tmp_warning = map.find("warning");
|
|
792
|
+
if (tmp_warning != map.end()) {
|
|
793
|
+
fromRawValue(context, tmp_warning->second, result.warning);
|
|
794
|
+
}
|
|
795
|
+
auto tmp_caution = map.find("caution");
|
|
796
|
+
if (tmp_caution != map.end()) {
|
|
797
|
+
fromRawValue(context, tmp_caution->second, result.caution);
|
|
798
|
+
}
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
static inline std::string toString(const EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsStruct &value) {
|
|
802
|
+
return "[Object EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsStruct]";
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
806
|
+
static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsStruct &value) {
|
|
807
|
+
return value.toDynamic();
|
|
808
|
+
}
|
|
809
|
+
#endif
|
|
810
|
+
|
|
553
811
|
struct EnrichedMarkdownMarkdownStyleBlockquoteStruct {
|
|
554
812
|
Float fontSize{0.0};
|
|
555
813
|
std::string fontFamily{};
|
|
@@ -564,6 +822,7 @@ struct EnrichedMarkdownMarkdownStyleBlockquoteStruct {
|
|
|
564
822
|
SharedColor backgroundColor{};
|
|
565
823
|
Float borderRadius{0.0};
|
|
566
824
|
Float padding{0.0};
|
|
825
|
+
EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsStruct admonitions{};
|
|
567
826
|
|
|
568
827
|
|
|
569
828
|
#ifdef RN_SERIALIZABLE_STATE
|
|
@@ -584,6 +843,7 @@ struct EnrichedMarkdownMarkdownStyleBlockquoteStruct {
|
|
|
584
843
|
result["backgroundColor"] = ::facebook::react::toDynamic(backgroundColor);
|
|
585
844
|
result["borderRadius"] = borderRadius;
|
|
586
845
|
result["padding"] = padding;
|
|
846
|
+
result["admonitions"] = ::facebook::react::toDynamic(admonitions);
|
|
587
847
|
return result;
|
|
588
848
|
}
|
|
589
849
|
#endif
|
|
@@ -644,6 +904,10 @@ static inline void fromRawValue(const PropsParserContext& context, const RawValu
|
|
|
644
904
|
if (tmp_padding != map.end()) {
|
|
645
905
|
fromRawValue(context, tmp_padding->second, result.padding);
|
|
646
906
|
}
|
|
907
|
+
auto tmp_admonitions = map.find("admonitions");
|
|
908
|
+
if (tmp_admonitions != map.end()) {
|
|
909
|
+
fromRawValue(context, tmp_admonitions->second, result.admonitions);
|
|
910
|
+
}
|
|
647
911
|
}
|
|
648
912
|
|
|
649
913
|
static inline std::string toString(const EnrichedMarkdownMarkdownStyleBlockquoteStruct &value) {
|
|
@@ -1084,6 +1348,7 @@ struct EnrichedMarkdownMarkdownStyleLinkVariantsStruct {
|
|
|
1084
1348
|
Float paddingVertical{0.0};
|
|
1085
1349
|
SharedColor borderColor{};
|
|
1086
1350
|
Float borderWidth{0.0};
|
|
1351
|
+
std::string fontFamily{};
|
|
1087
1352
|
|
|
1088
1353
|
|
|
1089
1354
|
#ifdef RN_SERIALIZABLE_STATE
|
|
@@ -1100,6 +1365,7 @@ struct EnrichedMarkdownMarkdownStyleLinkVariantsStruct {
|
|
|
1100
1365
|
result["paddingVertical"] = paddingVertical;
|
|
1101
1366
|
result["borderColor"] = ::facebook::react::toDynamic(borderColor);
|
|
1102
1367
|
result["borderWidth"] = borderWidth;
|
|
1368
|
+
result["fontFamily"] = fontFamily;
|
|
1103
1369
|
return result;
|
|
1104
1370
|
}
|
|
1105
1371
|
#endif
|
|
@@ -1144,6 +1410,10 @@ static inline void fromRawValue(const PropsParserContext& context, const RawValu
|
|
|
1144
1410
|
if (tmp_borderWidth != map.end()) {
|
|
1145
1411
|
fromRawValue(context, tmp_borderWidth->second, result.borderWidth);
|
|
1146
1412
|
}
|
|
1413
|
+
auto tmp_fontFamily = map.find("fontFamily");
|
|
1414
|
+
if (tmp_fontFamily != map.end()) {
|
|
1415
|
+
fromRawValue(context, tmp_fontFamily->second, result.fontFamily);
|
|
1416
|
+
}
|
|
1147
1417
|
}
|
|
1148
1418
|
|
|
1149
1419
|
static inline std::string toString(const EnrichedMarkdownMarkdownStyleLinkVariantsStruct &value) {
|
|
@@ -1454,6 +1724,64 @@ static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleImageS
|
|
|
1454
1724
|
}
|
|
1455
1725
|
#endif
|
|
1456
1726
|
|
|
1727
|
+
struct EnrichedMarkdownMarkdownStyleVideoStruct {
|
|
1728
|
+
Float marginTop{0.0};
|
|
1729
|
+
Float marginBottom{0.0};
|
|
1730
|
+
Float borderRadius{0.0};
|
|
1731
|
+
Float aspectRatio{0.0};
|
|
1732
|
+
SharedColor backgroundColor{};
|
|
1733
|
+
|
|
1734
|
+
|
|
1735
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
1736
|
+
bool operator==(const EnrichedMarkdownMarkdownStyleVideoStruct&) const = default;
|
|
1737
|
+
|
|
1738
|
+
folly::dynamic toDynamic() const {
|
|
1739
|
+
folly::dynamic result = folly::dynamic::object();
|
|
1740
|
+
result["marginTop"] = marginTop;
|
|
1741
|
+
result["marginBottom"] = marginBottom;
|
|
1742
|
+
result["borderRadius"] = borderRadius;
|
|
1743
|
+
result["aspectRatio"] = aspectRatio;
|
|
1744
|
+
result["backgroundColor"] = ::facebook::react::toDynamic(backgroundColor);
|
|
1745
|
+
return result;
|
|
1746
|
+
}
|
|
1747
|
+
#endif
|
|
1748
|
+
};
|
|
1749
|
+
|
|
1750
|
+
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleVideoStruct &result) {
|
|
1751
|
+
auto map = (std::unordered_map<std::string, RawValue>)value;
|
|
1752
|
+
|
|
1753
|
+
auto tmp_marginTop = map.find("marginTop");
|
|
1754
|
+
if (tmp_marginTop != map.end()) {
|
|
1755
|
+
fromRawValue(context, tmp_marginTop->second, result.marginTop);
|
|
1756
|
+
}
|
|
1757
|
+
auto tmp_marginBottom = map.find("marginBottom");
|
|
1758
|
+
if (tmp_marginBottom != map.end()) {
|
|
1759
|
+
fromRawValue(context, tmp_marginBottom->second, result.marginBottom);
|
|
1760
|
+
}
|
|
1761
|
+
auto tmp_borderRadius = map.find("borderRadius");
|
|
1762
|
+
if (tmp_borderRadius != map.end()) {
|
|
1763
|
+
fromRawValue(context, tmp_borderRadius->second, result.borderRadius);
|
|
1764
|
+
}
|
|
1765
|
+
auto tmp_aspectRatio = map.find("aspectRatio");
|
|
1766
|
+
if (tmp_aspectRatio != map.end()) {
|
|
1767
|
+
fromRawValue(context, tmp_aspectRatio->second, result.aspectRatio);
|
|
1768
|
+
}
|
|
1769
|
+
auto tmp_backgroundColor = map.find("backgroundColor");
|
|
1770
|
+
if (tmp_backgroundColor != map.end()) {
|
|
1771
|
+
fromRawValue(context, tmp_backgroundColor->second, result.backgroundColor);
|
|
1772
|
+
}
|
|
1773
|
+
}
|
|
1774
|
+
|
|
1775
|
+
static inline std::string toString(const EnrichedMarkdownMarkdownStyleVideoStruct &value) {
|
|
1776
|
+
return "[Object EnrichedMarkdownMarkdownStyleVideoStruct]";
|
|
1777
|
+
}
|
|
1778
|
+
|
|
1779
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
1780
|
+
static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleVideoStruct &value) {
|
|
1781
|
+
return value.toDynamic();
|
|
1782
|
+
}
|
|
1783
|
+
#endif
|
|
1784
|
+
|
|
1457
1785
|
struct EnrichedMarkdownMarkdownStyleInlineImageStruct {
|
|
1458
1786
|
Float size{0.0};
|
|
1459
1787
|
|
|
@@ -2145,6 +2473,7 @@ struct EnrichedMarkdownMarkdownStyleStruct {
|
|
|
2145
2473
|
EnrichedMarkdownMarkdownStyleUnderlineStruct underline{};
|
|
2146
2474
|
EnrichedMarkdownMarkdownStyleCodeStruct code{};
|
|
2147
2475
|
EnrichedMarkdownMarkdownStyleImageStruct image{};
|
|
2476
|
+
EnrichedMarkdownMarkdownStyleVideoStruct video{};
|
|
2148
2477
|
EnrichedMarkdownMarkdownStyleInlineImageStruct inlineImage{};
|
|
2149
2478
|
EnrichedMarkdownMarkdownStyleThematicBreakStruct thematicBreak{};
|
|
2150
2479
|
EnrichedMarkdownMarkdownStyleTableStruct table{};
|
|
@@ -2180,6 +2509,7 @@ struct EnrichedMarkdownMarkdownStyleStruct {
|
|
|
2180
2509
|
result["underline"] = ::facebook::react::toDynamic(underline);
|
|
2181
2510
|
result["code"] = ::facebook::react::toDynamic(code);
|
|
2182
2511
|
result["image"] = ::facebook::react::toDynamic(image);
|
|
2512
|
+
result["video"] = ::facebook::react::toDynamic(video);
|
|
2183
2513
|
result["inlineImage"] = ::facebook::react::toDynamic(inlineImage);
|
|
2184
2514
|
result["thematicBreak"] = ::facebook::react::toDynamic(thematicBreak);
|
|
2185
2515
|
result["table"] = ::facebook::react::toDynamic(table);
|
|
@@ -2270,6 +2600,10 @@ static inline void fromRawValue(const PropsParserContext& context, const RawValu
|
|
|
2270
2600
|
if (tmp_image != map.end()) {
|
|
2271
2601
|
fromRawValue(context, tmp_image->second, result.image);
|
|
2272
2602
|
}
|
|
2603
|
+
auto tmp_video = map.find("video");
|
|
2604
|
+
if (tmp_video != map.end()) {
|
|
2605
|
+
fromRawValue(context, tmp_video->second, result.video);
|
|
2606
|
+
}
|
|
2273
2607
|
auto tmp_inlineImage = map.find("inlineImage");
|
|
2274
2608
|
if (tmp_inlineImage != map.end()) {
|
|
2275
2609
|
fromRawValue(context, tmp_inlineImage->second, result.inlineImage);
|
|
@@ -2329,6 +2663,8 @@ struct EnrichedMarkdownMd4cFlagsStruct {
|
|
|
2329
2663
|
bool latexMath{false};
|
|
2330
2664
|
bool highlight{false};
|
|
2331
2665
|
bool hardSoftBreaks{false};
|
|
2666
|
+
bool preserveBlankLines{false};
|
|
2667
|
+
bool admonitions{false};
|
|
2332
2668
|
|
|
2333
2669
|
|
|
2334
2670
|
#ifdef RN_SERIALIZABLE_STATE
|
|
@@ -2342,6 +2678,8 @@ struct EnrichedMarkdownMd4cFlagsStruct {
|
|
|
2342
2678
|
result["latexMath"] = latexMath;
|
|
2343
2679
|
result["highlight"] = highlight;
|
|
2344
2680
|
result["hardSoftBreaks"] = hardSoftBreaks;
|
|
2681
|
+
result["preserveBlankLines"] = preserveBlankLines;
|
|
2682
|
+
result["admonitions"] = admonitions;
|
|
2345
2683
|
return result;
|
|
2346
2684
|
}
|
|
2347
2685
|
#endif
|
|
@@ -2374,6 +2712,14 @@ static inline void fromRawValue(const PropsParserContext& context, const RawValu
|
|
|
2374
2712
|
if (tmp_hardSoftBreaks != map.end()) {
|
|
2375
2713
|
fromRawValue(context, tmp_hardSoftBreaks->second, result.hardSoftBreaks);
|
|
2376
2714
|
}
|
|
2715
|
+
auto tmp_preserveBlankLines = map.find("preserveBlankLines");
|
|
2716
|
+
if (tmp_preserveBlankLines != map.end()) {
|
|
2717
|
+
fromRawValue(context, tmp_preserveBlankLines->second, result.preserveBlankLines);
|
|
2718
|
+
}
|
|
2719
|
+
auto tmp_admonitions = map.find("admonitions");
|
|
2720
|
+
if (tmp_admonitions != map.end()) {
|
|
2721
|
+
fromRawValue(context, tmp_admonitions->second, result.admonitions);
|
|
2722
|
+
}
|
|
2377
2723
|
}
|
|
2378
2724
|
|
|
2379
2725
|
static inline std::string toString(const EnrichedMarkdownMd4cFlagsStruct &value) {
|
|
@@ -2900,13 +3246,17 @@ class EnrichedMarkdownProps final : public ViewProps {
|
|
|
2900
3246
|
EnrichedMarkdownMarkdownStyleStruct markdownStyle{};
|
|
2901
3247
|
bool emitLinkLayout{false};
|
|
2902
3248
|
bool emitSelectionChange{false};
|
|
3249
|
+
bool enableImagePress{false};
|
|
2903
3250
|
bool enableTaskListItemToggle{true};
|
|
3251
|
+
bool enableCodeBlockPress{false};
|
|
3252
|
+
bool enableBlockContextMenu{true};
|
|
2904
3253
|
bool enableLinkPreview{true};
|
|
2905
3254
|
bool linkLongPressSelects{false};
|
|
2906
3255
|
bool selectable{false};
|
|
2907
3256
|
SharedColor selectionColor{};
|
|
2908
3257
|
SharedColor selectionHandleColor{};
|
|
2909
3258
|
EnrichedMarkdownMd4cFlagsStruct md4cFlags{};
|
|
3259
|
+
bool isGFM{true};
|
|
2910
3260
|
bool allowFontScaling{true};
|
|
2911
3261
|
Float maxFontSizeMultiplier{0.0};
|
|
2912
3262
|
bool allowTrailingMargin{false};
|
|
@@ -2921,6 +3271,8 @@ class EnrichedMarkdownProps final : public ViewProps {
|
|
|
2921
3271
|
std::string textBreakStrategy{std::string{"highQuality"}};
|
|
2922
3272
|
std::string lineBreakStrategyIOS{std::string{"none"}};
|
|
2923
3273
|
std::string writingDirection{std::string{"first-strong"}};
|
|
3274
|
+
int numberOfLines{0};
|
|
3275
|
+
std::string ellipsizeMode{std::string{"tail"}};
|
|
2924
3276
|
|
|
2925
3277
|
#ifdef RN_SERIALIZABLE_STATE
|
|
2926
3278
|
ComponentName getDiffPropsImplementationTarget() const override;
|
|
@@ -2931,6 +3283,52 @@ class EnrichedMarkdownProps final : public ViewProps {
|
|
|
2931
3283
|
|
|
2932
3284
|
};
|
|
2933
3285
|
|
|
3286
|
+
struct EnrichedMarkdownTextInputMarkdownShortcutsStruct {
|
|
3287
|
+
bool heading{false};
|
|
3288
|
+
bool unorderedList{false};
|
|
3289
|
+
bool orderedList{false};
|
|
3290
|
+
|
|
3291
|
+
|
|
3292
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
3293
|
+
bool operator==(const EnrichedMarkdownTextInputMarkdownShortcutsStruct&) const = default;
|
|
3294
|
+
|
|
3295
|
+
folly::dynamic toDynamic() const {
|
|
3296
|
+
folly::dynamic result = folly::dynamic::object();
|
|
3297
|
+
result["heading"] = heading;
|
|
3298
|
+
result["unorderedList"] = unorderedList;
|
|
3299
|
+
result["orderedList"] = orderedList;
|
|
3300
|
+
return result;
|
|
3301
|
+
}
|
|
3302
|
+
#endif
|
|
3303
|
+
};
|
|
3304
|
+
|
|
3305
|
+
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextInputMarkdownShortcutsStruct &result) {
|
|
3306
|
+
auto map = (std::unordered_map<std::string, RawValue>)value;
|
|
3307
|
+
|
|
3308
|
+
auto tmp_heading = map.find("heading");
|
|
3309
|
+
if (tmp_heading != map.end()) {
|
|
3310
|
+
fromRawValue(context, tmp_heading->second, result.heading);
|
|
3311
|
+
}
|
|
3312
|
+
auto tmp_unorderedList = map.find("unorderedList");
|
|
3313
|
+
if (tmp_unorderedList != map.end()) {
|
|
3314
|
+
fromRawValue(context, tmp_unorderedList->second, result.unorderedList);
|
|
3315
|
+
}
|
|
3316
|
+
auto tmp_orderedList = map.find("orderedList");
|
|
3317
|
+
if (tmp_orderedList != map.end()) {
|
|
3318
|
+
fromRawValue(context, tmp_orderedList->second, result.orderedList);
|
|
3319
|
+
}
|
|
3320
|
+
}
|
|
3321
|
+
|
|
3322
|
+
static inline std::string toString(const EnrichedMarkdownTextInputMarkdownShortcutsStruct &value) {
|
|
3323
|
+
return "[Object EnrichedMarkdownTextInputMarkdownShortcutsStruct]";
|
|
3324
|
+
}
|
|
3325
|
+
|
|
3326
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
3327
|
+
static inline folly::dynamic toDynamic(const EnrichedMarkdownTextInputMarkdownShortcutsStruct &value) {
|
|
3328
|
+
return value.toDynamic();
|
|
3329
|
+
}
|
|
3330
|
+
#endif
|
|
3331
|
+
|
|
2934
3332
|
struct EnrichedMarkdownTextInputMarkdownStyleStrongStruct {
|
|
2935
3333
|
SharedColor color{};
|
|
2936
3334
|
|
|
@@ -4048,6 +4446,7 @@ class EnrichedMarkdownTextInputProps final : public ViewProps {
|
|
|
4048
4446
|
bool autoFocus{false};
|
|
4049
4447
|
bool scrollEnabled{false};
|
|
4050
4448
|
bool blockSyntax{false};
|
|
4449
|
+
EnrichedMarkdownTextInputMarkdownShortcutsStruct markdownShortcuts{};
|
|
4051
4450
|
std::string autoCapitalize{};
|
|
4052
4451
|
bool interceptPaste{false};
|
|
4053
4452
|
bool multiline{false};
|
|
@@ -4324,286 +4723,544 @@ struct EnrichedMarkdownTextMarkdownStyleH3Struct {
|
|
|
4324
4723
|
result["fontFamily"] = fontFamily;
|
|
4325
4724
|
result["fontWeight"] = fontWeight;
|
|
4326
4725
|
result["color"] = ::facebook::react::toDynamic(color);
|
|
4327
|
-
result["marginTop"] = marginTop;
|
|
4328
|
-
result["marginBottom"] = marginBottom;
|
|
4329
|
-
result["lineHeight"] = lineHeight;
|
|
4330
|
-
result["textAlign"] = textAlign;
|
|
4726
|
+
result["marginTop"] = marginTop;
|
|
4727
|
+
result["marginBottom"] = marginBottom;
|
|
4728
|
+
result["lineHeight"] = lineHeight;
|
|
4729
|
+
result["textAlign"] = textAlign;
|
|
4730
|
+
return result;
|
|
4731
|
+
}
|
|
4732
|
+
#endif
|
|
4733
|
+
};
|
|
4734
|
+
|
|
4735
|
+
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleH3Struct &result) {
|
|
4736
|
+
auto map = (std::unordered_map<std::string, RawValue>)value;
|
|
4737
|
+
|
|
4738
|
+
auto tmp_fontSize = map.find("fontSize");
|
|
4739
|
+
if (tmp_fontSize != map.end()) {
|
|
4740
|
+
fromRawValue(context, tmp_fontSize->second, result.fontSize);
|
|
4741
|
+
}
|
|
4742
|
+
auto tmp_fontFamily = map.find("fontFamily");
|
|
4743
|
+
if (tmp_fontFamily != map.end()) {
|
|
4744
|
+
fromRawValue(context, tmp_fontFamily->second, result.fontFamily);
|
|
4745
|
+
}
|
|
4746
|
+
auto tmp_fontWeight = map.find("fontWeight");
|
|
4747
|
+
if (tmp_fontWeight != map.end()) {
|
|
4748
|
+
fromRawValue(context, tmp_fontWeight->second, result.fontWeight);
|
|
4749
|
+
}
|
|
4750
|
+
auto tmp_color = map.find("color");
|
|
4751
|
+
if (tmp_color != map.end()) {
|
|
4752
|
+
fromRawValue(context, tmp_color->second, result.color);
|
|
4753
|
+
}
|
|
4754
|
+
auto tmp_marginTop = map.find("marginTop");
|
|
4755
|
+
if (tmp_marginTop != map.end()) {
|
|
4756
|
+
fromRawValue(context, tmp_marginTop->second, result.marginTop);
|
|
4757
|
+
}
|
|
4758
|
+
auto tmp_marginBottom = map.find("marginBottom");
|
|
4759
|
+
if (tmp_marginBottom != map.end()) {
|
|
4760
|
+
fromRawValue(context, tmp_marginBottom->second, result.marginBottom);
|
|
4761
|
+
}
|
|
4762
|
+
auto tmp_lineHeight = map.find("lineHeight");
|
|
4763
|
+
if (tmp_lineHeight != map.end()) {
|
|
4764
|
+
fromRawValue(context, tmp_lineHeight->second, result.lineHeight);
|
|
4765
|
+
}
|
|
4766
|
+
auto tmp_textAlign = map.find("textAlign");
|
|
4767
|
+
if (tmp_textAlign != map.end()) {
|
|
4768
|
+
fromRawValue(context, tmp_textAlign->second, result.textAlign);
|
|
4769
|
+
}
|
|
4770
|
+
}
|
|
4771
|
+
|
|
4772
|
+
static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleH3Struct &value) {
|
|
4773
|
+
return "[Object EnrichedMarkdownTextMarkdownStyleH3Struct]";
|
|
4774
|
+
}
|
|
4775
|
+
|
|
4776
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
4777
|
+
static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleH3Struct &value) {
|
|
4778
|
+
return value.toDynamic();
|
|
4779
|
+
}
|
|
4780
|
+
#endif
|
|
4781
|
+
|
|
4782
|
+
struct EnrichedMarkdownTextMarkdownStyleH4Struct {
|
|
4783
|
+
Float fontSize{0.0};
|
|
4784
|
+
std::string fontFamily{};
|
|
4785
|
+
std::string fontWeight{};
|
|
4786
|
+
SharedColor color{};
|
|
4787
|
+
Float marginTop{0.0};
|
|
4788
|
+
Float marginBottom{0.0};
|
|
4789
|
+
Float lineHeight{0.0};
|
|
4790
|
+
std::string textAlign{};
|
|
4791
|
+
|
|
4792
|
+
|
|
4793
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
4794
|
+
bool operator==(const EnrichedMarkdownTextMarkdownStyleH4Struct&) const = default;
|
|
4795
|
+
|
|
4796
|
+
folly::dynamic toDynamic() const {
|
|
4797
|
+
folly::dynamic result = folly::dynamic::object();
|
|
4798
|
+
result["fontSize"] = fontSize;
|
|
4799
|
+
result["fontFamily"] = fontFamily;
|
|
4800
|
+
result["fontWeight"] = fontWeight;
|
|
4801
|
+
result["color"] = ::facebook::react::toDynamic(color);
|
|
4802
|
+
result["marginTop"] = marginTop;
|
|
4803
|
+
result["marginBottom"] = marginBottom;
|
|
4804
|
+
result["lineHeight"] = lineHeight;
|
|
4805
|
+
result["textAlign"] = textAlign;
|
|
4806
|
+
return result;
|
|
4807
|
+
}
|
|
4808
|
+
#endif
|
|
4809
|
+
};
|
|
4810
|
+
|
|
4811
|
+
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleH4Struct &result) {
|
|
4812
|
+
auto map = (std::unordered_map<std::string, RawValue>)value;
|
|
4813
|
+
|
|
4814
|
+
auto tmp_fontSize = map.find("fontSize");
|
|
4815
|
+
if (tmp_fontSize != map.end()) {
|
|
4816
|
+
fromRawValue(context, tmp_fontSize->second, result.fontSize);
|
|
4817
|
+
}
|
|
4818
|
+
auto tmp_fontFamily = map.find("fontFamily");
|
|
4819
|
+
if (tmp_fontFamily != map.end()) {
|
|
4820
|
+
fromRawValue(context, tmp_fontFamily->second, result.fontFamily);
|
|
4821
|
+
}
|
|
4822
|
+
auto tmp_fontWeight = map.find("fontWeight");
|
|
4823
|
+
if (tmp_fontWeight != map.end()) {
|
|
4824
|
+
fromRawValue(context, tmp_fontWeight->second, result.fontWeight);
|
|
4825
|
+
}
|
|
4826
|
+
auto tmp_color = map.find("color");
|
|
4827
|
+
if (tmp_color != map.end()) {
|
|
4828
|
+
fromRawValue(context, tmp_color->second, result.color);
|
|
4829
|
+
}
|
|
4830
|
+
auto tmp_marginTop = map.find("marginTop");
|
|
4831
|
+
if (tmp_marginTop != map.end()) {
|
|
4832
|
+
fromRawValue(context, tmp_marginTop->second, result.marginTop);
|
|
4833
|
+
}
|
|
4834
|
+
auto tmp_marginBottom = map.find("marginBottom");
|
|
4835
|
+
if (tmp_marginBottom != map.end()) {
|
|
4836
|
+
fromRawValue(context, tmp_marginBottom->second, result.marginBottom);
|
|
4837
|
+
}
|
|
4838
|
+
auto tmp_lineHeight = map.find("lineHeight");
|
|
4839
|
+
if (tmp_lineHeight != map.end()) {
|
|
4840
|
+
fromRawValue(context, tmp_lineHeight->second, result.lineHeight);
|
|
4841
|
+
}
|
|
4842
|
+
auto tmp_textAlign = map.find("textAlign");
|
|
4843
|
+
if (tmp_textAlign != map.end()) {
|
|
4844
|
+
fromRawValue(context, tmp_textAlign->second, result.textAlign);
|
|
4845
|
+
}
|
|
4846
|
+
}
|
|
4847
|
+
|
|
4848
|
+
static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleH4Struct &value) {
|
|
4849
|
+
return "[Object EnrichedMarkdownTextMarkdownStyleH4Struct]";
|
|
4850
|
+
}
|
|
4851
|
+
|
|
4852
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
4853
|
+
static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleH4Struct &value) {
|
|
4854
|
+
return value.toDynamic();
|
|
4855
|
+
}
|
|
4856
|
+
#endif
|
|
4857
|
+
|
|
4858
|
+
struct EnrichedMarkdownTextMarkdownStyleH5Struct {
|
|
4859
|
+
Float fontSize{0.0};
|
|
4860
|
+
std::string fontFamily{};
|
|
4861
|
+
std::string fontWeight{};
|
|
4862
|
+
SharedColor color{};
|
|
4863
|
+
Float marginTop{0.0};
|
|
4864
|
+
Float marginBottom{0.0};
|
|
4865
|
+
Float lineHeight{0.0};
|
|
4866
|
+
std::string textAlign{};
|
|
4867
|
+
|
|
4868
|
+
|
|
4869
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
4870
|
+
bool operator==(const EnrichedMarkdownTextMarkdownStyleH5Struct&) const = default;
|
|
4871
|
+
|
|
4872
|
+
folly::dynamic toDynamic() const {
|
|
4873
|
+
folly::dynamic result = folly::dynamic::object();
|
|
4874
|
+
result["fontSize"] = fontSize;
|
|
4875
|
+
result["fontFamily"] = fontFamily;
|
|
4876
|
+
result["fontWeight"] = fontWeight;
|
|
4877
|
+
result["color"] = ::facebook::react::toDynamic(color);
|
|
4878
|
+
result["marginTop"] = marginTop;
|
|
4879
|
+
result["marginBottom"] = marginBottom;
|
|
4880
|
+
result["lineHeight"] = lineHeight;
|
|
4881
|
+
result["textAlign"] = textAlign;
|
|
4882
|
+
return result;
|
|
4883
|
+
}
|
|
4884
|
+
#endif
|
|
4885
|
+
};
|
|
4886
|
+
|
|
4887
|
+
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleH5Struct &result) {
|
|
4888
|
+
auto map = (std::unordered_map<std::string, RawValue>)value;
|
|
4889
|
+
|
|
4890
|
+
auto tmp_fontSize = map.find("fontSize");
|
|
4891
|
+
if (tmp_fontSize != map.end()) {
|
|
4892
|
+
fromRawValue(context, tmp_fontSize->second, result.fontSize);
|
|
4893
|
+
}
|
|
4894
|
+
auto tmp_fontFamily = map.find("fontFamily");
|
|
4895
|
+
if (tmp_fontFamily != map.end()) {
|
|
4896
|
+
fromRawValue(context, tmp_fontFamily->second, result.fontFamily);
|
|
4897
|
+
}
|
|
4898
|
+
auto tmp_fontWeight = map.find("fontWeight");
|
|
4899
|
+
if (tmp_fontWeight != map.end()) {
|
|
4900
|
+
fromRawValue(context, tmp_fontWeight->second, result.fontWeight);
|
|
4901
|
+
}
|
|
4902
|
+
auto tmp_color = map.find("color");
|
|
4903
|
+
if (tmp_color != map.end()) {
|
|
4904
|
+
fromRawValue(context, tmp_color->second, result.color);
|
|
4905
|
+
}
|
|
4906
|
+
auto tmp_marginTop = map.find("marginTop");
|
|
4907
|
+
if (tmp_marginTop != map.end()) {
|
|
4908
|
+
fromRawValue(context, tmp_marginTop->second, result.marginTop);
|
|
4909
|
+
}
|
|
4910
|
+
auto tmp_marginBottom = map.find("marginBottom");
|
|
4911
|
+
if (tmp_marginBottom != map.end()) {
|
|
4912
|
+
fromRawValue(context, tmp_marginBottom->second, result.marginBottom);
|
|
4913
|
+
}
|
|
4914
|
+
auto tmp_lineHeight = map.find("lineHeight");
|
|
4915
|
+
if (tmp_lineHeight != map.end()) {
|
|
4916
|
+
fromRawValue(context, tmp_lineHeight->second, result.lineHeight);
|
|
4917
|
+
}
|
|
4918
|
+
auto tmp_textAlign = map.find("textAlign");
|
|
4919
|
+
if (tmp_textAlign != map.end()) {
|
|
4920
|
+
fromRawValue(context, tmp_textAlign->second, result.textAlign);
|
|
4921
|
+
}
|
|
4922
|
+
}
|
|
4923
|
+
|
|
4924
|
+
static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleH5Struct &value) {
|
|
4925
|
+
return "[Object EnrichedMarkdownTextMarkdownStyleH5Struct]";
|
|
4926
|
+
}
|
|
4927
|
+
|
|
4928
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
4929
|
+
static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleH5Struct &value) {
|
|
4930
|
+
return value.toDynamic();
|
|
4931
|
+
}
|
|
4932
|
+
#endif
|
|
4933
|
+
|
|
4934
|
+
struct EnrichedMarkdownTextMarkdownStyleH6Struct {
|
|
4935
|
+
Float fontSize{0.0};
|
|
4936
|
+
std::string fontFamily{};
|
|
4937
|
+
std::string fontWeight{};
|
|
4938
|
+
SharedColor color{};
|
|
4939
|
+
Float marginTop{0.0};
|
|
4940
|
+
Float marginBottom{0.0};
|
|
4941
|
+
Float lineHeight{0.0};
|
|
4942
|
+
std::string textAlign{};
|
|
4943
|
+
|
|
4944
|
+
|
|
4945
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
4946
|
+
bool operator==(const EnrichedMarkdownTextMarkdownStyleH6Struct&) const = default;
|
|
4947
|
+
|
|
4948
|
+
folly::dynamic toDynamic() const {
|
|
4949
|
+
folly::dynamic result = folly::dynamic::object();
|
|
4950
|
+
result["fontSize"] = fontSize;
|
|
4951
|
+
result["fontFamily"] = fontFamily;
|
|
4952
|
+
result["fontWeight"] = fontWeight;
|
|
4953
|
+
result["color"] = ::facebook::react::toDynamic(color);
|
|
4954
|
+
result["marginTop"] = marginTop;
|
|
4955
|
+
result["marginBottom"] = marginBottom;
|
|
4956
|
+
result["lineHeight"] = lineHeight;
|
|
4957
|
+
result["textAlign"] = textAlign;
|
|
4958
|
+
return result;
|
|
4959
|
+
}
|
|
4960
|
+
#endif
|
|
4961
|
+
};
|
|
4962
|
+
|
|
4963
|
+
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleH6Struct &result) {
|
|
4964
|
+
auto map = (std::unordered_map<std::string, RawValue>)value;
|
|
4965
|
+
|
|
4966
|
+
auto tmp_fontSize = map.find("fontSize");
|
|
4967
|
+
if (tmp_fontSize != map.end()) {
|
|
4968
|
+
fromRawValue(context, tmp_fontSize->second, result.fontSize);
|
|
4969
|
+
}
|
|
4970
|
+
auto tmp_fontFamily = map.find("fontFamily");
|
|
4971
|
+
if (tmp_fontFamily != map.end()) {
|
|
4972
|
+
fromRawValue(context, tmp_fontFamily->second, result.fontFamily);
|
|
4973
|
+
}
|
|
4974
|
+
auto tmp_fontWeight = map.find("fontWeight");
|
|
4975
|
+
if (tmp_fontWeight != map.end()) {
|
|
4976
|
+
fromRawValue(context, tmp_fontWeight->second, result.fontWeight);
|
|
4977
|
+
}
|
|
4978
|
+
auto tmp_color = map.find("color");
|
|
4979
|
+
if (tmp_color != map.end()) {
|
|
4980
|
+
fromRawValue(context, tmp_color->second, result.color);
|
|
4981
|
+
}
|
|
4982
|
+
auto tmp_marginTop = map.find("marginTop");
|
|
4983
|
+
if (tmp_marginTop != map.end()) {
|
|
4984
|
+
fromRawValue(context, tmp_marginTop->second, result.marginTop);
|
|
4985
|
+
}
|
|
4986
|
+
auto tmp_marginBottom = map.find("marginBottom");
|
|
4987
|
+
if (tmp_marginBottom != map.end()) {
|
|
4988
|
+
fromRawValue(context, tmp_marginBottom->second, result.marginBottom);
|
|
4989
|
+
}
|
|
4990
|
+
auto tmp_lineHeight = map.find("lineHeight");
|
|
4991
|
+
if (tmp_lineHeight != map.end()) {
|
|
4992
|
+
fromRawValue(context, tmp_lineHeight->second, result.lineHeight);
|
|
4993
|
+
}
|
|
4994
|
+
auto tmp_textAlign = map.find("textAlign");
|
|
4995
|
+
if (tmp_textAlign != map.end()) {
|
|
4996
|
+
fromRawValue(context, tmp_textAlign->second, result.textAlign);
|
|
4997
|
+
}
|
|
4998
|
+
}
|
|
4999
|
+
|
|
5000
|
+
static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleH6Struct &value) {
|
|
5001
|
+
return "[Object EnrichedMarkdownTextMarkdownStyleH6Struct]";
|
|
5002
|
+
}
|
|
5003
|
+
|
|
5004
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
5005
|
+
static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleH6Struct &value) {
|
|
5006
|
+
return value.toDynamic();
|
|
5007
|
+
}
|
|
5008
|
+
#endif
|
|
5009
|
+
|
|
5010
|
+
struct EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsNoteStruct {
|
|
5011
|
+
SharedColor color{};
|
|
5012
|
+
SharedColor backgroundColor{};
|
|
5013
|
+
|
|
5014
|
+
|
|
5015
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
5016
|
+
bool operator==(const EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsNoteStruct&) const = default;
|
|
5017
|
+
|
|
5018
|
+
folly::dynamic toDynamic() const {
|
|
5019
|
+
folly::dynamic result = folly::dynamic::object();
|
|
5020
|
+
result["color"] = ::facebook::react::toDynamic(color);
|
|
5021
|
+
result["backgroundColor"] = ::facebook::react::toDynamic(backgroundColor);
|
|
5022
|
+
return result;
|
|
5023
|
+
}
|
|
5024
|
+
#endif
|
|
5025
|
+
};
|
|
5026
|
+
|
|
5027
|
+
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsNoteStruct &result) {
|
|
5028
|
+
auto map = (std::unordered_map<std::string, RawValue>)value;
|
|
5029
|
+
|
|
5030
|
+
auto tmp_color = map.find("color");
|
|
5031
|
+
if (tmp_color != map.end()) {
|
|
5032
|
+
fromRawValue(context, tmp_color->second, result.color);
|
|
5033
|
+
}
|
|
5034
|
+
auto tmp_backgroundColor = map.find("backgroundColor");
|
|
5035
|
+
if (tmp_backgroundColor != map.end()) {
|
|
5036
|
+
fromRawValue(context, tmp_backgroundColor->second, result.backgroundColor);
|
|
5037
|
+
}
|
|
5038
|
+
}
|
|
5039
|
+
|
|
5040
|
+
static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsNoteStruct &value) {
|
|
5041
|
+
return "[Object EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsNoteStruct]";
|
|
5042
|
+
}
|
|
5043
|
+
|
|
5044
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
5045
|
+
static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsNoteStruct &value) {
|
|
5046
|
+
return value.toDynamic();
|
|
5047
|
+
}
|
|
5048
|
+
#endif
|
|
5049
|
+
|
|
5050
|
+
struct EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsTipStruct {
|
|
5051
|
+
SharedColor color{};
|
|
5052
|
+
SharedColor backgroundColor{};
|
|
5053
|
+
|
|
5054
|
+
|
|
5055
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
5056
|
+
bool operator==(const EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsTipStruct&) const = default;
|
|
5057
|
+
|
|
5058
|
+
folly::dynamic toDynamic() const {
|
|
5059
|
+
folly::dynamic result = folly::dynamic::object();
|
|
5060
|
+
result["color"] = ::facebook::react::toDynamic(color);
|
|
5061
|
+
result["backgroundColor"] = ::facebook::react::toDynamic(backgroundColor);
|
|
5062
|
+
return result;
|
|
5063
|
+
}
|
|
5064
|
+
#endif
|
|
5065
|
+
};
|
|
5066
|
+
|
|
5067
|
+
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsTipStruct &result) {
|
|
5068
|
+
auto map = (std::unordered_map<std::string, RawValue>)value;
|
|
5069
|
+
|
|
5070
|
+
auto tmp_color = map.find("color");
|
|
5071
|
+
if (tmp_color != map.end()) {
|
|
5072
|
+
fromRawValue(context, tmp_color->second, result.color);
|
|
5073
|
+
}
|
|
5074
|
+
auto tmp_backgroundColor = map.find("backgroundColor");
|
|
5075
|
+
if (tmp_backgroundColor != map.end()) {
|
|
5076
|
+
fromRawValue(context, tmp_backgroundColor->second, result.backgroundColor);
|
|
5077
|
+
}
|
|
5078
|
+
}
|
|
5079
|
+
|
|
5080
|
+
static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsTipStruct &value) {
|
|
5081
|
+
return "[Object EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsTipStruct]";
|
|
5082
|
+
}
|
|
5083
|
+
|
|
5084
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
5085
|
+
static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsTipStruct &value) {
|
|
5086
|
+
return value.toDynamic();
|
|
5087
|
+
}
|
|
5088
|
+
#endif
|
|
5089
|
+
|
|
5090
|
+
struct EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsImportantStruct {
|
|
5091
|
+
SharedColor color{};
|
|
5092
|
+
SharedColor backgroundColor{};
|
|
5093
|
+
|
|
5094
|
+
|
|
5095
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
5096
|
+
bool operator==(const EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsImportantStruct&) const = default;
|
|
5097
|
+
|
|
5098
|
+
folly::dynamic toDynamic() const {
|
|
5099
|
+
folly::dynamic result = folly::dynamic::object();
|
|
5100
|
+
result["color"] = ::facebook::react::toDynamic(color);
|
|
5101
|
+
result["backgroundColor"] = ::facebook::react::toDynamic(backgroundColor);
|
|
4331
5102
|
return result;
|
|
4332
5103
|
}
|
|
4333
5104
|
#endif
|
|
4334
5105
|
};
|
|
4335
5106
|
|
|
4336
|
-
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value,
|
|
5107
|
+
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsImportantStruct &result) {
|
|
4337
5108
|
auto map = (std::unordered_map<std::string, RawValue>)value;
|
|
4338
5109
|
|
|
4339
|
-
auto tmp_fontSize = map.find("fontSize");
|
|
4340
|
-
if (tmp_fontSize != map.end()) {
|
|
4341
|
-
fromRawValue(context, tmp_fontSize->second, result.fontSize);
|
|
4342
|
-
}
|
|
4343
|
-
auto tmp_fontFamily = map.find("fontFamily");
|
|
4344
|
-
if (tmp_fontFamily != map.end()) {
|
|
4345
|
-
fromRawValue(context, tmp_fontFamily->second, result.fontFamily);
|
|
4346
|
-
}
|
|
4347
|
-
auto tmp_fontWeight = map.find("fontWeight");
|
|
4348
|
-
if (tmp_fontWeight != map.end()) {
|
|
4349
|
-
fromRawValue(context, tmp_fontWeight->second, result.fontWeight);
|
|
4350
|
-
}
|
|
4351
5110
|
auto tmp_color = map.find("color");
|
|
4352
5111
|
if (tmp_color != map.end()) {
|
|
4353
5112
|
fromRawValue(context, tmp_color->second, result.color);
|
|
4354
5113
|
}
|
|
4355
|
-
auto
|
|
4356
|
-
if (
|
|
4357
|
-
fromRawValue(context,
|
|
4358
|
-
}
|
|
4359
|
-
auto tmp_marginBottom = map.find("marginBottom");
|
|
4360
|
-
if (tmp_marginBottom != map.end()) {
|
|
4361
|
-
fromRawValue(context, tmp_marginBottom->second, result.marginBottom);
|
|
4362
|
-
}
|
|
4363
|
-
auto tmp_lineHeight = map.find("lineHeight");
|
|
4364
|
-
if (tmp_lineHeight != map.end()) {
|
|
4365
|
-
fromRawValue(context, tmp_lineHeight->second, result.lineHeight);
|
|
4366
|
-
}
|
|
4367
|
-
auto tmp_textAlign = map.find("textAlign");
|
|
4368
|
-
if (tmp_textAlign != map.end()) {
|
|
4369
|
-
fromRawValue(context, tmp_textAlign->second, result.textAlign);
|
|
5114
|
+
auto tmp_backgroundColor = map.find("backgroundColor");
|
|
5115
|
+
if (tmp_backgroundColor != map.end()) {
|
|
5116
|
+
fromRawValue(context, tmp_backgroundColor->second, result.backgroundColor);
|
|
4370
5117
|
}
|
|
4371
5118
|
}
|
|
4372
5119
|
|
|
4373
|
-
static inline std::string toString(const
|
|
4374
|
-
return "[Object
|
|
5120
|
+
static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsImportantStruct &value) {
|
|
5121
|
+
return "[Object EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsImportantStruct]";
|
|
4375
5122
|
}
|
|
4376
5123
|
|
|
4377
5124
|
#ifdef RN_SERIALIZABLE_STATE
|
|
4378
|
-
static inline folly::dynamic toDynamic(const
|
|
5125
|
+
static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsImportantStruct &value) {
|
|
4379
5126
|
return value.toDynamic();
|
|
4380
5127
|
}
|
|
4381
5128
|
#endif
|
|
4382
5129
|
|
|
4383
|
-
struct
|
|
4384
|
-
Float fontSize{0.0};
|
|
4385
|
-
std::string fontFamily{};
|
|
4386
|
-
std::string fontWeight{};
|
|
5130
|
+
struct EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsWarningStruct {
|
|
4387
5131
|
SharedColor color{};
|
|
4388
|
-
|
|
4389
|
-
Float marginBottom{0.0};
|
|
4390
|
-
Float lineHeight{0.0};
|
|
4391
|
-
std::string textAlign{};
|
|
5132
|
+
SharedColor backgroundColor{};
|
|
4392
5133
|
|
|
4393
5134
|
|
|
4394
5135
|
#ifdef RN_SERIALIZABLE_STATE
|
|
4395
|
-
bool operator==(const
|
|
5136
|
+
bool operator==(const EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsWarningStruct&) const = default;
|
|
4396
5137
|
|
|
4397
5138
|
folly::dynamic toDynamic() const {
|
|
4398
5139
|
folly::dynamic result = folly::dynamic::object();
|
|
4399
|
-
result["fontSize"] = fontSize;
|
|
4400
|
-
result["fontFamily"] = fontFamily;
|
|
4401
|
-
result["fontWeight"] = fontWeight;
|
|
4402
5140
|
result["color"] = ::facebook::react::toDynamic(color);
|
|
4403
|
-
result["
|
|
4404
|
-
result["marginBottom"] = marginBottom;
|
|
4405
|
-
result["lineHeight"] = lineHeight;
|
|
4406
|
-
result["textAlign"] = textAlign;
|
|
5141
|
+
result["backgroundColor"] = ::facebook::react::toDynamic(backgroundColor);
|
|
4407
5142
|
return result;
|
|
4408
5143
|
}
|
|
4409
5144
|
#endif
|
|
4410
5145
|
};
|
|
4411
5146
|
|
|
4412
|
-
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value,
|
|
5147
|
+
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsWarningStruct &result) {
|
|
4413
5148
|
auto map = (std::unordered_map<std::string, RawValue>)value;
|
|
4414
5149
|
|
|
4415
|
-
auto tmp_fontSize = map.find("fontSize");
|
|
4416
|
-
if (tmp_fontSize != map.end()) {
|
|
4417
|
-
fromRawValue(context, tmp_fontSize->second, result.fontSize);
|
|
4418
|
-
}
|
|
4419
|
-
auto tmp_fontFamily = map.find("fontFamily");
|
|
4420
|
-
if (tmp_fontFamily != map.end()) {
|
|
4421
|
-
fromRawValue(context, tmp_fontFamily->second, result.fontFamily);
|
|
4422
|
-
}
|
|
4423
|
-
auto tmp_fontWeight = map.find("fontWeight");
|
|
4424
|
-
if (tmp_fontWeight != map.end()) {
|
|
4425
|
-
fromRawValue(context, tmp_fontWeight->second, result.fontWeight);
|
|
4426
|
-
}
|
|
4427
5150
|
auto tmp_color = map.find("color");
|
|
4428
5151
|
if (tmp_color != map.end()) {
|
|
4429
5152
|
fromRawValue(context, tmp_color->second, result.color);
|
|
4430
5153
|
}
|
|
4431
|
-
auto
|
|
4432
|
-
if (
|
|
4433
|
-
fromRawValue(context,
|
|
4434
|
-
}
|
|
4435
|
-
auto tmp_marginBottom = map.find("marginBottom");
|
|
4436
|
-
if (tmp_marginBottom != map.end()) {
|
|
4437
|
-
fromRawValue(context, tmp_marginBottom->second, result.marginBottom);
|
|
4438
|
-
}
|
|
4439
|
-
auto tmp_lineHeight = map.find("lineHeight");
|
|
4440
|
-
if (tmp_lineHeight != map.end()) {
|
|
4441
|
-
fromRawValue(context, tmp_lineHeight->second, result.lineHeight);
|
|
4442
|
-
}
|
|
4443
|
-
auto tmp_textAlign = map.find("textAlign");
|
|
4444
|
-
if (tmp_textAlign != map.end()) {
|
|
4445
|
-
fromRawValue(context, tmp_textAlign->second, result.textAlign);
|
|
5154
|
+
auto tmp_backgroundColor = map.find("backgroundColor");
|
|
5155
|
+
if (tmp_backgroundColor != map.end()) {
|
|
5156
|
+
fromRawValue(context, tmp_backgroundColor->second, result.backgroundColor);
|
|
4446
5157
|
}
|
|
4447
5158
|
}
|
|
4448
5159
|
|
|
4449
|
-
static inline std::string toString(const
|
|
4450
|
-
return "[Object
|
|
5160
|
+
static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsWarningStruct &value) {
|
|
5161
|
+
return "[Object EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsWarningStruct]";
|
|
4451
5162
|
}
|
|
4452
5163
|
|
|
4453
5164
|
#ifdef RN_SERIALIZABLE_STATE
|
|
4454
|
-
static inline folly::dynamic toDynamic(const
|
|
5165
|
+
static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsWarningStruct &value) {
|
|
4455
5166
|
return value.toDynamic();
|
|
4456
5167
|
}
|
|
4457
5168
|
#endif
|
|
4458
5169
|
|
|
4459
|
-
struct
|
|
4460
|
-
Float fontSize{0.0};
|
|
4461
|
-
std::string fontFamily{};
|
|
4462
|
-
std::string fontWeight{};
|
|
5170
|
+
struct EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsCautionStruct {
|
|
4463
5171
|
SharedColor color{};
|
|
4464
|
-
|
|
4465
|
-
Float marginBottom{0.0};
|
|
4466
|
-
Float lineHeight{0.0};
|
|
4467
|
-
std::string textAlign{};
|
|
5172
|
+
SharedColor backgroundColor{};
|
|
4468
5173
|
|
|
4469
5174
|
|
|
4470
5175
|
#ifdef RN_SERIALIZABLE_STATE
|
|
4471
|
-
bool operator==(const
|
|
5176
|
+
bool operator==(const EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsCautionStruct&) const = default;
|
|
4472
5177
|
|
|
4473
5178
|
folly::dynamic toDynamic() const {
|
|
4474
5179
|
folly::dynamic result = folly::dynamic::object();
|
|
4475
|
-
result["fontSize"] = fontSize;
|
|
4476
|
-
result["fontFamily"] = fontFamily;
|
|
4477
|
-
result["fontWeight"] = fontWeight;
|
|
4478
5180
|
result["color"] = ::facebook::react::toDynamic(color);
|
|
4479
|
-
result["
|
|
4480
|
-
result["marginBottom"] = marginBottom;
|
|
4481
|
-
result["lineHeight"] = lineHeight;
|
|
4482
|
-
result["textAlign"] = textAlign;
|
|
5181
|
+
result["backgroundColor"] = ::facebook::react::toDynamic(backgroundColor);
|
|
4483
5182
|
return result;
|
|
4484
5183
|
}
|
|
4485
5184
|
#endif
|
|
4486
5185
|
};
|
|
4487
5186
|
|
|
4488
|
-
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value,
|
|
5187
|
+
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsCautionStruct &result) {
|
|
4489
5188
|
auto map = (std::unordered_map<std::string, RawValue>)value;
|
|
4490
5189
|
|
|
4491
|
-
auto tmp_fontSize = map.find("fontSize");
|
|
4492
|
-
if (tmp_fontSize != map.end()) {
|
|
4493
|
-
fromRawValue(context, tmp_fontSize->second, result.fontSize);
|
|
4494
|
-
}
|
|
4495
|
-
auto tmp_fontFamily = map.find("fontFamily");
|
|
4496
|
-
if (tmp_fontFamily != map.end()) {
|
|
4497
|
-
fromRawValue(context, tmp_fontFamily->second, result.fontFamily);
|
|
4498
|
-
}
|
|
4499
|
-
auto tmp_fontWeight = map.find("fontWeight");
|
|
4500
|
-
if (tmp_fontWeight != map.end()) {
|
|
4501
|
-
fromRawValue(context, tmp_fontWeight->second, result.fontWeight);
|
|
4502
|
-
}
|
|
4503
5190
|
auto tmp_color = map.find("color");
|
|
4504
5191
|
if (tmp_color != map.end()) {
|
|
4505
5192
|
fromRawValue(context, tmp_color->second, result.color);
|
|
4506
5193
|
}
|
|
4507
|
-
auto
|
|
4508
|
-
if (
|
|
4509
|
-
fromRawValue(context,
|
|
4510
|
-
}
|
|
4511
|
-
auto tmp_marginBottom = map.find("marginBottom");
|
|
4512
|
-
if (tmp_marginBottom != map.end()) {
|
|
4513
|
-
fromRawValue(context, tmp_marginBottom->second, result.marginBottom);
|
|
4514
|
-
}
|
|
4515
|
-
auto tmp_lineHeight = map.find("lineHeight");
|
|
4516
|
-
if (tmp_lineHeight != map.end()) {
|
|
4517
|
-
fromRawValue(context, tmp_lineHeight->second, result.lineHeight);
|
|
4518
|
-
}
|
|
4519
|
-
auto tmp_textAlign = map.find("textAlign");
|
|
4520
|
-
if (tmp_textAlign != map.end()) {
|
|
4521
|
-
fromRawValue(context, tmp_textAlign->second, result.textAlign);
|
|
5194
|
+
auto tmp_backgroundColor = map.find("backgroundColor");
|
|
5195
|
+
if (tmp_backgroundColor != map.end()) {
|
|
5196
|
+
fromRawValue(context, tmp_backgroundColor->second, result.backgroundColor);
|
|
4522
5197
|
}
|
|
4523
5198
|
}
|
|
4524
5199
|
|
|
4525
|
-
static inline std::string toString(const
|
|
4526
|
-
return "[Object
|
|
5200
|
+
static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsCautionStruct &value) {
|
|
5201
|
+
return "[Object EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsCautionStruct]";
|
|
4527
5202
|
}
|
|
4528
5203
|
|
|
4529
5204
|
#ifdef RN_SERIALIZABLE_STATE
|
|
4530
|
-
static inline folly::dynamic toDynamic(const
|
|
5205
|
+
static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsCautionStruct &value) {
|
|
4531
5206
|
return value.toDynamic();
|
|
4532
5207
|
}
|
|
4533
5208
|
#endif
|
|
4534
5209
|
|
|
4535
|
-
struct
|
|
4536
|
-
|
|
4537
|
-
|
|
4538
|
-
|
|
4539
|
-
|
|
4540
|
-
|
|
4541
|
-
Float marginBottom{0.0};
|
|
4542
|
-
Float lineHeight{0.0};
|
|
4543
|
-
std::string textAlign{};
|
|
5210
|
+
struct EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsStruct {
|
|
5211
|
+
EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsNoteStruct note{};
|
|
5212
|
+
EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsTipStruct tip{};
|
|
5213
|
+
EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsImportantStruct important{};
|
|
5214
|
+
EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsWarningStruct warning{};
|
|
5215
|
+
EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsCautionStruct caution{};
|
|
4544
5216
|
|
|
4545
5217
|
|
|
4546
5218
|
#ifdef RN_SERIALIZABLE_STATE
|
|
4547
|
-
bool operator==(const
|
|
5219
|
+
bool operator==(const EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsStruct&) const = default;
|
|
4548
5220
|
|
|
4549
5221
|
folly::dynamic toDynamic() const {
|
|
4550
5222
|
folly::dynamic result = folly::dynamic::object();
|
|
4551
|
-
result["
|
|
4552
|
-
result["
|
|
4553
|
-
result["
|
|
4554
|
-
result["
|
|
4555
|
-
result["
|
|
4556
|
-
result["marginBottom"] = marginBottom;
|
|
4557
|
-
result["lineHeight"] = lineHeight;
|
|
4558
|
-
result["textAlign"] = textAlign;
|
|
5223
|
+
result["note"] = ::facebook::react::toDynamic(note);
|
|
5224
|
+
result["tip"] = ::facebook::react::toDynamic(tip);
|
|
5225
|
+
result["important"] = ::facebook::react::toDynamic(important);
|
|
5226
|
+
result["warning"] = ::facebook::react::toDynamic(warning);
|
|
5227
|
+
result["caution"] = ::facebook::react::toDynamic(caution);
|
|
4559
5228
|
return result;
|
|
4560
5229
|
}
|
|
4561
5230
|
#endif
|
|
4562
5231
|
};
|
|
4563
5232
|
|
|
4564
|
-
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value,
|
|
5233
|
+
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsStruct &result) {
|
|
4565
5234
|
auto map = (std::unordered_map<std::string, RawValue>)value;
|
|
4566
5235
|
|
|
4567
|
-
auto
|
|
4568
|
-
if (
|
|
4569
|
-
fromRawValue(context,
|
|
4570
|
-
}
|
|
4571
|
-
auto tmp_fontFamily = map.find("fontFamily");
|
|
4572
|
-
if (tmp_fontFamily != map.end()) {
|
|
4573
|
-
fromRawValue(context, tmp_fontFamily->second, result.fontFamily);
|
|
4574
|
-
}
|
|
4575
|
-
auto tmp_fontWeight = map.find("fontWeight");
|
|
4576
|
-
if (tmp_fontWeight != map.end()) {
|
|
4577
|
-
fromRawValue(context, tmp_fontWeight->second, result.fontWeight);
|
|
4578
|
-
}
|
|
4579
|
-
auto tmp_color = map.find("color");
|
|
4580
|
-
if (tmp_color != map.end()) {
|
|
4581
|
-
fromRawValue(context, tmp_color->second, result.color);
|
|
5236
|
+
auto tmp_note = map.find("note");
|
|
5237
|
+
if (tmp_note != map.end()) {
|
|
5238
|
+
fromRawValue(context, tmp_note->second, result.note);
|
|
4582
5239
|
}
|
|
4583
|
-
auto
|
|
4584
|
-
if (
|
|
4585
|
-
fromRawValue(context,
|
|
5240
|
+
auto tmp_tip = map.find("tip");
|
|
5241
|
+
if (tmp_tip != map.end()) {
|
|
5242
|
+
fromRawValue(context, tmp_tip->second, result.tip);
|
|
4586
5243
|
}
|
|
4587
|
-
auto
|
|
4588
|
-
if (
|
|
4589
|
-
fromRawValue(context,
|
|
5244
|
+
auto tmp_important = map.find("important");
|
|
5245
|
+
if (tmp_important != map.end()) {
|
|
5246
|
+
fromRawValue(context, tmp_important->second, result.important);
|
|
4590
5247
|
}
|
|
4591
|
-
auto
|
|
4592
|
-
if (
|
|
4593
|
-
fromRawValue(context,
|
|
5248
|
+
auto tmp_warning = map.find("warning");
|
|
5249
|
+
if (tmp_warning != map.end()) {
|
|
5250
|
+
fromRawValue(context, tmp_warning->second, result.warning);
|
|
4594
5251
|
}
|
|
4595
|
-
auto
|
|
4596
|
-
if (
|
|
4597
|
-
fromRawValue(context,
|
|
5252
|
+
auto tmp_caution = map.find("caution");
|
|
5253
|
+
if (tmp_caution != map.end()) {
|
|
5254
|
+
fromRawValue(context, tmp_caution->second, result.caution);
|
|
4598
5255
|
}
|
|
4599
5256
|
}
|
|
4600
5257
|
|
|
4601
|
-
static inline std::string toString(const
|
|
4602
|
-
return "[Object
|
|
5258
|
+
static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsStruct &value) {
|
|
5259
|
+
return "[Object EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsStruct]";
|
|
4603
5260
|
}
|
|
4604
5261
|
|
|
4605
5262
|
#ifdef RN_SERIALIZABLE_STATE
|
|
4606
|
-
static inline folly::dynamic toDynamic(const
|
|
5263
|
+
static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsStruct &value) {
|
|
4607
5264
|
return value.toDynamic();
|
|
4608
5265
|
}
|
|
4609
5266
|
#endif
|
|
@@ -4622,6 +5279,7 @@ struct EnrichedMarkdownTextMarkdownStyleBlockquoteStruct {
|
|
|
4622
5279
|
SharedColor backgroundColor{};
|
|
4623
5280
|
Float borderRadius{0.0};
|
|
4624
5281
|
Float padding{0.0};
|
|
5282
|
+
EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsStruct admonitions{};
|
|
4625
5283
|
|
|
4626
5284
|
|
|
4627
5285
|
#ifdef RN_SERIALIZABLE_STATE
|
|
@@ -4642,6 +5300,7 @@ struct EnrichedMarkdownTextMarkdownStyleBlockquoteStruct {
|
|
|
4642
5300
|
result["backgroundColor"] = ::facebook::react::toDynamic(backgroundColor);
|
|
4643
5301
|
result["borderRadius"] = borderRadius;
|
|
4644
5302
|
result["padding"] = padding;
|
|
5303
|
+
result["admonitions"] = ::facebook::react::toDynamic(admonitions);
|
|
4645
5304
|
return result;
|
|
4646
5305
|
}
|
|
4647
5306
|
#endif
|
|
@@ -4702,6 +5361,10 @@ static inline void fromRawValue(const PropsParserContext& context, const RawValu
|
|
|
4702
5361
|
if (tmp_padding != map.end()) {
|
|
4703
5362
|
fromRawValue(context, tmp_padding->second, result.padding);
|
|
4704
5363
|
}
|
|
5364
|
+
auto tmp_admonitions = map.find("admonitions");
|
|
5365
|
+
if (tmp_admonitions != map.end()) {
|
|
5366
|
+
fromRawValue(context, tmp_admonitions->second, result.admonitions);
|
|
5367
|
+
}
|
|
4705
5368
|
}
|
|
4706
5369
|
|
|
4707
5370
|
static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleBlockquoteStruct &value) {
|
|
@@ -5142,6 +5805,7 @@ struct EnrichedMarkdownTextMarkdownStyleLinkVariantsStruct {
|
|
|
5142
5805
|
Float paddingVertical{0.0};
|
|
5143
5806
|
SharedColor borderColor{};
|
|
5144
5807
|
Float borderWidth{0.0};
|
|
5808
|
+
std::string fontFamily{};
|
|
5145
5809
|
|
|
5146
5810
|
|
|
5147
5811
|
#ifdef RN_SERIALIZABLE_STATE
|
|
@@ -5158,6 +5822,7 @@ struct EnrichedMarkdownTextMarkdownStyleLinkVariantsStruct {
|
|
|
5158
5822
|
result["paddingVertical"] = paddingVertical;
|
|
5159
5823
|
result["borderColor"] = ::facebook::react::toDynamic(borderColor);
|
|
5160
5824
|
result["borderWidth"] = borderWidth;
|
|
5825
|
+
result["fontFamily"] = fontFamily;
|
|
5161
5826
|
return result;
|
|
5162
5827
|
}
|
|
5163
5828
|
#endif
|
|
@@ -5202,6 +5867,10 @@ static inline void fromRawValue(const PropsParserContext& context, const RawValu
|
|
|
5202
5867
|
if (tmp_borderWidth != map.end()) {
|
|
5203
5868
|
fromRawValue(context, tmp_borderWidth->second, result.borderWidth);
|
|
5204
5869
|
}
|
|
5870
|
+
auto tmp_fontFamily = map.find("fontFamily");
|
|
5871
|
+
if (tmp_fontFamily != map.end()) {
|
|
5872
|
+
fromRawValue(context, tmp_fontFamily->second, result.fontFamily);
|
|
5873
|
+
}
|
|
5205
5874
|
}
|
|
5206
5875
|
|
|
5207
5876
|
static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleLinkVariantsStruct &value) {
|
|
@@ -5512,6 +6181,64 @@ static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleIm
|
|
|
5512
6181
|
}
|
|
5513
6182
|
#endif
|
|
5514
6183
|
|
|
6184
|
+
struct EnrichedMarkdownTextMarkdownStyleVideoStruct {
|
|
6185
|
+
Float marginTop{0.0};
|
|
6186
|
+
Float marginBottom{0.0};
|
|
6187
|
+
Float borderRadius{0.0};
|
|
6188
|
+
Float aspectRatio{0.0};
|
|
6189
|
+
SharedColor backgroundColor{};
|
|
6190
|
+
|
|
6191
|
+
|
|
6192
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
6193
|
+
bool operator==(const EnrichedMarkdownTextMarkdownStyleVideoStruct&) const = default;
|
|
6194
|
+
|
|
6195
|
+
folly::dynamic toDynamic() const {
|
|
6196
|
+
folly::dynamic result = folly::dynamic::object();
|
|
6197
|
+
result["marginTop"] = marginTop;
|
|
6198
|
+
result["marginBottom"] = marginBottom;
|
|
6199
|
+
result["borderRadius"] = borderRadius;
|
|
6200
|
+
result["aspectRatio"] = aspectRatio;
|
|
6201
|
+
result["backgroundColor"] = ::facebook::react::toDynamic(backgroundColor);
|
|
6202
|
+
return result;
|
|
6203
|
+
}
|
|
6204
|
+
#endif
|
|
6205
|
+
};
|
|
6206
|
+
|
|
6207
|
+
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleVideoStruct &result) {
|
|
6208
|
+
auto map = (std::unordered_map<std::string, RawValue>)value;
|
|
6209
|
+
|
|
6210
|
+
auto tmp_marginTop = map.find("marginTop");
|
|
6211
|
+
if (tmp_marginTop != map.end()) {
|
|
6212
|
+
fromRawValue(context, tmp_marginTop->second, result.marginTop);
|
|
6213
|
+
}
|
|
6214
|
+
auto tmp_marginBottom = map.find("marginBottom");
|
|
6215
|
+
if (tmp_marginBottom != map.end()) {
|
|
6216
|
+
fromRawValue(context, tmp_marginBottom->second, result.marginBottom);
|
|
6217
|
+
}
|
|
6218
|
+
auto tmp_borderRadius = map.find("borderRadius");
|
|
6219
|
+
if (tmp_borderRadius != map.end()) {
|
|
6220
|
+
fromRawValue(context, tmp_borderRadius->second, result.borderRadius);
|
|
6221
|
+
}
|
|
6222
|
+
auto tmp_aspectRatio = map.find("aspectRatio");
|
|
6223
|
+
if (tmp_aspectRatio != map.end()) {
|
|
6224
|
+
fromRawValue(context, tmp_aspectRatio->second, result.aspectRatio);
|
|
6225
|
+
}
|
|
6226
|
+
auto tmp_backgroundColor = map.find("backgroundColor");
|
|
6227
|
+
if (tmp_backgroundColor != map.end()) {
|
|
6228
|
+
fromRawValue(context, tmp_backgroundColor->second, result.backgroundColor);
|
|
6229
|
+
}
|
|
6230
|
+
}
|
|
6231
|
+
|
|
6232
|
+
static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleVideoStruct &value) {
|
|
6233
|
+
return "[Object EnrichedMarkdownTextMarkdownStyleVideoStruct]";
|
|
6234
|
+
}
|
|
6235
|
+
|
|
6236
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
6237
|
+
static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleVideoStruct &value) {
|
|
6238
|
+
return value.toDynamic();
|
|
6239
|
+
}
|
|
6240
|
+
#endif
|
|
6241
|
+
|
|
5515
6242
|
struct EnrichedMarkdownTextMarkdownStyleInlineImageStruct {
|
|
5516
6243
|
Float size{0.0};
|
|
5517
6244
|
|
|
@@ -6203,6 +6930,7 @@ struct EnrichedMarkdownTextMarkdownStyleStruct {
|
|
|
6203
6930
|
EnrichedMarkdownTextMarkdownStyleUnderlineStruct underline{};
|
|
6204
6931
|
EnrichedMarkdownTextMarkdownStyleCodeStruct code{};
|
|
6205
6932
|
EnrichedMarkdownTextMarkdownStyleImageStruct image{};
|
|
6933
|
+
EnrichedMarkdownTextMarkdownStyleVideoStruct video{};
|
|
6206
6934
|
EnrichedMarkdownTextMarkdownStyleInlineImageStruct inlineImage{};
|
|
6207
6935
|
EnrichedMarkdownTextMarkdownStyleThematicBreakStruct thematicBreak{};
|
|
6208
6936
|
EnrichedMarkdownTextMarkdownStyleTableStruct table{};
|
|
@@ -6238,6 +6966,7 @@ struct EnrichedMarkdownTextMarkdownStyleStruct {
|
|
|
6238
6966
|
result["underline"] = ::facebook::react::toDynamic(underline);
|
|
6239
6967
|
result["code"] = ::facebook::react::toDynamic(code);
|
|
6240
6968
|
result["image"] = ::facebook::react::toDynamic(image);
|
|
6969
|
+
result["video"] = ::facebook::react::toDynamic(video);
|
|
6241
6970
|
result["inlineImage"] = ::facebook::react::toDynamic(inlineImage);
|
|
6242
6971
|
result["thematicBreak"] = ::facebook::react::toDynamic(thematicBreak);
|
|
6243
6972
|
result["table"] = ::facebook::react::toDynamic(table);
|
|
@@ -6328,6 +7057,10 @@ static inline void fromRawValue(const PropsParserContext& context, const RawValu
|
|
|
6328
7057
|
if (tmp_image != map.end()) {
|
|
6329
7058
|
fromRawValue(context, tmp_image->second, result.image);
|
|
6330
7059
|
}
|
|
7060
|
+
auto tmp_video = map.find("video");
|
|
7061
|
+
if (tmp_video != map.end()) {
|
|
7062
|
+
fromRawValue(context, tmp_video->second, result.video);
|
|
7063
|
+
}
|
|
6331
7064
|
auto tmp_inlineImage = map.find("inlineImage");
|
|
6332
7065
|
if (tmp_inlineImage != map.end()) {
|
|
6333
7066
|
fromRawValue(context, tmp_inlineImage->second, result.inlineImage);
|
|
@@ -6387,6 +7120,8 @@ struct EnrichedMarkdownTextMd4cFlagsStruct {
|
|
|
6387
7120
|
bool latexMath{false};
|
|
6388
7121
|
bool highlight{false};
|
|
6389
7122
|
bool hardSoftBreaks{false};
|
|
7123
|
+
bool preserveBlankLines{false};
|
|
7124
|
+
bool admonitions{false};
|
|
6390
7125
|
|
|
6391
7126
|
|
|
6392
7127
|
#ifdef RN_SERIALIZABLE_STATE
|
|
@@ -6400,6 +7135,8 @@ struct EnrichedMarkdownTextMd4cFlagsStruct {
|
|
|
6400
7135
|
result["latexMath"] = latexMath;
|
|
6401
7136
|
result["highlight"] = highlight;
|
|
6402
7137
|
result["hardSoftBreaks"] = hardSoftBreaks;
|
|
7138
|
+
result["preserveBlankLines"] = preserveBlankLines;
|
|
7139
|
+
result["admonitions"] = admonitions;
|
|
6403
7140
|
return result;
|
|
6404
7141
|
}
|
|
6405
7142
|
#endif
|
|
@@ -6432,6 +7169,14 @@ static inline void fromRawValue(const PropsParserContext& context, const RawValu
|
|
|
6432
7169
|
if (tmp_hardSoftBreaks != map.end()) {
|
|
6433
7170
|
fromRawValue(context, tmp_hardSoftBreaks->second, result.hardSoftBreaks);
|
|
6434
7171
|
}
|
|
7172
|
+
auto tmp_preserveBlankLines = map.find("preserveBlankLines");
|
|
7173
|
+
if (tmp_preserveBlankLines != map.end()) {
|
|
7174
|
+
fromRawValue(context, tmp_preserveBlankLines->second, result.preserveBlankLines);
|
|
7175
|
+
}
|
|
7176
|
+
auto tmp_admonitions = map.find("admonitions");
|
|
7177
|
+
if (tmp_admonitions != map.end()) {
|
|
7178
|
+
fromRawValue(context, tmp_admonitions->second, result.admonitions);
|
|
7179
|
+
}
|
|
6435
7180
|
}
|
|
6436
7181
|
|
|
6437
7182
|
static inline std::string toString(const EnrichedMarkdownTextMd4cFlagsStruct &value) {
|
|
@@ -6958,13 +7703,17 @@ class EnrichedMarkdownTextProps final : public ViewProps {
|
|
|
6958
7703
|
EnrichedMarkdownTextMarkdownStyleStruct markdownStyle{};
|
|
6959
7704
|
bool emitLinkLayout{false};
|
|
6960
7705
|
bool emitSelectionChange{false};
|
|
7706
|
+
bool enableImagePress{false};
|
|
6961
7707
|
bool enableTaskListItemToggle{true};
|
|
7708
|
+
bool enableCodeBlockPress{false};
|
|
7709
|
+
bool enableBlockContextMenu{true};
|
|
6962
7710
|
bool enableLinkPreview{true};
|
|
6963
7711
|
bool linkLongPressSelects{false};
|
|
6964
7712
|
bool selectable{false};
|
|
6965
7713
|
SharedColor selectionColor{};
|
|
6966
7714
|
SharedColor selectionHandleColor{};
|
|
6967
7715
|
EnrichedMarkdownTextMd4cFlagsStruct md4cFlags{};
|
|
7716
|
+
bool isGFM{false};
|
|
6968
7717
|
bool allowFontScaling{true};
|
|
6969
7718
|
Float maxFontSizeMultiplier{0.0};
|
|
6970
7719
|
bool allowTrailingMargin{false};
|
|
@@ -6979,6 +7728,8 @@ class EnrichedMarkdownTextProps final : public ViewProps {
|
|
|
6979
7728
|
std::string textBreakStrategy{std::string{"highQuality"}};
|
|
6980
7729
|
std::string lineBreakStrategyIOS{std::string{"none"}};
|
|
6981
7730
|
std::string writingDirection{std::string{"first-strong"}};
|
|
7731
|
+
int numberOfLines{0};
|
|
7732
|
+
std::string ellipsizeMode{std::string{"tail"}};
|
|
6982
7733
|
|
|
6983
7734
|
#ifdef RN_SERIALIZABLE_STATE
|
|
6984
7735
|
ComponentName getDiffPropsImplementationTarget() const override;
|