reachat 3.2.3 → 3.4.0

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.
@@ -1,7 +1,7 @@
1
1
  import { FC, PropsWithChildren } from 'react';
2
2
  import { Components } from 'react-markdown';
3
3
  import { Plugin } from 'unified';
4
- import { ChatTheme } from '../theme';
4
+ import { MarkdownTheme } from './types';
5
5
  interface MarkdownWrapperProps extends PropsWithChildren {
6
6
  /**
7
7
  * Remark plugins to apply to the markdown content.
@@ -15,7 +15,7 @@ interface MarkdownWrapperProps extends PropsWithChildren {
15
15
  /**
16
16
  * Theme to apply to the markdown content.
17
17
  */
18
- theme?: ChatTheme;
18
+ theme: MarkdownTheme;
19
19
  /**
20
20
  * Custom components to override default markdown rendering.
21
21
  * These will be merged with the default components.
@@ -1,6 +1,7 @@
1
1
  export * from './Markdown';
2
2
  export * from './Table';
3
3
  export * from './CodeHighlighter';
4
+ export * from './types';
4
5
  export * from './charts';
5
6
  export * from './plugins';
6
7
  export * from './themes';
@@ -0,0 +1,21 @@
1
+ export interface MarkdownTheme {
2
+ hr: string;
3
+ p: string;
4
+ a: string;
5
+ table: string;
6
+ th: string;
7
+ td: string;
8
+ code: string;
9
+ inlineCode: string;
10
+ toolbar: string;
11
+ li: string;
12
+ ul: string;
13
+ ol: string;
14
+ copy: string;
15
+ h1: string;
16
+ h2: string;
17
+ h3: string;
18
+ h4: string;
19
+ h5: string;
20
+ h6: string;
21
+ }