@expensify/react-native-live-markdown 0.1.61 → 0.1.62

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.
@@ -42,6 +42,10 @@ interface MarkdownStyle {
42
42
  color: ColorValue;
43
43
  backgroundColor: ColorValue;
44
44
  };
45
+ mentionReport: {
46
+ color: ColorValue;
47
+ backgroundColor: ColorValue;
48
+ };
45
49
  }
46
50
 
47
51
  interface NativeProps extends ViewProps {
package/src/styleUtils.ts CHANGED
@@ -52,6 +52,10 @@ function makeDefaultMarkdownStyle(): MarkdownStyle {
52
52
  color: 'blue',
53
53
  backgroundColor: 'cyan',
54
54
  },
55
+ mentionReport: {
56
+ color: 'red',
57
+ backgroundColor: 'pink',
58
+ },
55
59
  };
56
60
  }
57
61
 
@@ -4,7 +4,7 @@ import * as BrowserUtils from './browserUtils';
4
4
 
5
5
  type PartialMarkdownStyle = StyleUtilsTypes.PartialMarkdownStyle;
6
6
 
7
- type MarkdownType = 'bold' | 'italic' | 'strikethrough' | 'emoji' | 'link' | 'code' | 'pre' | 'blockquote' | 'h1' | 'syntax' | 'mention-here' | 'mention-user';
7
+ type MarkdownType = 'bold' | 'italic' | 'strikethrough' | 'emoji' | 'link' | 'code' | 'pre' | 'blockquote' | 'h1' | 'syntax' | 'mention-here' | 'mention-user' | 'mention-report';
8
8
 
9
9
  type MarkdownRange = {
10
10
  type: MarkdownType;
@@ -42,6 +42,9 @@ function addStyling(targetElement: HTMLElement, type: MarkdownType, markdownStyl
42
42
  case 'mention-user':
43
43
  Object.assign(node.style, markdownStyle.mentionUser);
44
44
  break;
45
+ case 'mention-report':
46
+ Object.assign(node.style, markdownStyle.mentionReport);
47
+ break;
45
48
  case 'link':
46
49
  Object.assign(node.style, {
47
50
  ...markdownStyle.link,