@fendent/react-native-enriched 0.5.2-fork.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/LICENSE +20 -0
- package/README.md +343 -0
- package/ReactNativeEnriched.podspec +31 -0
- package/android/build.gradle +106 -0
- package/android/generated/java/com/facebook/react/viewmanagers/EnrichedTextInputViewManagerDelegate.java +197 -0
- package/android/generated/java/com/facebook/react/viewmanagers/EnrichedTextInputViewManagerInterface.java +72 -0
- package/android/generated/jni/react/renderer/components/ReactNativeEnrichedSpec/ComponentDescriptors.cpp +22 -0
- package/android/generated/jni/react/renderer/components/ReactNativeEnrichedSpec/ComponentDescriptors.h +24 -0
- package/android/generated/jni/react/renderer/components/ReactNativeEnrichedSpec/EventEmitters.cpp +434 -0
- package/android/generated/jni/react/renderer/components/ReactNativeEnrichedSpec/EventEmitters.h +391 -0
- package/android/generated/jni/react/renderer/components/ReactNativeEnrichedSpec/Props.cpp +173 -0
- package/android/generated/jni/react/renderer/components/ReactNativeEnrichedSpec/Props.h +833 -0
- package/android/generated/jni/react/renderer/components/ReactNativeEnrichedSpec/ShadowNodes.cpp +17 -0
- package/android/generated/jni/react/renderer/components/ReactNativeEnrichedSpec/ShadowNodes.h +23 -0
- package/android/generated/jni/react/renderer/components/ReactNativeEnrichedSpec/States.cpp +16 -0
- package/android/generated/jni/react/renderer/components/ReactNativeEnrichedSpec/States.h +20 -0
- package/android/gradle.properties +5 -0
- package/android/lint.gradle +70 -0
- package/android/src/main/AndroidManifest.xml +3 -0
- package/android/src/main/AndroidManifestNew.xml +2 -0
- package/android/src/main/java/com/swmansion/enriched/ReactNativeEnrichedPackage.kt +20 -0
- package/android/src/main/java/com/swmansion/enriched/common/AsyncDrawable.kt +126 -0
- package/android/src/main/java/com/swmansion/enriched/common/CheckboxDrawable.kt +81 -0
- package/android/src/main/java/com/swmansion/enriched/common/EnrichedConstants.kt +11 -0
- package/android/src/main/java/com/swmansion/enriched/common/EnrichedStyle.kt +57 -0
- package/android/src/main/java/com/swmansion/enriched/common/ForceRedrawSpan.kt +14 -0
- package/android/src/main/java/com/swmansion/enriched/common/GumboNormalizer.kt +5 -0
- package/android/src/main/java/com/swmansion/enriched/common/MentionStyle.kt +7 -0
- package/android/src/main/java/com/swmansion/enriched/common/ResourceManager.kt +26 -0
- package/android/src/main/java/com/swmansion/enriched/common/parser/EnrichedParser.java +956 -0
- package/android/src/main/java/com/swmansion/enriched/common/parser/EnrichedSpanFactory.kt +79 -0
- package/android/src/main/java/com/swmansion/enriched/common/spans/EnrichedBlockQuoteSpan.kt +53 -0
- package/android/src/main/java/com/swmansion/enriched/common/spans/EnrichedBoldSpan.kt +12 -0
- package/android/src/main/java/com/swmansion/enriched/common/spans/EnrichedCheckboxListSpan.kt +92 -0
- package/android/src/main/java/com/swmansion/enriched/common/spans/EnrichedCodeBlockSpan.kt +81 -0
- package/android/src/main/java/com/swmansion/enriched/common/spans/EnrichedH1Span.kt +20 -0
- package/android/src/main/java/com/swmansion/enriched/common/spans/EnrichedH2Span.kt +20 -0
- package/android/src/main/java/com/swmansion/enriched/common/spans/EnrichedH3Span.kt +20 -0
- package/android/src/main/java/com/swmansion/enriched/common/spans/EnrichedH4Span.kt +21 -0
- package/android/src/main/java/com/swmansion/enriched/common/spans/EnrichedH5Span.kt +20 -0
- package/android/src/main/java/com/swmansion/enriched/common/spans/EnrichedH6Span.kt +20 -0
- package/android/src/main/java/com/swmansion/enriched/common/spans/EnrichedImageSpan.kt +184 -0
- package/android/src/main/java/com/swmansion/enriched/common/spans/EnrichedInlineCodeSpan.kt +24 -0
- package/android/src/main/java/com/swmansion/enriched/common/spans/EnrichedItalicSpan.kt +12 -0
- package/android/src/main/java/com/swmansion/enriched/common/spans/EnrichedLinkSpan.kt +29 -0
- package/android/src/main/java/com/swmansion/enriched/common/spans/EnrichedMentionSpan.kt +35 -0
- package/android/src/main/java/com/swmansion/enriched/common/spans/EnrichedOrderedListSpan.kt +79 -0
- package/android/src/main/java/com/swmansion/enriched/common/spans/EnrichedStrikeThroughSpan.kt +11 -0
- package/android/src/main/java/com/swmansion/enriched/common/spans/EnrichedUnderlineSpan.kt +11 -0
- package/android/src/main/java/com/swmansion/enriched/common/spans/EnrichedUnorderedListSpan.kt +62 -0
- package/android/src/main/java/com/swmansion/enriched/common/spans/interfaces/EnrichedBlockSpan.kt +5 -0
- package/android/src/main/java/com/swmansion/enriched/common/spans/interfaces/EnrichedHeadingSpan.kt +3 -0
- package/android/src/main/java/com/swmansion/enriched/common/spans/interfaces/EnrichedInlineSpan.kt +3 -0
- package/android/src/main/java/com/swmansion/enriched/common/spans/interfaces/EnrichedParagraphSpan.kt +5 -0
- package/android/src/main/java/com/swmansion/enriched/common/spans/interfaces/EnrichedSpan.kt +3 -0
- package/android/src/main/java/com/swmansion/enriched/common/spans/interfaces/EnrichedZeroWidthSpaceSpan.kt +4 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/EnrichedTextInputConnectionWrapper.kt +140 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/EnrichedTextInputSpannableFactory.kt +83 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/EnrichedTextInputView.kt +1120 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/EnrichedTextInputViewLayoutManager.kt +27 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/EnrichedTextInputViewManager.kt +478 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/MeasurementStore.kt +225 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/events/MentionHandler.kt +55 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/events/OnChangeHtmlEvent.kt +27 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/events/OnChangeSelectionEvent.kt +30 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/events/OnChangeStateEvent.kt +21 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/events/OnChangeTextEvent.kt +30 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/events/OnContextMenuItemPressEvent.kt +35 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/events/OnInputBlurEvent.kt +25 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/events/OnInputFocusEvent.kt +25 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/events/OnInputKeyPressEvent.kt +27 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/events/OnLinkDetectedEvent.kt +32 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/events/OnMentionDetectedEvent.kt +30 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/events/OnMentionEvent.kt +34 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/events/OnPasteImagesEvent.kt +47 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/events/OnRequestHtmlResultEvent.kt +32 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/events/OnSubmitEditingEvent.kt +29 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/spans/EnrichedInputBlockQuoteSpan.kt +14 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/spans/EnrichedInputBoldSpan.kt +14 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/spans/EnrichedInputCheckboxListSpan.kt +15 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/spans/EnrichedInputCodeBlockSpan.kt +14 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/spans/EnrichedInputH1Span.kt +14 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/spans/EnrichedInputH2Span.kt +14 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/spans/EnrichedInputH3Span.kt +14 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/spans/EnrichedInputH4Span.kt +14 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/spans/EnrichedInputH5Span.kt +14 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/spans/EnrichedInputH6Span.kt +14 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/spans/EnrichedInputImageSpan.kt +36 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/spans/EnrichedInputInlineCodeSpan.kt +14 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/spans/EnrichedInputItalicSpan.kt +14 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/spans/EnrichedInputLinkSpan.kt +16 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/spans/EnrichedInputMentionSpan.kt +18 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/spans/EnrichedInputOrderedListSpan.kt +21 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/spans/EnrichedInputStrikeThroughSpan.kt +14 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/spans/EnrichedInputUnderlineSpan.kt +14 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/spans/EnrichedInputUnorderedListSpan.kt +14 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/spans/EnrichedLineHeightSpan.kt +44 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/spans/EnrichedSpans.kt +241 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/spans/interfaces/EnrichedInputSpan.kt +10 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/styles/HtmlStyle.kt +372 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/styles/InlineStyles.kt +164 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/styles/ListStyles.kt +263 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/styles/ParagraphStyles.kt +434 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/styles/ParametrizedStyles.kt +394 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/utils/EnrichedEditableFactory.kt +17 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/utils/EnrichedSelection.kt +320 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/utils/EnrichedSpanState.kt +310 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/utils/EnrichedSpannable.kt +106 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/utils/EnrichedSpannableStringBuilder.kt +24 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/utils/RichContentReceiver.kt +127 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/utils/Utils.kt +106 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/watchers/EnrichedSpanWatcher.kt +107 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/watchers/EnrichedTextWatcher.kt +74 -0
- package/android/src/main/new_arch/CMakeLists.txt +62 -0
- package/android/src/main/new_arch/GumboNormalizerJni.cpp +14 -0
- package/android/src/main/new_arch/ReactNativeEnrichedSpec.cpp +11 -0
- package/android/src/main/new_arch/ReactNativeEnrichedSpec.h +15 -0
- package/android/src/main/new_arch/react/renderer/components/ReactNativeEnrichedSpec/EnrichedTextInputComponentDescriptor.h +35 -0
- package/android/src/main/new_arch/react/renderer/components/ReactNativeEnrichedSpec/EnrichedTextInputMeasurementManager.cpp +53 -0
- package/android/src/main/new_arch/react/renderer/components/ReactNativeEnrichedSpec/EnrichedTextInputMeasurementManager.h +25 -0
- package/android/src/main/new_arch/react/renderer/components/ReactNativeEnrichedSpec/EnrichedTextInputShadowNode.cpp +35 -0
- package/android/src/main/new_arch/react/renderer/components/ReactNativeEnrichedSpec/EnrichedTextInputShadowNode.h +53 -0
- package/android/src/main/new_arch/react/renderer/components/ReactNativeEnrichedSpec/EnrichedTextInputState.cpp +9 -0
- package/android/src/main/new_arch/react/renderer/components/ReactNativeEnrichedSpec/EnrichedTextInputState.h +24 -0
- package/android/src/main/new_arch/react/renderer/components/ReactNativeEnrichedSpec/conversions.h +27 -0
- package/android/src/main/res/drawable/broken_image.xml +10 -0
- package/cpp/CMakeLists.txt +50 -0
- package/cpp/GumboParser/GumboParser.h +34043 -0
- package/cpp/README.md +59 -0
- package/cpp/parser/GumboNormalizer.c +915 -0
- package/cpp/parser/GumboParser.cpp +16 -0
- package/cpp/parser/GumboParser.hpp +23 -0
- package/cpp/tests/GumboParserTest.cpp +457 -0
- package/ios/EnrichedTextInputView.h +53 -0
- package/ios/EnrichedTextInputView.mm +2360 -0
- package/ios/EnrichedTextInputViewManager.mm +13 -0
- package/ios/attributesManager/AttributesManager.h +17 -0
- package/ios/attributesManager/AttributesManager.mm +195 -0
- package/ios/config/InputConfig.h +104 -0
- package/ios/config/InputConfig.mm +664 -0
- package/ios/extensions/ColorExtension.h +7 -0
- package/ios/extensions/ColorExtension.mm +38 -0
- package/ios/extensions/FontExtension.h +11 -0
- package/ios/extensions/FontExtension.mm +72 -0
- package/ios/extensions/ImageExtension.h +34 -0
- package/ios/extensions/ImageExtension.mm +165 -0
- package/ios/extensions/LayoutManagerExtension.h +6 -0
- package/ios/extensions/LayoutManagerExtension.mm +443 -0
- package/ios/extensions/StringExtension.h +15 -0
- package/ios/extensions/StringExtension.mm +69 -0
- package/ios/generated/ReactNativeEnrichedSpec/ComponentDescriptors.cpp +22 -0
- package/ios/generated/ReactNativeEnrichedSpec/ComponentDescriptors.h +24 -0
- package/ios/generated/ReactNativeEnrichedSpec/EventEmitters.cpp +434 -0
- package/ios/generated/ReactNativeEnrichedSpec/EventEmitters.h +391 -0
- package/ios/generated/ReactNativeEnrichedSpec/Props.cpp +173 -0
- package/ios/generated/ReactNativeEnrichedSpec/Props.h +833 -0
- package/ios/generated/ReactNativeEnrichedSpec/RCTComponentViewHelpers.h +582 -0
- package/ios/generated/ReactNativeEnrichedSpec/ShadowNodes.cpp +17 -0
- package/ios/generated/ReactNativeEnrichedSpec/ShadowNodes.h +23 -0
- package/ios/generated/ReactNativeEnrichedSpec/States.cpp +16 -0
- package/ios/generated/ReactNativeEnrichedSpec/States.h +20 -0
- package/ios/inputParser/InputParser.h +11 -0
- package/ios/inputParser/InputParser.mm +1463 -0
- package/ios/inputTextView/InputTextView.h +6 -0
- package/ios/inputTextView/InputTextView.mm +285 -0
- package/ios/interfaces/AttributeEntry.h +9 -0
- package/ios/interfaces/AttributeEntry.mm +4 -0
- package/ios/interfaces/BaseStyleProtocol.h +17 -0
- package/ios/interfaces/ImageAttachment.h +11 -0
- package/ios/interfaces/ImageAttachment.mm +107 -0
- package/ios/interfaces/ImageData.h +10 -0
- package/ios/interfaces/ImageData.mm +4 -0
- package/ios/interfaces/LinkData.h +11 -0
- package/ios/interfaces/LinkData.mm +29 -0
- package/ios/interfaces/LinkRegexConfig.h +19 -0
- package/ios/interfaces/LinkRegexConfig.mm +37 -0
- package/ios/interfaces/MediaAttachment.h +23 -0
- package/ios/interfaces/MediaAttachment.mm +31 -0
- package/ios/interfaces/MentionParams.h +8 -0
- package/ios/interfaces/MentionParams.mm +4 -0
- package/ios/interfaces/MentionStyleProps.h +13 -0
- package/ios/interfaces/MentionStyleProps.mm +63 -0
- package/ios/interfaces/StyleBase.h +36 -0
- package/ios/interfaces/StyleBase.mm +256 -0
- package/ios/interfaces/StyleHeaders.h +102 -0
- package/ios/interfaces/StylePair.h +9 -0
- package/ios/interfaces/StylePair.mm +4 -0
- package/ios/interfaces/StyleTypeEnum.h +26 -0
- package/ios/interfaces/TextDecorationLineEnum.h +6 -0
- package/ios/interfaces/TextDecorationLineEnum.mm +4 -0
- package/ios/internals/EnrichedTextInputViewComponentDescriptor.h +19 -0
- package/ios/internals/EnrichedTextInputViewShadowNode.h +44 -0
- package/ios/internals/EnrichedTextInputViewShadowNode.mm +103 -0
- package/ios/internals/EnrichedTextInputViewState.cpp +10 -0
- package/ios/internals/EnrichedTextInputViewState.h +22 -0
- package/ios/styles/BlockQuoteStyle.mm +55 -0
- package/ios/styles/BoldStyle.mm +37 -0
- package/ios/styles/CheckboxListStyle.mm +153 -0
- package/ios/styles/CodeBlockStyle.mm +49 -0
- package/ios/styles/H1Style.mm +20 -0
- package/ios/styles/H2Style.mm +20 -0
- package/ios/styles/H3Style.mm +20 -0
- package/ios/styles/H4Style.mm +20 -0
- package/ios/styles/H5Style.mm +20 -0
- package/ios/styles/H6Style.mm +20 -0
- package/ios/styles/HeadingStyleBase.mm +65 -0
- package/ios/styles/ImageStyle.mm +146 -0
- package/ios/styles/InlineCodeStyle.mm +65 -0
- package/ios/styles/ItalicStyle.mm +37 -0
- package/ios/styles/LinkStyle.mm +532 -0
- package/ios/styles/MentionStyle.mm +538 -0
- package/ios/styles/OrderedListStyle.mm +86 -0
- package/ios/styles/StrikethroughStyle.mm +25 -0
- package/ios/styles/UnderlineStyle.mm +24 -0
- package/ios/styles/UnorderedListStyle.mm +86 -0
- package/ios/utils/CheckboxHitTestUtils.h +10 -0
- package/ios/utils/CheckboxHitTestUtils.mm +122 -0
- package/ios/utils/DotReplacementUtils.h +10 -0
- package/ios/utils/DotReplacementUtils.mm +68 -0
- package/ios/utils/KeyboardUtils.h +7 -0
- package/ios/utils/KeyboardUtils.mm +31 -0
- package/ios/utils/OccurenceUtils.h +44 -0
- package/ios/utils/OccurenceUtils.mm +179 -0
- package/ios/utils/ParagraphAttributesUtils.h +15 -0
- package/ios/utils/ParagraphAttributesUtils.mm +257 -0
- package/ios/utils/RangeUtils.h +12 -0
- package/ios/utils/RangeUtils.mm +183 -0
- package/ios/utils/TextBlockTapGestureRecognizer.h +17 -0
- package/ios/utils/TextBlockTapGestureRecognizer.mm +56 -0
- package/ios/utils/TextInsertionUtils.h +17 -0
- package/ios/utils/TextInsertionUtils.mm +64 -0
- package/ios/utils/WordsUtils.h +7 -0
- package/ios/utils/WordsUtils.mm +98 -0
- package/ios/utils/ZeroWidthSpaceUtils.h +9 -0
- package/ios/utils/ZeroWidthSpaceUtils.mm +270 -0
- package/lib/module/index.js +4 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/native/EnrichedTextInput.js +304 -0
- package/lib/module/native/EnrichedTextInput.js.map +1 -0
- package/lib/module/package.json +1 -0
- package/lib/module/spec/EnrichedTextInputNativeComponent.ts +517 -0
- package/lib/module/types.js +4 -0
- package/lib/module/types.js.map +1 -0
- package/lib/module/utils/EnrichedTextInputDefaultProps.js +12 -0
- package/lib/module/utils/EnrichedTextInputDefaultProps.js.map +1 -0
- package/lib/module/utils/normalizeHtmlStyle.js +155 -0
- package/lib/module/utils/normalizeHtmlStyle.js.map +1 -0
- package/lib/module/utils/nullthrows.js +9 -0
- package/lib/module/utils/nullthrows.js.map +1 -0
- package/lib/module/utils/regexParser.js +46 -0
- package/lib/module/utils/regexParser.js.map +1 -0
- package/lib/typescript/package.json +1 -0
- package/lib/typescript/src/index.d.ts +3 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/lib/typescript/src/native/EnrichedTextInput.d.ts +3 -0
- package/lib/typescript/src/native/EnrichedTextInput.d.ts.map +1 -0
- package/lib/typescript/src/spec/EnrichedTextInputNativeComponent.d.ts +397 -0
- package/lib/typescript/src/spec/EnrichedTextInputNativeComponent.d.ts.map +1 -0
- package/lib/typescript/src/types.d.ts +447 -0
- package/lib/typescript/src/types.d.ts.map +1 -0
- package/lib/typescript/src/utils/EnrichedTextInputDefaultProps.d.ts +10 -0
- package/lib/typescript/src/utils/EnrichedTextInputDefaultProps.d.ts.map +1 -0
- package/lib/typescript/src/utils/normalizeHtmlStyle.d.ts +4 -0
- package/lib/typescript/src/utils/normalizeHtmlStyle.d.ts.map +1 -0
- package/lib/typescript/src/utils/nullthrows.d.ts +2 -0
- package/lib/typescript/src/utils/nullthrows.d.ts.map +1 -0
- package/lib/typescript/src/utils/regexParser.d.ts +3 -0
- package/lib/typescript/src/utils/regexParser.d.ts.map +1 -0
- package/package.json +226 -0
- package/react-native.config.js +13 -0
- package/src/index.tsx +20 -0
- package/src/native/EnrichedTextInput.tsx +370 -0
- package/src/spec/EnrichedTextInputNativeComponent.ts +517 -0
- package/src/types.ts +499 -0
- package/src/utils/EnrichedTextInputDefaultProps.ts +9 -0
- package/src/utils/normalizeHtmlStyle.ts +199 -0
- package/src/utils/nullthrows.ts +7 -0
- package/src/utils/regexParser.ts +56 -0
|
@@ -0,0 +1,391 @@
|
|
|
1
|
+
|
|
2
|
+
/**
|
|
3
|
+
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
|
|
4
|
+
*
|
|
5
|
+
* Do not edit this file as changes may cause incorrect behavior and will be lost
|
|
6
|
+
* once the code is regenerated.
|
|
7
|
+
*
|
|
8
|
+
* @generated by codegen project: GenerateEventEmitterH.js
|
|
9
|
+
*/
|
|
10
|
+
#pragma once
|
|
11
|
+
|
|
12
|
+
#include <react/renderer/components/view/ViewEventEmitter.h>
|
|
13
|
+
#include <folly/dynamic.h>
|
|
14
|
+
|
|
15
|
+
namespace facebook::react {
|
|
16
|
+
class EnrichedTextInputViewEventEmitter : public ViewEventEmitter {
|
|
17
|
+
public:
|
|
18
|
+
using ViewEventEmitter::ViewEventEmitter;
|
|
19
|
+
|
|
20
|
+
struct OnInputFocus {
|
|
21
|
+
int target;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
struct OnInputBlur {
|
|
25
|
+
int target;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
struct OnChangeText {
|
|
29
|
+
std::string value;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
struct OnChangeHtml {
|
|
33
|
+
std::string value;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
struct OnChangeStateBold {
|
|
37
|
+
bool isActive;
|
|
38
|
+
bool isConflicting;
|
|
39
|
+
bool isBlocking;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
struct OnChangeStateItalic {
|
|
43
|
+
bool isActive;
|
|
44
|
+
bool isConflicting;
|
|
45
|
+
bool isBlocking;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
struct OnChangeStateUnderline {
|
|
49
|
+
bool isActive;
|
|
50
|
+
bool isConflicting;
|
|
51
|
+
bool isBlocking;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
struct OnChangeStateStrikeThrough {
|
|
55
|
+
bool isActive;
|
|
56
|
+
bool isConflicting;
|
|
57
|
+
bool isBlocking;
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
struct OnChangeStateInlineCode {
|
|
61
|
+
bool isActive;
|
|
62
|
+
bool isConflicting;
|
|
63
|
+
bool isBlocking;
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
struct OnChangeStateH1 {
|
|
67
|
+
bool isActive;
|
|
68
|
+
bool isConflicting;
|
|
69
|
+
bool isBlocking;
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
struct OnChangeStateH2 {
|
|
73
|
+
bool isActive;
|
|
74
|
+
bool isConflicting;
|
|
75
|
+
bool isBlocking;
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
struct OnChangeStateH3 {
|
|
79
|
+
bool isActive;
|
|
80
|
+
bool isConflicting;
|
|
81
|
+
bool isBlocking;
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
struct OnChangeStateH4 {
|
|
85
|
+
bool isActive;
|
|
86
|
+
bool isConflicting;
|
|
87
|
+
bool isBlocking;
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
struct OnChangeStateH5 {
|
|
91
|
+
bool isActive;
|
|
92
|
+
bool isConflicting;
|
|
93
|
+
bool isBlocking;
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
struct OnChangeStateH6 {
|
|
97
|
+
bool isActive;
|
|
98
|
+
bool isConflicting;
|
|
99
|
+
bool isBlocking;
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
struct OnChangeStateCodeBlock {
|
|
103
|
+
bool isActive;
|
|
104
|
+
bool isConflicting;
|
|
105
|
+
bool isBlocking;
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
struct OnChangeStateBlockQuote {
|
|
109
|
+
bool isActive;
|
|
110
|
+
bool isConflicting;
|
|
111
|
+
bool isBlocking;
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
struct OnChangeStateOrderedList {
|
|
115
|
+
bool isActive;
|
|
116
|
+
bool isConflicting;
|
|
117
|
+
bool isBlocking;
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
struct OnChangeStateUnorderedList {
|
|
121
|
+
bool isActive;
|
|
122
|
+
bool isConflicting;
|
|
123
|
+
bool isBlocking;
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
struct OnChangeStateLink {
|
|
127
|
+
bool isActive;
|
|
128
|
+
bool isConflicting;
|
|
129
|
+
bool isBlocking;
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
struct OnChangeStateImage {
|
|
133
|
+
bool isActive;
|
|
134
|
+
bool isConflicting;
|
|
135
|
+
bool isBlocking;
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
struct OnChangeStateMention {
|
|
139
|
+
bool isActive;
|
|
140
|
+
bool isConflicting;
|
|
141
|
+
bool isBlocking;
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
struct OnChangeStateCheckboxList {
|
|
145
|
+
bool isActive;
|
|
146
|
+
bool isConflicting;
|
|
147
|
+
bool isBlocking;
|
|
148
|
+
};
|
|
149
|
+
|
|
150
|
+
struct OnChangeState {
|
|
151
|
+
OnChangeStateBold bold;
|
|
152
|
+
OnChangeStateItalic italic;
|
|
153
|
+
OnChangeStateUnderline underline;
|
|
154
|
+
OnChangeStateStrikeThrough strikeThrough;
|
|
155
|
+
OnChangeStateInlineCode inlineCode;
|
|
156
|
+
OnChangeStateH1 h1;
|
|
157
|
+
OnChangeStateH2 h2;
|
|
158
|
+
OnChangeStateH3 h3;
|
|
159
|
+
OnChangeStateH4 h4;
|
|
160
|
+
OnChangeStateH5 h5;
|
|
161
|
+
OnChangeStateH6 h6;
|
|
162
|
+
OnChangeStateCodeBlock codeBlock;
|
|
163
|
+
OnChangeStateBlockQuote blockQuote;
|
|
164
|
+
OnChangeStateOrderedList orderedList;
|
|
165
|
+
OnChangeStateUnorderedList unorderedList;
|
|
166
|
+
OnChangeStateLink link;
|
|
167
|
+
OnChangeStateImage image;
|
|
168
|
+
OnChangeStateMention mention;
|
|
169
|
+
OnChangeStateCheckboxList checkboxList;
|
|
170
|
+
};
|
|
171
|
+
|
|
172
|
+
struct OnLinkDetected {
|
|
173
|
+
std::string text;
|
|
174
|
+
std::string url;
|
|
175
|
+
int start;
|
|
176
|
+
int end;
|
|
177
|
+
};
|
|
178
|
+
|
|
179
|
+
struct OnMentionDetected {
|
|
180
|
+
std::string text;
|
|
181
|
+
std::string indicator;
|
|
182
|
+
std::string payload;
|
|
183
|
+
};
|
|
184
|
+
|
|
185
|
+
struct OnMention {
|
|
186
|
+
std::string indicator;
|
|
187
|
+
folly::dynamic text;
|
|
188
|
+
};
|
|
189
|
+
|
|
190
|
+
struct OnChangeSelection {
|
|
191
|
+
int start;
|
|
192
|
+
int end;
|
|
193
|
+
std::string text;
|
|
194
|
+
};
|
|
195
|
+
|
|
196
|
+
struct OnRequestHtmlResult {
|
|
197
|
+
int requestId;
|
|
198
|
+
folly::dynamic html;
|
|
199
|
+
};
|
|
200
|
+
|
|
201
|
+
struct OnInputKeyPress {
|
|
202
|
+
std::string key;
|
|
203
|
+
};
|
|
204
|
+
|
|
205
|
+
struct OnPasteImagesImages {
|
|
206
|
+
std::string uri;
|
|
207
|
+
std::string type;
|
|
208
|
+
Float width;
|
|
209
|
+
Float height;
|
|
210
|
+
};
|
|
211
|
+
|
|
212
|
+
struct OnPasteImages {
|
|
213
|
+
std::vector<OnPasteImagesImages> images;
|
|
214
|
+
};
|
|
215
|
+
|
|
216
|
+
struct OnContextMenuItemPressStyleStateBold {
|
|
217
|
+
bool isActive;
|
|
218
|
+
bool isConflicting;
|
|
219
|
+
bool isBlocking;
|
|
220
|
+
};
|
|
221
|
+
|
|
222
|
+
struct OnContextMenuItemPressStyleStateItalic {
|
|
223
|
+
bool isActive;
|
|
224
|
+
bool isConflicting;
|
|
225
|
+
bool isBlocking;
|
|
226
|
+
};
|
|
227
|
+
|
|
228
|
+
struct OnContextMenuItemPressStyleStateUnderline {
|
|
229
|
+
bool isActive;
|
|
230
|
+
bool isConflicting;
|
|
231
|
+
bool isBlocking;
|
|
232
|
+
};
|
|
233
|
+
|
|
234
|
+
struct OnContextMenuItemPressStyleStateStrikeThrough {
|
|
235
|
+
bool isActive;
|
|
236
|
+
bool isConflicting;
|
|
237
|
+
bool isBlocking;
|
|
238
|
+
};
|
|
239
|
+
|
|
240
|
+
struct OnContextMenuItemPressStyleStateInlineCode {
|
|
241
|
+
bool isActive;
|
|
242
|
+
bool isConflicting;
|
|
243
|
+
bool isBlocking;
|
|
244
|
+
};
|
|
245
|
+
|
|
246
|
+
struct OnContextMenuItemPressStyleStateH1 {
|
|
247
|
+
bool isActive;
|
|
248
|
+
bool isConflicting;
|
|
249
|
+
bool isBlocking;
|
|
250
|
+
};
|
|
251
|
+
|
|
252
|
+
struct OnContextMenuItemPressStyleStateH2 {
|
|
253
|
+
bool isActive;
|
|
254
|
+
bool isConflicting;
|
|
255
|
+
bool isBlocking;
|
|
256
|
+
};
|
|
257
|
+
|
|
258
|
+
struct OnContextMenuItemPressStyleStateH3 {
|
|
259
|
+
bool isActive;
|
|
260
|
+
bool isConflicting;
|
|
261
|
+
bool isBlocking;
|
|
262
|
+
};
|
|
263
|
+
|
|
264
|
+
struct OnContextMenuItemPressStyleStateH4 {
|
|
265
|
+
bool isActive;
|
|
266
|
+
bool isConflicting;
|
|
267
|
+
bool isBlocking;
|
|
268
|
+
};
|
|
269
|
+
|
|
270
|
+
struct OnContextMenuItemPressStyleStateH5 {
|
|
271
|
+
bool isActive;
|
|
272
|
+
bool isConflicting;
|
|
273
|
+
bool isBlocking;
|
|
274
|
+
};
|
|
275
|
+
|
|
276
|
+
struct OnContextMenuItemPressStyleStateH6 {
|
|
277
|
+
bool isActive;
|
|
278
|
+
bool isConflicting;
|
|
279
|
+
bool isBlocking;
|
|
280
|
+
};
|
|
281
|
+
|
|
282
|
+
struct OnContextMenuItemPressStyleStateCodeBlock {
|
|
283
|
+
bool isActive;
|
|
284
|
+
bool isConflicting;
|
|
285
|
+
bool isBlocking;
|
|
286
|
+
};
|
|
287
|
+
|
|
288
|
+
struct OnContextMenuItemPressStyleStateBlockQuote {
|
|
289
|
+
bool isActive;
|
|
290
|
+
bool isConflicting;
|
|
291
|
+
bool isBlocking;
|
|
292
|
+
};
|
|
293
|
+
|
|
294
|
+
struct OnContextMenuItemPressStyleStateOrderedList {
|
|
295
|
+
bool isActive;
|
|
296
|
+
bool isConflicting;
|
|
297
|
+
bool isBlocking;
|
|
298
|
+
};
|
|
299
|
+
|
|
300
|
+
struct OnContextMenuItemPressStyleStateUnorderedList {
|
|
301
|
+
bool isActive;
|
|
302
|
+
bool isConflicting;
|
|
303
|
+
bool isBlocking;
|
|
304
|
+
};
|
|
305
|
+
|
|
306
|
+
struct OnContextMenuItemPressStyleStateLink {
|
|
307
|
+
bool isActive;
|
|
308
|
+
bool isConflicting;
|
|
309
|
+
bool isBlocking;
|
|
310
|
+
};
|
|
311
|
+
|
|
312
|
+
struct OnContextMenuItemPressStyleStateImage {
|
|
313
|
+
bool isActive;
|
|
314
|
+
bool isConflicting;
|
|
315
|
+
bool isBlocking;
|
|
316
|
+
};
|
|
317
|
+
|
|
318
|
+
struct OnContextMenuItemPressStyleStateMention {
|
|
319
|
+
bool isActive;
|
|
320
|
+
bool isConflicting;
|
|
321
|
+
bool isBlocking;
|
|
322
|
+
};
|
|
323
|
+
|
|
324
|
+
struct OnContextMenuItemPressStyleStateCheckboxList {
|
|
325
|
+
bool isActive;
|
|
326
|
+
bool isConflicting;
|
|
327
|
+
bool isBlocking;
|
|
328
|
+
};
|
|
329
|
+
|
|
330
|
+
struct OnContextMenuItemPressStyleState {
|
|
331
|
+
OnContextMenuItemPressStyleStateBold bold;
|
|
332
|
+
OnContextMenuItemPressStyleStateItalic italic;
|
|
333
|
+
OnContextMenuItemPressStyleStateUnderline underline;
|
|
334
|
+
OnContextMenuItemPressStyleStateStrikeThrough strikeThrough;
|
|
335
|
+
OnContextMenuItemPressStyleStateInlineCode inlineCode;
|
|
336
|
+
OnContextMenuItemPressStyleStateH1 h1;
|
|
337
|
+
OnContextMenuItemPressStyleStateH2 h2;
|
|
338
|
+
OnContextMenuItemPressStyleStateH3 h3;
|
|
339
|
+
OnContextMenuItemPressStyleStateH4 h4;
|
|
340
|
+
OnContextMenuItemPressStyleStateH5 h5;
|
|
341
|
+
OnContextMenuItemPressStyleStateH6 h6;
|
|
342
|
+
OnContextMenuItemPressStyleStateCodeBlock codeBlock;
|
|
343
|
+
OnContextMenuItemPressStyleStateBlockQuote blockQuote;
|
|
344
|
+
OnContextMenuItemPressStyleStateOrderedList orderedList;
|
|
345
|
+
OnContextMenuItemPressStyleStateUnorderedList unorderedList;
|
|
346
|
+
OnContextMenuItemPressStyleStateLink link;
|
|
347
|
+
OnContextMenuItemPressStyleStateImage image;
|
|
348
|
+
OnContextMenuItemPressStyleStateMention mention;
|
|
349
|
+
OnContextMenuItemPressStyleStateCheckboxList checkboxList;
|
|
350
|
+
};
|
|
351
|
+
|
|
352
|
+
struct OnContextMenuItemPress {
|
|
353
|
+
std::string itemText;
|
|
354
|
+
std::string selectedText;
|
|
355
|
+
int selectionStart;
|
|
356
|
+
int selectionEnd;
|
|
357
|
+
OnContextMenuItemPressStyleState styleState;
|
|
358
|
+
};
|
|
359
|
+
|
|
360
|
+
struct OnSubmitEditing {
|
|
361
|
+
std::string text;
|
|
362
|
+
};
|
|
363
|
+
void onInputFocus(OnInputFocus value) const;
|
|
364
|
+
|
|
365
|
+
void onInputBlur(OnInputBlur value) const;
|
|
366
|
+
|
|
367
|
+
void onChangeText(OnChangeText value) const;
|
|
368
|
+
|
|
369
|
+
void onChangeHtml(OnChangeHtml value) const;
|
|
370
|
+
|
|
371
|
+
void onChangeState(OnChangeState value) const;
|
|
372
|
+
|
|
373
|
+
void onLinkDetected(OnLinkDetected value) const;
|
|
374
|
+
|
|
375
|
+
void onMentionDetected(OnMentionDetected value) const;
|
|
376
|
+
|
|
377
|
+
void onMention(OnMention value) const;
|
|
378
|
+
|
|
379
|
+
void onChangeSelection(OnChangeSelection value) const;
|
|
380
|
+
|
|
381
|
+
void onRequestHtmlResult(OnRequestHtmlResult value) const;
|
|
382
|
+
|
|
383
|
+
void onInputKeyPress(OnInputKeyPress value) const;
|
|
384
|
+
|
|
385
|
+
void onPasteImages(OnPasteImages value) const;
|
|
386
|
+
|
|
387
|
+
void onContextMenuItemPress(OnContextMenuItemPress value) const;
|
|
388
|
+
|
|
389
|
+
void onSubmitEditing(OnSubmitEditing value) const;
|
|
390
|
+
};
|
|
391
|
+
} // namespace facebook::react
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
|
|
2
|
+
/**
|
|
3
|
+
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
|
|
4
|
+
*
|
|
5
|
+
* Do not edit this file as changes may cause incorrect behavior and will be lost
|
|
6
|
+
* once the code is regenerated.
|
|
7
|
+
*
|
|
8
|
+
* @generated by codegen project: GeneratePropsCpp.js
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
#include "Props.h"
|
|
12
|
+
#include <folly/dynamic.h>
|
|
13
|
+
#include <react/renderer/core/PropsParserContext.h>
|
|
14
|
+
#include <react/renderer/core/propsConversions.h>
|
|
15
|
+
|
|
16
|
+
namespace facebook::react {
|
|
17
|
+
|
|
18
|
+
EnrichedTextInputViewProps::EnrichedTextInputViewProps(
|
|
19
|
+
const PropsParserContext &context,
|
|
20
|
+
const EnrichedTextInputViewProps &sourceProps,
|
|
21
|
+
const RawProps &rawProps): ViewProps(context, sourceProps, rawProps),
|
|
22
|
+
|
|
23
|
+
autoFocus(convertRawProp(context, rawProps, "autoFocus", sourceProps.autoFocus, {false})),
|
|
24
|
+
editable(convertRawProp(context, rawProps, "editable", sourceProps.editable, {false})),
|
|
25
|
+
defaultValue(convertRawProp(context, rawProps, "defaultValue", sourceProps.defaultValue, {})),
|
|
26
|
+
placeholder(convertRawProp(context, rawProps, "placeholder", sourceProps.placeholder, {})),
|
|
27
|
+
placeholderTextColor(convertRawProp(context, rawProps, "placeholderTextColor", sourceProps.placeholderTextColor, {})),
|
|
28
|
+
mentionIndicators(convertRawProp(context, rawProps, "mentionIndicators", sourceProps.mentionIndicators, {})),
|
|
29
|
+
cursorColor(convertRawProp(context, rawProps, "cursorColor", sourceProps.cursorColor, {})),
|
|
30
|
+
selectionColor(convertRawProp(context, rawProps, "selectionColor", sourceProps.selectionColor, {})),
|
|
31
|
+
autoCapitalize(convertRawProp(context, rawProps, "autoCapitalize", sourceProps.autoCapitalize, {})),
|
|
32
|
+
htmlStyle(convertRawProp(context, rawProps, "htmlStyle", sourceProps.htmlStyle, {})),
|
|
33
|
+
scrollEnabled(convertRawProp(context, rawProps, "scrollEnabled", sourceProps.scrollEnabled, {false})),
|
|
34
|
+
linkRegex(convertRawProp(context, rawProps, "linkRegex", sourceProps.linkRegex, {})),
|
|
35
|
+
contextMenuItems(convertRawProp(context, rawProps, "contextMenuItems", sourceProps.contextMenuItems, {})),
|
|
36
|
+
returnKeyType(convertRawProp(context, rawProps, "returnKeyType", sourceProps.returnKeyType, {})),
|
|
37
|
+
returnKeyLabel(convertRawProp(context, rawProps, "returnKeyLabel", sourceProps.returnKeyLabel, {})),
|
|
38
|
+
submitBehavior(convertRawProp(context, rawProps, "submitBehavior", sourceProps.submitBehavior, {})),
|
|
39
|
+
color(convertRawProp(context, rawProps, "color", sourceProps.color, {})),
|
|
40
|
+
fontSize(convertRawProp(context, rawProps, "fontSize", sourceProps.fontSize, {0.0})),
|
|
41
|
+
lineHeight(convertRawProp(context, rawProps, "lineHeight", sourceProps.lineHeight, {0.0})),
|
|
42
|
+
fontFamily(convertRawProp(context, rawProps, "fontFamily", sourceProps.fontFamily, {})),
|
|
43
|
+
fontWeight(convertRawProp(context, rawProps, "fontWeight", sourceProps.fontWeight, {})),
|
|
44
|
+
fontStyle(convertRawProp(context, rawProps, "fontStyle", sourceProps.fontStyle, {})),
|
|
45
|
+
isOnChangeHtmlSet(convertRawProp(context, rawProps, "isOnChangeHtmlSet", sourceProps.isOnChangeHtmlSet, {false})),
|
|
46
|
+
isOnChangeTextSet(convertRawProp(context, rawProps, "isOnChangeTextSet", sourceProps.isOnChangeTextSet, {false})),
|
|
47
|
+
androidExperimentalSynchronousEvents(convertRawProp(context, rawProps, "androidExperimentalSynchronousEvents", sourceProps.androidExperimentalSynchronousEvents, {false})),
|
|
48
|
+
useHtmlNormalizer(convertRawProp(context, rawProps, "useHtmlNormalizer", sourceProps.useHtmlNormalizer, {false})) {}
|
|
49
|
+
|
|
50
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
51
|
+
ComponentName EnrichedTextInputViewProps::getDiffPropsImplementationTarget() const {
|
|
52
|
+
return "EnrichedTextInputView";
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
folly::dynamic EnrichedTextInputViewProps::getDiffProps(
|
|
56
|
+
const Props* prevProps) const {
|
|
57
|
+
static const auto defaultProps = EnrichedTextInputViewProps();
|
|
58
|
+
const EnrichedTextInputViewProps* oldProps = prevProps == nullptr
|
|
59
|
+
? &defaultProps
|
|
60
|
+
: static_cast<const EnrichedTextInputViewProps*>(prevProps);
|
|
61
|
+
if (this == oldProps) {
|
|
62
|
+
return folly::dynamic::object();
|
|
63
|
+
}
|
|
64
|
+
folly::dynamic result = HostPlatformViewProps::getDiffProps(prevProps);
|
|
65
|
+
|
|
66
|
+
if (autoFocus != oldProps->autoFocus) {
|
|
67
|
+
result["autoFocus"] = autoFocus;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
if (editable != oldProps->editable) {
|
|
71
|
+
result["editable"] = editable;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
if (defaultValue != oldProps->defaultValue) {
|
|
75
|
+
result["defaultValue"] = defaultValue;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
if (placeholder != oldProps->placeholder) {
|
|
79
|
+
result["placeholder"] = placeholder;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
if (placeholderTextColor != oldProps->placeholderTextColor) {
|
|
83
|
+
result["placeholderTextColor"] = *placeholderTextColor;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
if (mentionIndicators != oldProps->mentionIndicators) {
|
|
87
|
+
result["mentionIndicators"] = toDynamic(mentionIndicators);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
if (cursorColor != oldProps->cursorColor) {
|
|
91
|
+
result["cursorColor"] = *cursorColor;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
if (selectionColor != oldProps->selectionColor) {
|
|
95
|
+
result["selectionColor"] = *selectionColor;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
if (autoCapitalize != oldProps->autoCapitalize) {
|
|
99
|
+
result["autoCapitalize"] = autoCapitalize;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
if (htmlStyle != oldProps->htmlStyle) {
|
|
103
|
+
result["htmlStyle"] = toDynamic(htmlStyle);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
if (scrollEnabled != oldProps->scrollEnabled) {
|
|
107
|
+
result["scrollEnabled"] = scrollEnabled;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
if (linkRegex != oldProps->linkRegex) {
|
|
111
|
+
result["linkRegex"] = toDynamic(linkRegex);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
if (contextMenuItems != oldProps->contextMenuItems) {
|
|
115
|
+
result["contextMenuItems"] = toDynamic(contextMenuItems);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
if (returnKeyType != oldProps->returnKeyType) {
|
|
119
|
+
result["returnKeyType"] = returnKeyType;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
if (returnKeyLabel != oldProps->returnKeyLabel) {
|
|
123
|
+
result["returnKeyLabel"] = returnKeyLabel;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
if (submitBehavior != oldProps->submitBehavior) {
|
|
127
|
+
result["submitBehavior"] = submitBehavior;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
if (color != oldProps->color) {
|
|
131
|
+
result["color"] = *color;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
if ((fontSize != oldProps->fontSize) && !(std::isnan(fontSize) && std::isnan(oldProps->fontSize))) {
|
|
135
|
+
result["fontSize"] = fontSize;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
if ((lineHeight != oldProps->lineHeight) && !(std::isnan(lineHeight) && std::isnan(oldProps->lineHeight))) {
|
|
139
|
+
result["lineHeight"] = lineHeight;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
if (fontFamily != oldProps->fontFamily) {
|
|
143
|
+
result["fontFamily"] = fontFamily;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
if (fontWeight != oldProps->fontWeight) {
|
|
147
|
+
result["fontWeight"] = fontWeight;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
if (fontStyle != oldProps->fontStyle) {
|
|
151
|
+
result["fontStyle"] = fontStyle;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
if (isOnChangeHtmlSet != oldProps->isOnChangeHtmlSet) {
|
|
155
|
+
result["isOnChangeHtmlSet"] = isOnChangeHtmlSet;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
if (isOnChangeTextSet != oldProps->isOnChangeTextSet) {
|
|
159
|
+
result["isOnChangeTextSet"] = isOnChangeTextSet;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
if (androidExperimentalSynchronousEvents != oldProps->androidExperimentalSynchronousEvents) {
|
|
163
|
+
result["androidExperimentalSynchronousEvents"] = androidExperimentalSynchronousEvents;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
if (useHtmlNormalizer != oldProps->useHtmlNormalizer) {
|
|
167
|
+
result["useHtmlNormalizer"] = useHtmlNormalizer;
|
|
168
|
+
}
|
|
169
|
+
return result;
|
|
170
|
+
}
|
|
171
|
+
#endif
|
|
172
|
+
|
|
173
|
+
} // namespace facebook::react
|