@expensify/react-native-live-markdown 0.1.146 → 0.1.148

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.
@@ -23,13 +23,15 @@ if (ReactAndroid_VERSION_MINOR GREATER_EQUAL 76)
23
23
  fbjni::fbjni
24
24
  ReactAndroid::jsi
25
25
  ReactAndroid::reactnative
26
- hermes-engine::libhermes)
26
+ hermes-engine::libhermes
27
+ )
27
28
  elseif (ReactAndroid_VERSION_MINOR GREATER_EQUAL 75)
28
29
  target_link_libraries(${CMAKE_PROJECT_NAME}
29
30
  fbjni::fbjni
30
31
  ReactAndroid::jsi
31
32
  ReactAndroid::reactnativejni
32
- hermes-engine::libhermes)
33
+ hermes-engine::libhermes
34
+ )
33
35
  else ()
34
36
  message(FATAL_ERROR "react-native-live-markdown requires react-native 0.75 or newer.")
35
37
  endif ()
@@ -18,84 +18,84 @@ file(GLOB LIB_CODEGEN_SRCS CONFIGURE_DEPENDS ${LIB_ANDROID_GENERATED_COMPONENTS_
18
18
  set(RN_DIR ${LIB_ANDROID_DIR}/../example/node_modules/react-native)
19
19
 
20
20
  add_library(
21
- ${LIB_TARGET_NAME}
22
- SHARED
23
- ${LIB_MODULE_SRCS}
24
- ${LIB_CUSTOM_SRCS}
25
- ${LIB_CODEGEN_SRCS}
21
+ ${LIB_TARGET_NAME}
22
+ SHARED
23
+ ${LIB_MODULE_SRCS}
24
+ ${LIB_CUSTOM_SRCS}
25
+ ${LIB_CODEGEN_SRCS}
26
26
  )
27
27
 
28
28
  target_include_directories(
29
- ${LIB_TARGET_NAME}
30
- PUBLIC
31
- .
32
- ${LIB_ANDROID_GENERATED_JNI_DIR}
33
- ${LIB_ANDROID_GENERATED_COMPONENTS_DIR}
34
- ${LIB_CPP_DIR}
29
+ ${LIB_TARGET_NAME}
30
+ PUBLIC
31
+ .
32
+ ${LIB_ANDROID_GENERATED_JNI_DIR}
33
+ ${LIB_ANDROID_GENERATED_COMPONENTS_DIR}
34
+ ${LIB_CPP_DIR}
35
35
  )
36
36
 
37
37
  find_package(ReactAndroid REQUIRED CONFIG)
38
38
 
39
39
  if (ReactAndroid_VERSION_MINOR GREATER_EQUAL 76)
40
40
  target_link_libraries(
41
- ${LIB_TARGET_NAME}
42
- ReactAndroid::reactnative
43
- ReactAndroid::jsi
44
- fbjni::fbjni
41
+ ${LIB_TARGET_NAME}
42
+ ReactAndroid::reactnative
43
+ ReactAndroid::jsi
44
+ fbjni::fbjni
45
45
  )
46
46
  elseif (ReactAndroid_VERSION_MINOR GREATER_EQUAL 75)
47
47
  target_link_libraries(
48
- ${LIB_TARGET_NAME}
49
- ReactAndroid::rrc_text
50
- ReactAndroid::rrc_textinput
51
- ReactAndroid::react_render_textlayoutmanager
52
- ReactAndroid::react_render_imagemanager
53
- ReactAndroid::reactnativejni
54
- ReactAndroid::mapbufferjni
55
- fabricjni
56
- fbjni
57
- folly_runtime
58
- glog
59
- jsi
60
- react_codegen_rncore
61
- react_debug
62
- react_nativemodule_core
63
- react_render_core
64
- react_render_debug
65
- react_render_graphics
66
- react_render_mapbuffer
67
- ReactAndroid::react_render_uimanager
68
- ReactAndroid::react_render_scheduler
69
- react_utils
70
- runtimeexecutor
71
- rrc_view
72
- turbomodulejsijni
73
- yoga
74
- android
75
- log
76
- mapbufferjni
77
- reactnativejni
78
- react_render_consistency
79
- react_performance_timeline
80
- react_render_observers_events
81
- react_featureflags
48
+ ${LIB_TARGET_NAME}
49
+ ReactAndroid::rrc_text
50
+ ReactAndroid::rrc_textinput
51
+ ReactAndroid::react_render_textlayoutmanager
52
+ ReactAndroid::react_render_imagemanager
53
+ ReactAndroid::reactnativejni
54
+ ReactAndroid::mapbufferjni
55
+ fabricjni
56
+ fbjni
57
+ folly_runtime
58
+ glog
59
+ jsi
60
+ react_codegen_rncore
61
+ react_debug
62
+ react_nativemodule_core
63
+ react_render_core
64
+ react_render_debug
65
+ react_render_graphics
66
+ react_render_mapbuffer
67
+ ReactAndroid::react_render_uimanager
68
+ ReactAndroid::react_render_scheduler
69
+ react_utils
70
+ runtimeexecutor
71
+ rrc_view
72
+ turbomodulejsijni
73
+ yoga
74
+ android
75
+ log
76
+ mapbufferjni
77
+ reactnativejni
78
+ react_render_consistency
79
+ react_performance_timeline
80
+ react_render_observers_events
81
+ react_featureflags
82
82
  )
83
83
  else ()
84
84
  message(FATAL_ERROR "react-native-live-markdown requires react-native 0.75 or newer.")
85
85
  endif ()
86
86
 
87
87
  target_compile_options(
88
- ${LIB_TARGET_NAME}
89
- PRIVATE
90
- -DLOG_TAG=\"ReactNative\"
91
- -fexceptions
92
- -frtti
93
- -Wall
94
- -std=c++20
88
+ ${LIB_TARGET_NAME}
89
+ PRIVATE
90
+ -DLOG_TAG=\"ReactNative\"
91
+ -fexceptions
92
+ -frtti
93
+ -Wall
94
+ -std=c++20
95
95
  )
96
96
 
97
97
  target_include_directories(
98
- ${CMAKE_PROJECT_NAME}
99
- PUBLIC
100
- ${CMAKE_CURRENT_SOURCE_DIR}
98
+ ${CMAKE_PROJECT_NAME}
99
+ PUBLIC
100
+ ${CMAKE_CURRENT_SOURCE_DIR}
101
101
  )
@@ -1,8 +1,5 @@
1
1
  #if defined(RCT_NEW_ARCH_ENABLED) || defined(ANDROID)
2
2
 
3
- #include <react/renderer/core/LayoutContext.h>
4
-
5
- #include "MarkdownShadowFamilyRegistry.h"
6
3
  #include "MarkdownTextInputDecoratorShadowNode.h"
7
4
 
8
5
  using namespace expensify::livemarkdown;
@@ -3,7 +3,7 @@
3
3
 
4
4
  #include "MarkdownShadowFamilyRegistry.h"
5
5
  #include "MarkdownTextInputDecoratorState.h"
6
- #include <jsi/jsi.h>
6
+ #include "OwningShadowNodeFragment.h"
7
7
  #include <react/renderer/components/RNLiveMarkdownSpec/EventEmitters.h>
8
8
  #include <react/renderer/components/RNLiveMarkdownSpec/Props.h>
9
9
  #include <react/renderer/components/view/ConcreteViewShadowNode.h>
@@ -13,20 +13,6 @@ using namespace expensify::livemarkdown;
13
13
  namespace facebook {
14
14
  namespace react {
15
15
 
16
- struct OwningShadowNodeFragment {
17
- Props::Shared props;
18
- ShadowNode::SharedListOfShared children;
19
- State::Shared state;
20
-
21
- operator ShadowNodeFragment() const {
22
- return ShadowNodeFragment {
23
- .props = props,
24
- .children = children,
25
- .state = state
26
- };
27
- }
28
- };
29
-
30
16
  JSI_EXPORT extern const char MarkdownTextInputDecoratorViewComponentName[];
31
17
 
32
18
  class JSI_EXPORT MarkdownTextInputDecoratorShadowNode final
@@ -0,0 +1,31 @@
1
+ #pragma once
2
+ #if defined(RCT_NEW_ARCH_ENABLED) || defined(ANDROID)
3
+
4
+ #include <react/renderer/core/Props.h>
5
+ #include <react/renderer/core/ShadowNode.h>
6
+ #include <react/renderer/core/ShadowNodeFragment.h>
7
+ #include <react/renderer/core/State.h>
8
+
9
+ using namespace facebook::react;
10
+
11
+ namespace expensify {
12
+ namespace livemarkdown {
13
+
14
+ struct OwningShadowNodeFragment {
15
+ Props::Shared props;
16
+ ShadowNode::SharedListOfShared children;
17
+ State::Shared state;
18
+
19
+ operator ShadowNodeFragment() const {
20
+ return ShadowNodeFragment {
21
+ .props = props,
22
+ .children = children,
23
+ .state = state
24
+ };
25
+ }
26
+ };
27
+
28
+ } // namespace livemarkdown
29
+ } // namespace expensify
30
+
31
+ #endif
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@expensify/react-native-live-markdown",
3
- "version": "0.1.146",
3
+ "version": "0.1.148",
4
4
  "description": "Drop-in replacement for React Native's TextInput component with Markdown formatting.",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",