@crossworks/content-core 0.232.13 → 0.232.14
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/package.json +1 -1
- package/src/table-model.ts +11 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crossworks/content-core",
|
|
3
|
-
"version": "0.232.
|
|
3
|
+
"version": "0.232.14",
|
|
4
4
|
"description": "Browser-safe content logic — markdown, blocks, pages, tables, formulas — shared by the server and any client. Zero server deps by design: nothing here may reach @mantle/db, node-only APIs, or the network (the jackdaw-repo-split P0 boundary).",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./markdown": "./src/markdown-to-doc.ts",
|
package/src/table-model.ts
CHANGED
|
@@ -829,6 +829,15 @@ export type TableVisibility = 'private' | 'public';
|
|
|
829
829
|
|
|
830
830
|
export type TableTabInfo = { id: string; name: string; rows: number; columns: number };
|
|
831
831
|
|
|
832
|
+
/** Present when the table is an APP TABLE: a derived, read-only view of one
|
|
833
|
+
* table inside a mini-app's own SQLite database. The app is the master — the
|
|
834
|
+
* grid refuses edits here and re-materializes after app writes. */
|
|
835
|
+
export type TableAppLink = {
|
|
836
|
+
appId: string;
|
|
837
|
+
appName: string | null;
|
|
838
|
+
sqliteTable: string;
|
|
839
|
+
};
|
|
840
|
+
|
|
832
841
|
export type TableRow = {
|
|
833
842
|
id: string;
|
|
834
843
|
title: string;
|
|
@@ -840,6 +849,8 @@ export type TableRow = {
|
|
|
840
849
|
* extractor generates and may replace. */
|
|
841
850
|
description: string | null;
|
|
842
851
|
visibility: TableVisibility;
|
|
852
|
+
/** Set when this is an app table (see `TableAppLink`); null/absent otherwise. */
|
|
853
|
+
appLink?: TableAppLink | null;
|
|
843
854
|
/** Quick stats for the list (cheap to compute from the doc). */
|
|
844
855
|
columnCount: number;
|
|
845
856
|
rowCount: number;
|