react-markdown-table-ts 0.2.2 → 0.2.4

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/dist/index.d.ts CHANGED
@@ -1,11 +1,19 @@
1
1
  import React from 'react';
2
- import { MarkdownTableProps } from './types';
3
- import { MarkdownTableError } from './errors';
4
- /**
5
- * React component that generates and displays Markdown table syntax.
6
- * @param props - The input parameters for table generation.
7
- * @returns A <pre> element containing the Markdown table syntax or an error message.
8
- */
2
+ import 'prismjs/components/prism-markdown';
3
+ import 'prismjs/plugins/line-numbers/prism-line-numbers';
4
+ export type TableRow = Array<string>;
5
+ export interface MarkdownTableData {
6
+ header: string[];
7
+ rows: readonly string[][];
8
+ }
9
+ export interface MarkdownTableProps {
10
+ data?: string[][] | null;
11
+ hasHeader?: boolean;
12
+ columnAlignments?: readonly ('left' | 'center' | 'right' | 'none')[];
13
+ isCompact?: boolean;
14
+ hasTabs?: boolean;
15
+ className?: string;
16
+ canReplaceNewlines?: boolean;
17
+ onTableCreate?: (markdownString: string) => void;
18
+ }
9
19
  export declare const MarkdownTable: React.FC<MarkdownTableProps>;
10
- export type { MarkdownTableProps, TableRow, MarkdownTableData } from './types';
11
- export { MarkdownTableError };