@expensify/react-native-live-markdown 0.1.145 → 0.1.147
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/cpp/react/renderer/components/RNLiveMarkdownSpec/MarkdownTextInputDecoratorShadowNode.cpp +0 -3
- package/cpp/react/renderer/components/RNLiveMarkdownSpec/MarkdownTextInputDecoratorShadowNode.h +1 -15
- package/cpp/react/renderer/components/RNLiveMarkdownSpec/OwningShadowNodeFragment.h +31 -0
- package/lib/commonjs/web/MarkdownTextInput.css +4 -0
- package/lib/module/web/MarkdownTextInput.css +4 -0
- package/package.json +1 -1
- package/src/web/MarkdownTextInput.css +4 -0
package/cpp/react/renderer/components/RNLiveMarkdownSpec/MarkdownTextInputDecoratorShadowNode.h
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#include "MarkdownShadowFamilyRegistry.h"
|
|
5
5
|
#include "MarkdownTextInputDecoratorState.h"
|
|
6
|
-
#include
|
|
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
|
|
@@ -18,6 +18,10 @@
|
|
|
18
18
|
display: none;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
+
.react-native-live-markdown-input-singleline span[data-type="text"] {
|
|
22
|
+
vertical-align: middle;
|
|
23
|
+
}
|
|
24
|
+
|
|
21
25
|
.react-native-live-markdown-input-singleline:empty::before,
|
|
22
26
|
.react-native-live-markdown-input-multiline:empty::before {
|
|
23
27
|
pointer-events: none;
|
|
@@ -18,6 +18,10 @@
|
|
|
18
18
|
display: none;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
+
.react-native-live-markdown-input-singleline span[data-type="text"] {
|
|
22
|
+
vertical-align: middle;
|
|
23
|
+
}
|
|
24
|
+
|
|
21
25
|
.react-native-live-markdown-input-singleline:empty::before,
|
|
22
26
|
.react-native-live-markdown-input-multiline:empty::before {
|
|
23
27
|
pointer-events: none;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expensify/react-native-live-markdown",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.147",
|
|
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",
|
|
@@ -18,6 +18,10 @@
|
|
|
18
18
|
display: none;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
+
.react-native-live-markdown-input-singleline span[data-type="text"] {
|
|
22
|
+
vertical-align: middle;
|
|
23
|
+
}
|
|
24
|
+
|
|
21
25
|
.react-native-live-markdown-input-singleline:empty::before,
|
|
22
26
|
.react-native-live-markdown-input-multiline:empty::before {
|
|
23
27
|
pointer-events: none;
|