react-markdown-table-ts 0.5.9 → 0.5.11

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/utils.d.ts CHANGED
@@ -6,18 +6,8 @@ import { TableRow, InputData } from './types';
6
6
  * @returns An array of maximum widths for each column.
7
7
  */
8
8
  export declare function calculateColumnWidths(tableRows: readonly TableRow[], maxColumnCount: number): number[];
9
- /**
10
- * Formats a single row into a Markdown-formatted string.
11
- * @param columnCount - The number of columns in the table.
12
- * @param currentRow - The data of the current row.
13
- * @param columnAlignments - Alignment settings for each column.
14
- * @param columnWidths - Widths of each column.
15
- * @param useTabs - Flag to use tabs between columns.
16
- * @param canReplaceNewlines - Flag to replace newlines with <br> tags.
17
- * @param hasPadding - Flag to add padding spaces around cell content.
18
- * @returns The Markdown string for the row.
19
- */
20
- export declare function formatMarkdownRow(columnCount: number, currentRow: TableRow, columnAlignments: readonly ('left' | 'right' | 'center' | 'none')[], columnWidths?: readonly number[], useTabs?: boolean, canReplaceNewlines?: boolean, hasPadding?: boolean): string;
9
+ type Alignment = 'left' | 'right' | 'center' | 'none';
10
+ export declare function formatMarkdownRow(columnCount: number, currentRow: TableRow, columnAlignments: readonly Alignment[], columnWidths?: readonly number[], useTabs?: boolean, canReplaceNewlines?: boolean, hasPadding?: boolean): string;
21
11
  /**
22
12
  * Generates the alignment row for the Markdown table syntax.
23
13
  * @param columnCount - The number of columns in the table.
@@ -58,3 +48,4 @@ export declare function getColumnName(index: number): string;
58
48
  * @returns An array of column header names.
59
49
  */
60
50
  export declare function generateAlphabetHeaders(columnCount: number): string[];
51
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-markdown-table-ts",
3
- "version": "0.5.9",
3
+ "version": "0.5.11",
4
4
  "description": "A React component that converts structured data into Markdown table syntax and displays it within a `<pre>` tag.",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",