@dropsh/plugin-table 0.5.7 → 0.6.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.
@@ -0,0 +1,4 @@
1
+ import type { JsonApiResource } from "dropsh/plugin";
2
+ export declare function pickColumns(res: JsonApiResource): string[];
3
+ export declare function cell(v: unknown): string;
4
+ export declare function formatTable(headers: string[], rows: string[][]): string;
@@ -0,0 +1,4 @@
1
+ import type { DropSHPlugin } from "dropsh/plugin";
2
+ import { renderTable } from "./render-table.js";
3
+ export { renderTable };
4
+ export declare function tablePlugin(): DropSHPlugin;
@@ -0,0 +1,4 @@
1
+ import type { JsonApiDocument, RenderContext } from "dropsh/plugin";
2
+ import { formatTable, pickColumns } from "./columns.js";
3
+ export { formatTable, pickColumns };
4
+ export declare function renderTable(doc: JsonApiDocument, _ctx: RenderContext): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dropsh/plugin-table",
3
- "version": "0.5.7",
3
+ "version": "0.6.0",
4
4
  "type": "module",
5
5
  "main": "./dist/plugins/table/src/index.js",
6
6
  "exports": {
@@ -19,7 +19,7 @@
19
19
  "devDependencies": {
20
20
  "typescript": "^5.6.0",
21
21
  "vitest": "^2.1.0",
22
- "dropsh": "0.5.7"
22
+ "dropsh": "0.6.0"
23
23
  },
24
24
  "scripts": {
25
25
  "build": "tsc",