react-markdown-table-ts 0.1.7 → 0.1.9

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/types.d.ts CHANGED
@@ -9,20 +9,12 @@ export interface MarkdownTableData {
9
9
  /**
10
10
  * The header row of the table.
11
11
  */
12
- header: readonly string[];
12
+ header: string[];
13
13
  /**
14
14
  * The body rows of the table.
15
15
  */
16
- rows: readonly TableRow[];
16
+ rows: readonly string[][];
17
17
  }
18
- /**
19
- * Defines the alignment options for table columns.
20
- */
21
- export type Alignment = 'left' | 'center' | 'right';
22
- /**
23
- * Defines the available Prism.js themes for syntax highlighting.
24
- */
25
- export type Theme = 'prism' | 'prism-okaidia' | 'prism-tomorrow' | 'prism-coy' | 'prism-dark' | 'prism-funky' | 'prism-solarizedlight';
26
18
  /**
27
19
  * Props for the MarkdownTable component.
28
20
  */
@@ -30,8 +22,9 @@ export interface MarkdownTableProps {
30
22
  /**
31
23
  * The entire table data as a two-dimensional array.
32
24
  * If `hasHeader` is true, the first row is treated as the header.
25
+ * @default null
33
26
  */
34
- data?: TableRow[] | null;
27
+ data?: string[][] | null;
35
28
  /**
36
29
  * Indicates whether the first row of `data` is a header.
37
30
  * @default true
@@ -39,9 +32,9 @@ export interface MarkdownTableProps {
39
32
  hasHeader?: boolean;
40
33
  /**
41
34
  * Optional array specifying the alignment for each column.
42
- * Acceptable values are 'left', 'center', or 'right'.
35
+ * Acceptable values are 'left', 'center', 'right', or 'none'.
43
36
  */
44
- columnAlignments?: readonly Alignment[];
37
+ columnAlignments?: readonly ('left' | 'center' | 'right' | 'none')[];
45
38
  /**
46
39
  * Optional flag to provide a compact version of the table with minimal column widths.
47
40
  * When `true`, column widths are not adjusted based on content.
@@ -66,9 +59,4 @@ export interface MarkdownTableProps {
66
59
  * Optional callback function to receive the generated Markdown table string.
67
60
  */
68
61
  onTableCreate?: (markdownString: string) => void;
69
- /**
70
- * Optional Prism.js theme for syntax highlighting.
71
- * @default 'prism'
72
- */
73
- theme?: Theme;
74
62
  }
package/package.json CHANGED
@@ -1,506 +1,68 @@
1
- {
2
- "name": "react-markdown-table-ts",
3
- "version": "0.1.7",
4
- "description": "A React component that converts structured data into Markdown table syntax and displays it within a `<pre>` tag.",
5
- "main": "dist/index.cjs.js",
6
- "module": "dist/index.esm.js",
7
- "types": "dist",
8
- "files": [
9
- "dist",
10
- "styles"
11
- ],
12
- "scripts": {
13
- "build": "rollup -c",
14
- "prepare": "npm run build",
15
- "lint": "gts lint",
16
- "clean": "gts clean",
17
- "compile": "tsc",
18
- "fix": "gts fix",
19
- "pretest": "npm run compile",
20
- "posttest": "npm run lint",
21
- "test": "jest",
22
- "test:watch": "jest --watch",
23
- "test:coverage": "jest --coverage --coverageReporters=text-lcov",
24
- "release": "standard-version"
25
- },
26
- "keywords": [
27
- "markdown",
28
- "md",
29
- "table",
30
- "tables",
31
- "react",
32
- "ts",
33
- "typescript",
34
- "types",
35
- "typed",
36
- "generate",
37
- "generator",
38
- "convert",
39
- "converter"
40
- ],
41
- "author": "Keith Walsh",
42
- "license": "MIT",
43
- "repository": {
44
- "type": "git",
45
- "url": "git+https://github.com/keithwalsh/react-markdown-table-ts.git"
46
- },
47
- "peerDependencies": {
48
- "react": "^18.2.0",
49
- "react-dom": "^18.2.0"
50
- },
51
- "devDependencies": {
52
- "@rollup/plugin-commonjs": "^26.0.1",
53
- "@rollup/plugin-node-resolve": "^15.2.3",
54
- "@rollup/plugin-typescript": "^11.1.6",
55
- "@testing-library/jest-dom": "^6.5.0",
56
- "@testing-library/react": "^16.0.1",
57
- "@types/jest": "^29.5.13",
58
- "@types/node": "20.12.7",
59
- "@types/prismjs": "^1.26.4",
60
- "@types/react": "^18.3.8",
61
- "@types/react-dom": "^18.3.0",
62
- "eslint": "^8.50.0",
63
- "gts": "^5.3.1",
64
- "jest": "^29.7.0",
65
- "jest-environment-jsdom": "^29.7.0",
66
- "react": "^18.2.0",
67
- "react-dom": "^18.2.0",
68
- "rollup": "^2.79.1",
69
- "rollup-plugin-typescript2": "^0.36.0",
70
- "standard-version": "^9.5.0",
71
- "ts-jest": "^29.2.5",
72
- "ts-node": "^10.9.2",
73
- "typescript": "^5.6.2"
74
- },
75
- "bugs": {
76
- "url": "https://github.com/keithwalsh/react-markdown-table-ts/issues"
77
- },
78
- "homepage": "https://github.com/keithwalsh/react-markdown-table-ts#readme",
79
- "directories": {
80
- "test": "test"
81
- },
82
- "dependencies": {
83
- "abab": "^2.0.6",
84
- "acorn": "^8.12.1",
85
- "acorn-globals": "^7.0.1",
86
- "acorn-jsx": "^5.3.2",
87
- "acorn-walk": "^8.3.4",
88
- "add-stream": "^1.0.0",
89
- "agent-base": "^6.0.2",
90
- "ajv": "^6.12.6",
91
- "ansi-escapes": "^4.3.2",
92
- "ansi-regex": "^5.0.1",
93
- "ansi-styles": "^4.3.0",
94
- "anymatch": "^3.1.3",
95
- "arg": "^4.1.3",
96
- "argparse": "^2.0.1",
97
- "aria-query": "^5.3.0",
98
- "array-ify": "^1.0.0",
99
- "array-union": "^2.1.0",
100
- "arrify": "^1.0.1",
101
- "async": "^3.2.6",
102
- "asynckit": "^0.4.0",
103
- "babel-jest": "^29.7.0",
104
- "babel-plugin-istanbul": "^6.1.1",
105
- "babel-plugin-jest-hoist": "^29.6.3",
106
- "babel-preset-current-node-syntax": "^1.1.0",
107
- "babel-preset-jest": "^29.6.3",
108
- "balanced-match": "^1.0.2",
109
- "brace-expansion": "^2.0.1",
110
- "braces": "^3.0.3",
111
- "browserslist": "^4.24.0",
112
- "bs-logger": "^0.2.6",
113
- "bser": "^2.1.1",
114
- "buffer-from": "^1.1.2",
115
- "builtins": "^5.1.0",
116
- "callsites": "^3.1.0",
117
- "camelcase": "^5.3.1",
118
- "camelcase-keys": "^6.2.2",
119
- "caniuse-lite": "^1.0.30001663",
120
- "chalk": "^4.1.2",
121
- "char-regex": "^1.0.2",
122
- "chardet": "^0.7.0",
123
- "ci-info": "^3.9.0",
124
- "cjs-module-lexer": "^1.4.1",
125
- "cli-cursor": "^3.1.0",
126
- "cli-width": "^3.0.0",
127
- "cliui": "^8.0.1",
128
- "co": "^4.6.0",
129
- "collect-v8-coverage": "^1.0.2",
130
- "color-convert": "^2.0.1",
131
- "color-name": "^1.1.4",
132
- "combined-stream": "^1.0.8",
133
- "commondir": "^1.0.1",
134
- "compare-func": "^2.0.0",
135
- "concat-map": "^0.0.1",
136
- "concat-stream": "^2.0.0",
137
- "conventional-changelog": "^3.1.25",
138
- "conventional-changelog-angular": "^5.0.13",
139
- "conventional-changelog-atom": "^2.0.8",
140
- "conventional-changelog-codemirror": "^2.0.8",
141
- "conventional-changelog-config-spec": "^2.1.0",
142
- "conventional-changelog-conventionalcommits": "^4.6.3",
143
- "conventional-changelog-core": "^4.2.4",
144
- "conventional-changelog-ember": "^2.0.9",
145
- "conventional-changelog-eslint": "^3.0.9",
146
- "conventional-changelog-express": "^2.0.6",
147
- "conventional-changelog-jquery": "^3.0.11",
148
- "conventional-changelog-jshint": "^2.0.9",
149
- "conventional-changelog-preset-loader": "^2.3.4",
150
- "conventional-changelog-writer": "^5.0.1",
151
- "conventional-commits-filter": "^2.0.7",
152
- "conventional-commits-parser": "^3.2.4",
153
- "conventional-recommended-bump": "^6.1.0",
154
- "convert-source-map": "^2.0.0",
155
- "core-util-is": "^1.0.3",
156
- "create-jest": "^29.7.0",
157
- "create-require": "^1.1.1",
158
- "cross-spawn": "^7.0.3",
159
- "css.escape": "^1.5.1",
160
- "cssom": "^0.5.0",
161
- "cssstyle": "^2.3.0",
162
- "csstype": "^3.1.3",
163
- "dargs": "^7.0.0",
164
- "data-urls": "^3.0.2",
165
- "dateformat": "^3.0.3",
166
- "debug": "^4.3.7",
167
- "decamelize": "^1.2.0",
168
- "decamelize-keys": "^1.1.1",
169
- "decimal.js": "^10.4.3",
170
- "dedent": "^1.5.3",
171
- "deep-is": "^0.1.4",
172
- "deepmerge": "^4.3.1",
173
- "delayed-stream": "^1.0.0",
174
- "dequal": "^2.0.3",
175
- "detect-indent": "^6.1.0",
176
- "detect-newline": "^3.1.0",
177
- "diff": "^4.0.2",
178
- "diff-sequences": "^29.6.3",
179
- "dir-glob": "^3.0.1",
180
- "doctrine": "^3.0.0",
181
- "dom-accessibility-api": "^0.5.16",
182
- "domexception": "^4.0.0",
183
- "dot-prop": "^5.3.0",
184
- "dotgitignore": "^2.1.0",
185
- "ejs": "^3.1.10",
186
- "electron-to-chromium": "^1.5.28",
187
- "emittery": "^0.13.1",
188
- "emoji-regex": "^8.0.0",
189
- "entities": "^4.5.0",
190
- "error-ex": "^1.3.2",
191
- "escalade": "^3.2.0",
192
- "escape-string-regexp": "^4.0.0",
193
- "escodegen": "^2.1.0",
194
- "eslint-config-prettier": "^9.1.0",
195
- "eslint-plugin-es": "^4.1.0",
196
- "eslint-plugin-n": "^15.7.0",
197
- "eslint-plugin-prettier": "^5.1.3",
198
- "eslint-scope": "^5.1.1",
199
- "eslint-utils": "^3.0.0",
200
- "eslint-visitor-keys": "^3.4.3",
201
- "espree": "^9.6.1",
202
- "esprima": "^4.0.1",
203
- "esquery": "^1.6.0",
204
- "esrecurse": "^4.3.0",
205
- "estraverse": "^4.3.0",
206
- "estree-walker": "^2.0.2",
207
- "esutils": "^2.0.3",
208
- "execa": "^5.1.1",
209
- "exit": "^0.1.2",
210
- "expect": "^29.7.0",
211
- "external-editor": "^3.1.0",
212
- "fast-deep-equal": "^3.1.3",
213
- "fast-diff": "^1.3.0",
214
- "fast-glob": "^3.3.2",
215
- "fast-json-stable-stringify": "^2.1.0",
216
- "fast-levenshtein": "^2.0.6",
217
- "fastq": "^1.17.1",
218
- "fb-watchman": "^2.0.2",
219
- "fdir": "^6.3.0",
220
- "figures": "^3.2.0",
221
- "file-entry-cache": "^6.0.1",
222
- "filelist": "^1.0.4",
223
- "fill-range": "^7.1.1",
224
- "find-cache-dir": "^3.3.2",
225
- "find-up": "^5.0.0",
226
- "flat-cache": "^3.2.0",
227
- "flatted": "^3.3.1",
228
- "form-data": "^4.0.0",
229
- "fs-extra": "^10.1.0",
230
- "fs.realpath": "^1.0.0",
231
- "function-bind": "^1.1.2",
232
- "gensync": "^1.0.0-beta.2",
233
- "get-caller-file": "^2.0.5",
234
- "get-package-type": "^0.1.0",
235
- "get-pkg-repo": "^4.2.1",
236
- "get-stream": "^6.0.1",
237
- "git-raw-commits": "^2.0.11",
238
- "git-remote-origin-url": "^2.0.0",
239
- "git-semver-tags": "^4.1.1",
240
- "gitconfiglocal": "^1.0.0",
241
- "glob-parent": "^6.0.2",
242
- "globals": "^13.24.0",
243
- "globby": "^11.1.0",
244
- "graceful-fs": "^4.2.11",
245
- "graphemer": "^1.4.0",
246
- "handlebars": "^4.7.8",
247
- "hard-rejection": "^2.1.0",
248
- "has-flag": "^4.0.0",
249
- "hasown": "^2.0.2",
250
- "hosted-git-info": "^4.1.0",
251
- "html-encoding-sniffer": "^3.0.0",
252
- "html-escaper": "^2.0.2",
253
- "http-proxy-agent": "^5.0.0",
254
- "https-proxy-agent": "^5.0.1",
255
- "human-signals": "^2.1.0",
256
- "iconv-lite": "^0.4.24",
257
- "ignore": "^5.3.2",
258
- "import-fresh": "^3.3.0",
259
- "import-local": "^3.2.0",
260
- "imurmurhash": "^0.1.4",
261
- "indent-string": "^4.0.0",
262
- "inflight": "^1.0.6",
263
- "inherits": "^2.0.4",
264
- "ini": "^1.3.8",
265
- "inquirer": "^7.3.3",
266
- "is-arrayish": "^0.2.1",
267
- "is-core-module": "^2.15.1",
268
- "is-extglob": "^2.1.1",
269
- "is-fullwidth-code-point": "^3.0.0",
270
- "is-generator-fn": "^2.1.0",
271
- "is-glob": "^4.0.3",
272
- "is-module": "^1.0.0",
273
- "is-number": "^7.0.0",
274
- "is-obj": "^2.0.0",
275
- "is-path-inside": "^3.0.3",
276
- "is-plain-obj": "^1.1.0",
277
- "is-potential-custom-element-name": "^1.0.1",
278
- "is-reference": "^1.2.1",
279
- "is-stream": "^2.0.1",
280
- "is-text-path": "^1.0.1",
281
- "isarray": "^1.0.0",
282
- "isexe": "^2.0.0",
283
- "istanbul-lib-coverage": "^3.2.2",
284
- "istanbul-lib-instrument": "^6.0.3",
285
- "istanbul-lib-report": "^3.0.1",
286
- "istanbul-lib-source-maps": "^4.0.1",
287
- "istanbul-reports": "^3.1.7",
288
- "jake": "^10.9.2",
289
- "jest-changed-files": "^29.7.0",
290
- "jest-circus": "^29.7.0",
291
- "jest-cli": "^29.7.0",
292
- "jest-config": "^29.7.0",
293
- "jest-diff": "^29.7.0",
294
- "jest-docblock": "^29.7.0",
295
- "jest-each": "^29.7.0",
296
- "jest-environment-node": "^29.7.0",
297
- "jest-get-type": "^29.6.3",
298
- "jest-haste-map": "^29.7.0",
299
- "jest-leak-detector": "^29.7.0",
300
- "jest-matcher-utils": "^29.7.0",
301
- "jest-message-util": "^29.7.0",
302
- "jest-mock": "^29.7.0",
303
- "jest-pnp-resolver": "^1.2.3",
304
- "jest-regex-util": "^29.6.3",
305
- "jest-resolve": "^29.7.0",
306
- "jest-resolve-dependencies": "^29.7.0",
307
- "jest-runner": "^29.7.0",
308
- "jest-runtime": "^29.7.0",
309
- "jest-snapshot": "^29.7.0",
310
- "jest-util": "^29.7.0",
311
- "jest-validate": "^29.7.0",
312
- "jest-watcher": "^29.7.0",
313
- "jest-worker": "^29.7.0",
314
- "js-tokens": "^4.0.0",
315
- "js-yaml": "^4.1.0",
316
- "jsdom": "^20.0.3",
317
- "jsesc": "^2.5.2",
318
- "json-buffer": "^3.0.1",
319
- "json-parse-better-errors": "^1.0.2",
320
- "json-parse-even-better-errors": "^2.3.1",
321
- "json-schema-traverse": "^0.4.1",
322
- "json-stable-stringify-without-jsonify": "^1.0.1",
323
- "json-stringify-safe": "^5.0.1",
324
- "json5": "^2.2.3",
325
- "jsonfile": "^6.1.0",
326
- "jsonparse": "^1.3.1",
327
- "JSONStream": "^1.3.5",
328
- "keyv": "^4.5.4",
329
- "kind-of": "^6.0.3",
330
- "kleur": "^3.0.3",
331
- "leven": "^3.1.0",
332
- "levn": "^0.4.1",
333
- "lines-and-columns": "^1.2.4",
334
- "load-json-file": "^4.0.0",
335
- "locate-path": "^6.0.0",
336
- "lodash": "^4.17.21",
337
- "lodash.ismatch": "^4.4.0",
338
- "lodash.memoize": "^4.1.2",
339
- "lodash.merge": "^4.6.2",
340
- "loose-envify": "^1.4.0",
341
- "lru-cache": "^5.1.1",
342
- "lz-string": "^1.5.0",
343
- "magic-string": "^0.30.11",
344
- "make-dir": "^4.0.0",
345
- "make-error": "^1.3.6",
346
- "makeerror": "^1.0.12",
347
- "map-obj": "^4.3.0",
348
- "meow": "^9.0.0",
349
- "merge-stream": "^2.0.0",
350
- "merge2": "^1.4.1",
351
- "micromatch": "^4.0.8",
352
- "mime-db": "^1.52.0",
353
- "mime-types": "^2.1.35",
354
- "mimic-fn": "^2.1.0",
355
- "min-indent": "^1.0.1",
356
- "minimist": "^1.2.8",
357
- "minimist-options": "^4.1.0",
358
- "modify-values": "^1.0.1",
359
- "ms": "^2.1.3",
360
- "mute-stream": "^0.0.8",
361
- "natural-compare": "^1.4.0",
362
- "natural-compare-lite": "^1.4.0",
363
- "ncp": "^2.0.0",
364
- "neo-async": "^2.6.2",
365
- "node-int64": "^0.4.0",
366
- "node-releases": "^2.0.18",
367
- "normalize-package-data": "^3.0.3",
368
- "normalize-path": "^3.0.0",
369
- "npm-run-path": "^4.0.1",
370
- "nwsapi": "^2.2.12",
371
- "once": "^1.4.0",
372
- "onetime": "^5.1.2",
373
- "optionator": "^0.9.4",
374
- "os-tmpdir": "^1.0.2",
375
- "p-limit": "^3.1.0",
376
- "p-locate": "^5.0.0",
377
- "p-try": "^2.2.0",
378
- "parent-module": "^1.0.1",
379
- "parse-json": "^5.2.0",
380
- "parse5": "^7.1.2",
381
- "path-exists": "^4.0.0",
382
- "path-is-absolute": "^1.0.1",
383
- "path-key": "^3.1.1",
384
- "path-parse": "^1.0.7",
385
- "path-type": "^4.0.0",
386
- "picocolors": "^1.1.0",
387
- "picomatch": "^4.0.2",
388
- "pify": "^2.3.0",
389
- "pirates": "^4.0.6",
390
- "pkg-dir": "^4.2.0",
391
- "prelude-ls": "^1.2.1",
392
- "prettier": "^3.2.5",
393
- "prettier-linter-helpers": "^1.0.0",
394
- "pretty-format": "^27.5.1",
395
- "prismjs": "^1.29.0",
396
- "process-nextick-args": "^2.0.1",
397
- "prompts": "^2.4.2",
398
- "psl": "^1.9.0",
399
- "punycode": "^2.3.1",
400
- "pure-rand": "^6.1.0",
401
- "q": "^1.5.1",
402
- "querystringify": "^2.2.0",
403
- "queue-microtask": "^1.2.3",
404
- "quick-lru": "^4.0.1",
405
- "react-is": "^17.0.2",
406
- "read-pkg": "^5.2.0",
407
- "read-pkg-up": "^7.0.1",
408
- "readable-stream": "^3.6.2",
409
- "redent": "^3.0.0",
410
- "regenerator-runtime": "^0.14.1",
411
- "regexpp": "^3.2.0",
412
- "require-directory": "^2.1.1",
413
- "requires-port": "^1.0.0",
414
- "resolve": "^1.22.8",
415
- "resolve-cwd": "^3.0.0",
416
- "resolve-from": "^4.0.0",
417
- "resolve.exports": "^2.0.2",
418
- "restore-cursor": "^3.1.0",
419
- "reusify": "^1.0.4",
420
- "rimraf": "^3.0.2",
421
- "run-async": "^2.4.1",
422
- "run-parallel": "^1.2.0",
423
- "rxjs": "^6.6.7",
424
- "safe-buffer": "^5.2.1",
425
- "safer-buffer": "^2.1.2",
426
- "saxes": "^6.0.0",
427
- "scheduler": "^0.23.2",
428
- "semver": "^7.6.3",
429
- "shebang-command": "^2.0.0",
430
- "shebang-regex": "^3.0.0",
431
- "sisteransi": "^1.0.5",
432
- "slash": "^3.0.0",
433
- "source-map": "^0.6.1",
434
- "source-map-support": "^0.5.13",
435
- "spdx-correct": "^3.2.0",
436
- "spdx-exceptions": "^2.5.0",
437
- "spdx-expression-parse": "^3.0.1",
438
- "spdx-license-ids": "^3.0.20",
439
- "split": "^1.0.1",
440
- "split2": "^3.2.2",
441
- "sprintf-js": "^1.0.3",
442
- "stack-utils": "^2.0.6",
443
- "string_decoder": "^1.3.0",
444
- "string-length": "^4.0.2",
445
- "string-width": "^4.2.3",
446
- "stringify-package": "^1.0.1",
447
- "strip-ansi": "^6.0.1",
448
- "strip-bom": "^4.0.0",
449
- "strip-final-newline": "^2.0.0",
450
- "strip-indent": "^3.0.0",
451
- "strip-json-comments": "^3.1.1",
452
- "supports-color": "^7.2.0",
453
- "supports-preserve-symlinks-flag": "^1.0.0",
454
- "symbol-tree": "^3.2.4",
455
- "synckit": "^0.8.8",
456
- "test-exclude": "^6.0.0",
457
- "text-extensions": "^1.9.0",
458
- "text-table": "^0.2.0",
459
- "through": "^2.3.8",
460
- "through2": "^4.0.2",
461
- "tmp": "^0.0.33",
462
- "tmpl": "^1.0.5",
463
- "to-fast-properties": "^2.0.0",
464
- "to-regex-range": "^5.0.1",
465
- "tough-cookie": "^4.1.4",
466
- "tr46": "^3.0.0",
467
- "trim-newlines": "^3.0.1",
468
- "tslib": "^2.7.0",
469
- "tsutils": "^3.21.0",
470
- "type-check": "^0.4.0",
471
- "type-detect": "^4.0.8",
472
- "type-fest": "^0.20.2",
473
- "typedarray": "^0.0.6",
474
- "uglify-js": "^3.19.3",
475
- "undici-types": "^6.19.8",
476
- "universalify": "^2.0.1",
477
- "update-browserslist-db": "^1.1.0",
478
- "uri-js": "^4.4.1",
479
- "url-parse": "^1.5.10",
480
- "util-deprecate": "^1.0.2",
481
- "v8-compile-cache-lib": "^3.0.1",
482
- "v8-to-istanbul": "^9.3.0",
483
- "validate-npm-package-license": "^3.0.4",
484
- "w3c-xmlserializer": "^4.0.0",
485
- "walker": "^1.0.8",
486
- "webidl-conversions": "^7.0.0",
487
- "whatwg-encoding": "^2.0.0",
488
- "whatwg-mimetype": "^3.0.0",
489
- "whatwg-url": "^11.0.0",
490
- "which": "^2.0.2",
491
- "word-wrap": "^1.2.5",
492
- "wordwrap": "^1.0.0",
493
- "wrappy": "^1.0.2",
494
- "write-file-atomic": "^4.0.2",
495
- "ws": "^8.18.0",
496
- "xml-name-validator": "^4.0.0",
497
- "xmlchars": "^2.2.0",
498
- "xtend": "^4.0.2",
499
- "y18n": "^5.0.8",
500
- "yallist": "^3.1.1",
501
- "yargs": "^17.7.2",
502
- "yargs-parser": "^20.2.9",
503
- "yn": "^3.1.1",
504
- "yocto-queue": "^0.1.0"
505
- }
506
- }
1
+ {
2
+ "name": "react-markdown-table-ts",
3
+ "version": "0.1.9",
4
+ "description": "A React component that converts structured data into Markdown table syntax and displays it within a `<pre>` tag.",
5
+ "main": "dist/index.cjs.js",
6
+ "module": "dist/index.esm.js",
7
+ "types": "dist/types/index.d.ts",
8
+ "files": [
9
+ "dist"
10
+ ],
11
+ "scripts": {
12
+ "build": "rollup -c",
13
+ "prepare": "npm run build",
14
+ "lint": "gts lint",
15
+ "clean": "gts clean",
16
+ "compile": "tsc",
17
+ "fix": "gts fix",
18
+ "pretest": "npm run compile",
19
+ "posttest": "npm run lint",
20
+ "test": "jest",
21
+ "test:watch": "jest --watch",
22
+ "test:coverage": "jest --coverage --coverageReporters=text-lcov",
23
+ "release": "standard-version"
24
+ },
25
+ "keywords": [
26
+ "markdown",
27
+ "md",
28
+ "table",
29
+ "tables",
30
+ "react",
31
+ "ts",
32
+ "typescript",
33
+ "types",
34
+ "typed",
35
+ "generate",
36
+ "generator",
37
+ "convert",
38
+ "converter"
39
+ ],
40
+ "author": "Keith Walsh",
41
+ "license": "MIT",
42
+ "repository": "https://github.com/keithwalsh/react-markdown-table-ts.git",
43
+ "peerDependencies": {
44
+ "react": "^18.2.0",
45
+ "react-dom": "^18.2.0"
46
+ },
47
+ "devDependencies": {
48
+ "@rollup/plugin-commonjs": "^26.0.1",
49
+ "@rollup/plugin-node-resolve": "^15.2.3",
50
+ "@rollup/plugin-typescript": "^11.1.6",
51
+ "@testing-library/jest-dom": "^6.5.0",
52
+ "@testing-library/react": "^16.0.1",
53
+ "@types/jest": "^29.5.13",
54
+ "@types/node": "20.12.7",
55
+ "@types/react": "^18.3.8",
56
+ "@types/react-dom": "^18.3.0",
57
+ "gts": "^5.3.1",
58
+ "jest": "^29.7.0",
59
+ "jest-environment-jsdom": "^29.7.0",
60
+ "react": "^18.2.0",
61
+ "react-dom": "^18.2.0",
62
+ "rollup": "^2.79.1",
63
+ "rollup-plugin-typescript2": "^0.36.0",
64
+ "standard-version": "^9.5.0",
65
+ "ts-jest": "^29.2.5",
66
+ "typescript": "^5.1.6"
67
+ }
68
+ }
@@ -1,40 +0,0 @@
1
- pre[class*="language-"].line-numbers {
2
- position: relative;
3
- padding-left: 3.8em;
4
- counter-reset: linenumber;
5
- }
6
-
7
- pre[class*="language-"].line-numbers > code {
8
- position: relative;
9
- white-space: inherit;
10
- }
11
-
12
- .line-numbers .line-numbers-rows {
13
- position: absolute;
14
- pointer-events: none;
15
- top: 0;
16
- font-size: 100%;
17
- left: -3.8em;
18
- width: 3em; /* works for line-numbers below 1000 lines */
19
- letter-spacing: -1px;
20
- border-right: 1px solid #999;
21
-
22
- -webkit-user-select: none;
23
- -moz-user-select: none;
24
- -ms-user-select: none;
25
- user-select: none;
26
-
27
- }
28
-
29
- .line-numbers-rows > span {
30
- display: block;
31
- counter-increment: linenumber;
32
- }
33
-
34
- .line-numbers-rows > span:before {
35
- content: counter(linenumber);
36
- color: #999;
37
- display: block;
38
- padding-right: 0.8em;
39
- text-align: right;
40
- }