@columnus/shared 0.1.48 → 0.1.51

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,19 @@
1
+ import type { Manifest } from "./schemaTypes.ts";
2
+ export type RecordTablePreloadEntry = {
3
+ blockId: string;
4
+ table: string;
5
+ rows: Array<Record<string, unknown>>;
6
+ };
7
+ export type RecordTablePreload = {
8
+ tables: RecordTablePreloadEntry[];
9
+ };
10
+ /**
11
+ * SSR hydrate for BlockNote `recordTable` embeds: filtered/sorted rows keyed by block id.
12
+ * Uses the same Query AST as live `RecordTableView`. Labels stay host-owned (separate prop).
13
+ */
14
+ export declare function buildRecordTablePreload(content: string | undefined, opts: {
15
+ manifest: Manifest;
16
+ rowsByTable: Record<string, ReadonlyArray<Record<string, unknown>>>;
17
+ }): RecordTablePreload | null;
18
+ /** Look up a preloaded `${table}:${id}` label. */
19
+ export declare function resolvePreloadedLabel(labels: Record<string, string> | undefined, table: string, id: string): string | undefined;