react-markdown-table-ts 1.1.6 → 1.1.8
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/README.md +11 -2
- package/dist/index.cjs.js +4 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +4 -4
- package/dist/index.esm.js.map +1 -1
- package/dist/types.d.ts +10 -0
- package/package.json +4 -2
package/dist/types.d.ts
CHANGED
@@ -95,6 +95,16 @@ export interface MarkdownTableProps {
|
|
95
95
|
* @default 0
|
96
96
|
*/
|
97
97
|
topPadding?: number;
|
98
|
+
/**
|
99
|
+
* Optional minimum width in pixels for the pre element containing the Markdown table.
|
100
|
+
* @default undefined
|
101
|
+
* @example
|
102
|
+
* <MarkdownTable
|
103
|
+
* inputData={data}
|
104
|
+
* minWidth={300}
|
105
|
+
* />
|
106
|
+
*/
|
107
|
+
minWidth?: number;
|
98
108
|
}
|
99
109
|
/**
|
100
110
|
* Represents the alignment options for table columns.
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "react-markdown-table-ts",
|
3
|
-
"version": "1.1.
|
3
|
+
"version": "1.1.8",
|
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",
|
@@ -24,7 +24,8 @@
|
|
24
24
|
"test:ci": "jest --config jest.config.js --coverage --ci",
|
25
25
|
"release": "standard-version",
|
26
26
|
"storybook": "storybook dev -p 6006",
|
27
|
-
"build-storybook": "storybook build"
|
27
|
+
"build-storybook": "storybook build",
|
28
|
+
"chromatic": "npx chromatic --project-token=chpt_f61460f108c0eb8"
|
28
29
|
},
|
29
30
|
"keywords": [
|
30
31
|
"markdown",
|
@@ -66,6 +67,7 @@
|
|
66
67
|
"@types/prismjs": "^1.26.4",
|
67
68
|
"@types/react": "^18.3.8",
|
68
69
|
"@types/react-dom": "^18.3.0",
|
70
|
+
"chromatic": "^11.20.0",
|
69
71
|
"eslint-plugin-storybook": "^0.11.1",
|
70
72
|
"gts": "^5.3.1",
|
71
73
|
"identity-obj-proxy": "^3.0.0",
|