@expensify/react-native-live-markdown 0.1.50 → 0.1.52

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.
@@ -21,8 +21,8 @@
21
21
  }
22
22
  }];
23
23
  if (isBlockquote) {
24
- CGFloat paddingLeft = markdownUtils.backedTextInputView.textContainerInset.left;
25
- CGFloat paddingTop = markdownUtils.backedTextInputView.textContainerInset.top;
24
+ CGFloat paddingLeft = origin.x;
25
+ CGFloat paddingTop = origin.y;
26
26
  CGFloat y = paddingTop + rect.origin.y;
27
27
  CGFloat width = markdownUtils.markdownStyle.blockquoteBorderWidth;
28
28
  CGFloat height = rect.size.height;
@@ -7,7 +7,6 @@ NS_ASSUME_NONNULL_BEGIN
7
7
 
8
8
  @property (nonatomic) RCTMarkdownStyle *markdownStyle;
9
9
  @property (nonatomic) NSMutableArray<NSDictionary *> *blockquoteRangesAndLevels;
10
- @property (weak, nonatomic) UIView<RCTBackedTextInputViewProtocol> *backedTextInputView;
11
10
 
12
11
  - (NSAttributedString *)parseMarkdown:(nullable NSAttributedString *)input withAttributes:(nullable NSDictionary<NSAttributedStringKey, id>*)attributes;
13
12
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@expensify/react-native-live-markdown",
3
- "version": "0.1.50",
3
+ "version": "0.1.52",
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",
@@ -32,10 +32,10 @@
32
32
  "test": "jest",
33
33
  "typecheck": "tsc --noEmit",
34
34
  "lint": "eslint . --ext .js,.ts,.tsx",
35
- "lint:root": "eslint . --ext .js,.ts,.tsx --ignore-pattern '/example/**/*' --ignore-pattern '/WebExample/**/*' --ignore-pattern '/parser/**/*'",
36
- "lint:example": "eslint example --ext .js,.ts,.tsx",
35
+ "lint:root": "eslint . --ext .js,.ts,.tsx --ignore-pattern '/parser/**/*' --ignore-pattern '/example/**/*' --ignore-pattern '/WebExample/**/*'",
37
36
  "lint:parser": "eslint parser --ext .js,.ts,.tsx",
38
- "lint:web": "eslint WebExample --ext .js,.ts,.tsx",
37
+ "lint:example": "eslint example --ext .js,.ts,.tsx",
38
+ "lint:WebExample": "eslint WebExample --ext .js,.ts,.tsx",
39
39
  "clean": "del-cli android/build example/android/build example/android/app/build example/ios/build lib",
40
40
  "prepare": "bob build && mkdir -p lib/parser && cp parser/react-native-live-markdown-parser.js lib/parser/react-native-live-markdown-parser.js",
41
41
  "release": "release-it"