Skip to content

Commit 8a834da

Browse files
committed
update docs
1 parent 4227b7a commit 8a834da

File tree

14 files changed

+3038
-2458
lines changed

14 files changed

+3038
-2458
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
## Installation
1414

1515
```bash
16-
npm install marko-table @tanstack/table-core
16+
npm install tanstack-table-markojs @tanstack/table-core
1717
# optional: for virtualized tables
1818
npm install @tanstack/virtual-core
1919
```
@@ -150,7 +150,7 @@ import {
150150
getFilteredRowModel,
151151
createColumnHelper,
152152
type SortingState, type PaginationState, type RowSelectionState,
153-
} from "marko-table";
153+
} from "tanstack-table-markojs";
154154
155155
export interface Input { data: Person[] }
156156
export interface Person { id: number; name: string; age: number }
@@ -281,7 +281,7 @@ Gate everything behind `<if=mounted>` so the server never renders the table cont
281281
// components/data-table-client.marko
282282
import { syncMarkoTable, generateTableId, destroyTable, flexRender,
283283
getCoreRowModel, getSortedRowModel, getPaginationRowModel,
284-
type SortingState, type PaginationState } from "marko-table";
284+
type SortingState, type PaginationState } from "tanstack-table-markojs";
285285
286286
<let/mounted = false />
287287
<let/tableId = generateTableId() />
@@ -328,7 +328,7 @@ import {
328328
syncMarkoTable, generateTableId, destroyTable, syncVirtualizer, flexRender,
329329
getCoreRowModel, getSortedRowModel, getFilteredRowModel,
330330
type SortingState, type VirtualRow,
331-
} from "marko-table";
331+
} from "tanstack-table-markojs";
332332
333333
<let/mounted = false />
334334
<let/tableId = generateTableId() />

demo/.marko-run/routes.d.ts

Lines changed: 12 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -3,42 +3,23 @@
33
Do NOT manually edit this file or your changes will be lost.
44
*/
55

6-
import {
7-
NotHandled,
8-
NotMatched,
9-
GetPaths,
10-
PostPaths,
11-
GetablePath,
12-
GetableHref,
13-
PostablePath,
14-
PostableHref,
15-
Platform,
16-
} from "@marko/run/namespace";
6+
import { NotHandled, NotMatched, GetPaths, PostPaths, GetablePath, GetableHref, PostablePath, PostableHref, Platform } from "@marko/run/namespace";
177
import type * as Run from "@marko/run";
188

9+
1910
declare module "@marko/run" {
20-
interface AppData extends Run.DefineApp<{
21-
routes: {
22-
"/": { verb: "get" };
23-
"/client-only": { verb: "get" };
24-
"/virtual": { verb: "get" };
25-
};
26-
}> {}
11+
interface AppData extends Run.DefineApp<{
12+
routes: {
13+
"/": { verb: "get"; };
14+
"/client-only": { verb: "get"; };
15+
"/virtual": { verb: "get"; };
16+
}
17+
}> {}
2718
}
2819

2920
declare module "../src/routes/+page.marko" {
3021
namespace MarkoRun {
31-
export {
32-
NotHandled,
33-
NotMatched,
34-
GetPaths,
35-
PostPaths,
36-
GetablePath,
37-
GetableHref,
38-
PostablePath,
39-
PostableHref,
40-
Platform,
41-
};
22+
export { NotHandled, NotMatched, GetPaths, PostPaths, GetablePath, GetableHref, PostablePath, PostableHref, Platform };
4223
export type Route = Run.Routes["/"];
4324
export type Context = Run.MultiRouteContext<Route> & Marko.Global;
4425
export type Handler = Run.HandlerLike<Route>;
@@ -49,17 +30,7 @@ declare module "../src/routes/+page.marko" {
4930

5031
declare module "../src/routes/client-only/+page.marko" {
5132
namespace MarkoRun {
52-
export {
53-
NotHandled,
54-
NotMatched,
55-
GetPaths,
56-
PostPaths,
57-
GetablePath,
58-
GetableHref,
59-
PostablePath,
60-
PostableHref,
61-
Platform,
62-
};
33+
export { NotHandled, NotMatched, GetPaths, PostPaths, GetablePath, GetableHref, PostablePath, PostableHref, Platform };
6334
export type Route = Run.Routes["/client-only"];
6435
export type Context = Run.MultiRouteContext<Route> & Marko.Global;
6536
export type Handler = Run.HandlerLike<Route>;
@@ -70,17 +41,7 @@ declare module "../src/routes/client-only/+page.marko" {
7041

7142
declare module "../src/routes/virtual/+page.marko" {
7243
namespace MarkoRun {
73-
export {
74-
NotHandled,
75-
NotMatched,
76-
GetPaths,
77-
PostPaths,
78-
GetablePath,
79-
GetableHref,
80-
PostablePath,
81-
PostableHref,
82-
Platform,
83-
};
44+
export { NotHandled, NotMatched, GetPaths, PostPaths, GetablePath, GetableHref, PostablePath, PostableHref, Platform };
8445
export type Route = Run.Routes["/virtual"];
8546
export type Context = Run.MultiRouteContext<Route> & Marko.Global;
8647
export type Handler = Run.HandlerLike<Route>;

0 commit comments

Comments
 (0)