@telepath-computer/television 1.5.10 → 1.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.
Files changed (130) hide show
  1. package/dist/THIRD-PARTY-NOTICES.txt +701 -0
  2. package/dist/cli.cjs +9035 -596
  3. package/dist/onboarding/tv-guide/welcome.html +14 -4
  4. package/dist/skills/television/SKILL.md +39 -33
  5. package/dist/skills/television/resources.md +4 -4
  6. package/dist/skills/television/templates.md +77 -0
  7. package/dist/skills/television/theming.md +31 -17
  8. package/dist/templates/calendar/README.md +17 -0
  9. package/dist/{skills/tv-tasks → templates/calendar}/THIRD-PARTY-NOTICES.txt +22 -22
  10. package/dist/templates/calendar/calendar-attendees.js +131 -0
  11. package/dist/templates/calendar/calendar-event.js +22 -0
  12. package/dist/templates/calendar/calendar-motion.js +273 -0
  13. package/dist/templates/calendar/calendar-page.js +403 -0
  14. package/dist/templates/calendar/calendar-time-axis.js +32 -0
  15. package/dist/templates/calendar/calendar-week.js +711 -0
  16. package/dist/templates/calendar/data.json +3 -0
  17. package/dist/templates/calendar/icon.svg +1 -0
  18. package/dist/templates/calendar/index.html +27 -0
  19. package/dist/templates/calendar/manifest.json +148 -0
  20. package/dist/templates/calendar/styles.css +771 -0
  21. package/dist/templates/checklist/README.md +45 -0
  22. package/dist/templates/checklist/THIRD-PARTY-NOTICES.txt +29 -0
  23. package/dist/templates/checklist/data.json +1 -0
  24. package/dist/templates/checklist/icon.svg +8 -0
  25. package/dist/templates/checklist/icons.css +61 -0
  26. package/dist/templates/checklist/index.html +47 -0
  27. package/dist/templates/checklist/manifest.json +49 -0
  28. package/dist/templates/checklist/model.d.ts +30 -0
  29. package/dist/templates/checklist/model.js +60 -0
  30. package/dist/templates/checklist/page.js +425 -0
  31. package/dist/templates/checklist/styles.css +206 -0
  32. package/dist/templates/document/README.md +55 -0
  33. package/dist/templates/document/THIRD-PARTY-NOTICES.txt +1080 -0
  34. package/dist/templates/document/data.json +3 -0
  35. package/dist/templates/document/editor.css +1 -0
  36. package/dist/templates/document/editor.js +37 -0
  37. package/dist/templates/document/icon.svg +6 -0
  38. package/dist/templates/document/index.html +29 -0
  39. package/dist/templates/document/manifest.json +22 -0
  40. package/dist/templates/document/page.js +190 -0
  41. package/dist/templates/document/styles.css +76 -0
  42. package/dist/templates/map/README.md +85 -0
  43. package/dist/templates/map/THIRD-PARTY-NOTICES.txt +84 -0
  44. package/dist/templates/map/data.json +1 -0
  45. package/dist/templates/map/icon.svg +8 -0
  46. package/dist/templates/map/icons.svg +43 -0
  47. package/dist/templates/map/index.html +95 -0
  48. package/dist/templates/map/manifest.json +227 -0
  49. package/dist/templates/map/map-model.js +18 -0
  50. package/dist/templates/map/map.css +202 -0
  51. package/dist/templates/map/map.js +728 -0
  52. package/dist/templates/map/vendor/LICENSE +26 -0
  53. package/dist/templates/map/vendor/README.md +11 -0
  54. package/dist/templates/map/vendor/leaflet.css +661 -0
  55. package/dist/templates/map/vendor/leaflet.js +6 -0
  56. package/dist/templates/map/vendor/lucide/LICENSE +43 -0
  57. package/dist/templates/map/vendor/lucide/README.md +46 -0
  58. package/dist/templates/map/vendor/lucide/icons.js +832 -0
  59. package/dist/templates/map/vendor/lucide/svg/airport.svg +15 -0
  60. package/dist/templates/map/vendor/lucide/svg/bar.svg +17 -0
  61. package/dist/templates/map/vendor/lucide/svg/beach.svg +17 -0
  62. package/dist/templates/map/vendor/lucide/svg/bridge.svg +20 -0
  63. package/dist/templates/map/vendor/lucide/svg/bus.svg +21 -0
  64. package/dist/templates/map/vendor/lucide/svg/church.svg +19 -0
  65. package/dist/templates/map/vendor/lucide/svg/coffee.svg +18 -0
  66. package/dist/templates/map/vendor/lucide/svg/ferry.svg +19 -0
  67. package/dist/templates/map/vendor/lucide/svg/flag.svg +15 -0
  68. package/dist/templates/map/vendor/lucide/svg/heart.svg +15 -0
  69. package/dist/templates/map/vendor/lucide/svg/home.svg +16 -0
  70. package/dist/templates/map/vendor/lucide/svg/hospital.svg +19 -0
  71. package/dist/templates/map/vendor/lucide/svg/hotel.svg +24 -0
  72. package/dist/templates/map/vendor/lucide/svg/info.svg +17 -0
  73. package/dist/templates/map/vendor/lucide/svg/landmark.svg +20 -0
  74. package/dist/templates/map/vendor/lucide/svg/mountain.svg +15 -0
  75. package/dist/templates/map/vendor/lucide/svg/museum.svg +20 -0
  76. package/dist/templates/map/vendor/lucide/svg/music.svg +17 -0
  77. package/dist/templates/map/vendor/lucide/svg/park.svg +18 -0
  78. package/dist/templates/map/vendor/lucide/svg/parking.svg +16 -0
  79. package/dist/templates/map/vendor/lucide/svg/pin.svg +16 -0
  80. package/dist/templates/map/vendor/lucide/svg/restaurant.svg +17 -0
  81. package/dist/templates/map/vendor/lucide/svg/school.svg +20 -0
  82. package/dist/templates/map/vendor/lucide/svg/shop.svg +17 -0
  83. package/dist/templates/map/vendor/lucide/svg/sports.svg +19 -0
  84. package/dist/templates/map/vendor/lucide/svg/star.svg +15 -0
  85. package/dist/templates/map/vendor/lucide/svg/theatre.svg +23 -0
  86. package/dist/templates/map/vendor/lucide/svg/train.svg +20 -0
  87. package/dist/templates/map/vendor/lucide/svg/viewpoint.svg +20 -0
  88. package/dist/templates/map/vendor/lucide/svg/work.svg +18 -0
  89. package/dist/templates/sticky-note/Caveat-Medium.woff2 +0 -0
  90. package/dist/templates/sticky-note/README.md +47 -0
  91. package/dist/templates/sticky-note/THIRD-PARTY-NOTICES.txt +127 -0
  92. package/dist/templates/sticky-note/data.json +1 -0
  93. package/dist/templates/sticky-note/icon.svg +16 -0
  94. package/dist/templates/sticky-note/icons.css +61 -0
  95. package/dist/templates/sticky-note/index.html +31 -0
  96. package/dist/templates/sticky-note/manifest.json +27 -0
  97. package/dist/templates/sticky-note/model.d.ts +33 -0
  98. package/dist/templates/sticky-note/model.js +152 -0
  99. package/dist/templates/sticky-note/page.js +84 -0
  100. package/dist/templates/sticky-note/styles.css +140 -0
  101. package/dist/templates/table/README.md +107 -0
  102. package/dist/templates/table/data.json +4 -0
  103. package/dist/templates/table/icon.svg +6 -0
  104. package/dist/templates/table/index.html +15 -0
  105. package/dist/templates/table/manifest.json +70 -0
  106. package/dist/templates/table/model.d.ts +164 -0
  107. package/dist/templates/table/model.js +395 -0
  108. package/dist/templates/table/page.js +1045 -0
  109. package/dist/templates/table/selection-model.d.ts +67 -0
  110. package/dist/templates/table/selection-model.js +163 -0
  111. package/dist/templates/table/styles.css +522 -0
  112. package/dist/views/markdown/THIRD-PARTY-NOTICES.txt +408 -0
  113. package/dist/views/markdown/index.html +21 -21
  114. package/dist/web/assets/main-CRSNodQt.js +864 -0
  115. package/dist/web/assets/main-DnvQkpg4.css +1 -0
  116. package/dist/web/index.html +2 -2
  117. package/package.json +1 -1
  118. package/dist/skills/tv-calendar/SKILL.md +0 -100
  119. package/dist/skills/tv-calendar/calendar.css +0 -1
  120. package/dist/skills/tv-calendar/calendar.js +0 -400
  121. package/dist/skills/tv-table/SKILL.md +0 -95
  122. package/dist/skills/tv-tasks/SKILL.md +0 -269
  123. package/dist/skills/tv-tasks/task.css +0 -180
  124. package/dist/skills/tv-tasks/task.js +0 -304
  125. package/dist/web/assets/calendar-DToAnkzj.png +0 -0
  126. package/dist/web/assets/main-CekDfJPz.js +0 -848
  127. package/dist/web/assets/main-CunC2_Nx.css +0 -1
  128. package/dist/web/assets/markdown-DdDrJuVK.png +0 -0
  129. package/dist/web/assets/table-oeG9uAN1.png +0 -0
  130. package/dist/web/assets/tasks-D4xqXFPl.png +0 -0
@@ -0,0 +1,107 @@
1
+ # Table template
2
+
3
+ This template makes an editable table that a person and an agent can change at the same time. Its JSON store has separate column and row objects:
4
+
5
+ ```json
6
+ {
7
+ "headerRow": true,
8
+ "columns": {
9
+ "b57c9dd8-00d4-49c2-a382-e5cd6e45d935": { "order": 1, "width": 200 }
10
+ },
11
+ "rows": {
12
+ "514c6a2b-1324-4d21-9810-595750df8493": {
13
+ "order": 1,
14
+ "height": 52,
15
+ "cells": {
16
+ "b57c9dd8-00d4-49c2-a382-e5cd6e45d935": "Park"
17
+ }
18
+ },
19
+ "d4999152-5c07-4c4b-9311-397e48033472": {
20
+ "order": 2,
21
+ "cells": {
22
+ "b57c9dd8-00d4-49c2-a382-e5cd6e45d935": "Yosemite"
23
+ }
24
+ }
25
+ }
26
+ }
27
+ ```
28
+
29
+ `headerRow` is optional. Only `true` shows a header row; the header row is the first displayed row and remains an ordinary row, numbered 1. Agents put column titles in its `cells`. When the header row is on, keep that title row first when sorting, reordering, or inserting rows.
30
+
31
+ Each entry in `columns` has a finite numeric `order` and may have a positive numeric `width`. The default width is 160 pixels. A positive finite width is clamped to 64–640 pixels; an absent, zero, negative, non-finite, or non-number value uses the default.
32
+
33
+ Each entry in `rows` has its own finite numeric `order`, a `cells` object, and may have a positive numeric `height`. The default height is 38 pixels. A positive finite height is clamped to 28–240 pixels; an absent, zero, negative, non-finite, or non-number value uses the default. `cells` is an object keyed by column key, never an array. Empty cells are left out. Cell values may be strings, finite numbers, or booleans; other values appear blank.
34
+
35
+ Column and row keys are opaque IDs. Never derive a key from a title or cell value, and never reuse a deleted key. `push` is the normal way to add one row or column. When writing a whole table in one `set`, generate a fresh random key, such as a UUID, for every row and column.
36
+
37
+ The page orders rows and columns by `order`, then by key when orders match. Give every row and column a distinct finite `order`. To insert between two entries, use a value between their orders. When adding at the end, use an `order` greater than the last displayed entry's. The page may renumber one axis when no numeric value fits.
38
+
39
+ The displayed letters and numbers are positions after ignored entries have been left out and the remaining entries have been ordered. Blank positions after stored entries are drawn positions; these drawn positions are not stored. For example, B3 in an empty table means creating columns A and B and rows 1 through 3, each with an `order`.
40
+
41
+ ## Change the table
42
+
43
+ Set the artifact ID once:
44
+
45
+ ```sh
46
+ export ARTIFACT_ID=<id>
47
+ ```
48
+
49
+ To replace the whole table deliberately, use fresh random keys in one command:
50
+
51
+ ```sh
52
+ tv resource json set --artifact "$ARTIFACT_ID" '{"headerRow":true,"columns":{"b57c9dd8-00d4-49c2-a382-e5cd6e45d935":{"order":1,"width":200}},"rows":{"514c6a2b-1324-4d21-9810-595750df8493":{"order":1,"height":52,"cells":{"b57c9dd8-00d4-49c2-a382-e5cd6e45d935":"Park"}},"d4999152-5c07-4c4b-9311-397e48033472":{"order":2,"cells":{"b57c9dd8-00d4-49c2-a382-e5cd6e45d935":"Yosemite"}}}}'
53
+ ```
54
+
55
+ For ordinary changes, update only the path you mean to change. Add a column with `push`, keep the returned key as `COLUMN_KEY`, then resize or reorder it:
56
+
57
+ ```sh
58
+ tv resource json push --artifact "$ARTIFACT_ID" columns '{"order":2}'
59
+ tv resource json set --artifact "$ARTIFACT_ID" "columns/$COLUMN_KEY/order" '0.5'
60
+ tv resource json set --artifact "$ARTIFACT_ID" "columns/$COLUMN_KEY/width" '200'
61
+ ```
62
+
63
+ Add a row with `push`, keep its returned key as `ROW_KEY`, then resize or reorder it:
64
+
65
+ ```sh
66
+ tv resource json push --artifact "$ARTIFACT_ID" rows '{"order":3,"cells":{}}'
67
+ tv resource json set --artifact "$ARTIFACT_ID" "rows/$ROW_KEY/order" '1.5'
68
+ tv resource json set --artifact "$ARTIFACT_ID" "rows/$ROW_KEY/height" '52'
69
+ ```
70
+
71
+ Write or clear one cell, and turn the header row off or on, with:
72
+
73
+ ```sh
74
+ tv resource json set --artifact "$ARTIFACT_ID" "rows/$ROW_KEY/cells/$COLUMN_KEY" '"Yosemite"'
75
+ tv resource json remove --artifact "$ARTIFACT_ID" "rows/$ROW_KEY/cells/$COLUMN_KEY"
76
+ tv resource json set --artifact "$ARTIFACT_ID" headerRow 'false'
77
+ tv resource json set --artifact "$ARTIFACT_ID" headerRow 'true'
78
+ ```
79
+
80
+ Remove the example row and column when they are no longer needed:
81
+
82
+ ```sh
83
+ tv resource json remove --artifact "$ARTIFACT_ID" "rows/$ROW_KEY"
84
+ tv resource json remove --artifact "$ARTIFACT_ID" "columns/$COLUMN_KEY"
85
+ ```
86
+
87
+ Clear the table while keeping its required containers with:
88
+
89
+ ```sh
90
+ tv resource json set --artifact "$ARTIFACT_ID" '{"columns":{},"rows":{}}'
91
+ ```
92
+
93
+ Do not write a cell below a row that does not exist, or a size below a row or column that does not exist. Deleting a column does not require removing its old cell values from rows; the page ignores cells whose column is absent. A person may be editing the same table while you work, so prefer path-level changes unless you intend to replace the whole table.
94
+
95
+ A stored number or boolean appears as text. If a person edits that cell, the page writes the edited value back as a string.
96
+
97
+ ## Data the page can read
98
+
99
+ The page tolerates a missing root value, missing `columns` or `rows`, ignored entries, invalid saved sizes, extra fields, and rows without a usable `cells` object. It ignores an entry without a finite numeric `order`. Do not repair an entry without an order: it may be a late cell or size write below an entry that another writer deleted.
100
+
101
+ A root value that is not an object, or a present `columns` or `rows` value that is not an object, shows an error page. The Table does not repair unreadable data. Supply a readable root object to recover it.
102
+
103
+ ## Adapt the template
104
+
105
+ Page markup is in `index.html`, behaviour is split between `page.js`, `model.js`, and `selection-model.js`, and presentation is in `styles.css`. The stylesheet uses Television foundation tokens and follows the active theme. Keep the store contract, tolerant reader, write plans, selection rules, and unreadable-data state aligned when changing the page.
106
+
107
+ Copied artifacts are independent. Changing this bundled template affects only artifacts created after the updated template is installed.
@@ -0,0 +1,4 @@
1
+ {
2
+ "columns": {},
3
+ "rows": {}
4
+ }
@@ -0,0 +1,6 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20">
2
+ <title>Table</title>
3
+ <rect x="1.5" y="2.5" width="17" height="15" rx="2.5" fill="#effcfb" stroke="#4a9d9e" stroke-width="1.25"/>
4
+ <path d="M4 2.5h12a2.5 2.5 0 0 1 2.5 2.5v2h-17V5A2.5 2.5 0 0 1 4 2.5Z" fill="#25a8a7"/>
5
+ <path d="M7 7v10M12.5 7v10M2 10.5h16M2 14h16" fill="none" stroke="#79bbbc" stroke-width="1.5"/>
6
+ </svg>
@@ -0,0 +1,15 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1">
6
+ <title>Table</title>
7
+ <link rel="stylesheet" href="/canonical/v2/styles.css?authoredForAppVersion=1.5.4">
8
+ <link rel="stylesheet" href="./styles.css">
9
+ <script type="module" src="/canonical/v2/components.js"></script>
10
+ </head>
11
+ <body>
12
+ <main class="table-page"><div class="table-resize-announcement" role="status"></div><div class="table-status" role="status"></div></main>
13
+ <script type="module" src="./page.js"></script>
14
+ </body>
15
+ </html>
@@ -0,0 +1,70 @@
1
+ {
2
+ "name": "Table",
3
+ "description": "An editable table to fill by hand or with an agent.",
4
+ "version": "1.0.0",
5
+ "icons": [
6
+ {
7
+ "src": "icon.svg",
8
+ "type": "image/svg+xml"
9
+ }
10
+ ],
11
+ "dataSchema": {
12
+ "type": "object",
13
+ "required": [
14
+ "columns",
15
+ "rows"
16
+ ],
17
+ "properties": {
18
+ "headerRow": {
19
+ "type": "boolean"
20
+ },
21
+ "columns": {
22
+ "type": "object",
23
+ "additionalProperties": {
24
+ "type": "object",
25
+ "required": [
26
+ "order"
27
+ ],
28
+ "properties": {
29
+ "order": {
30
+ "type": "number"
31
+ },
32
+ "width": {
33
+ "type": "number",
34
+ "exclusiveMinimum": 0
35
+ }
36
+ }
37
+ }
38
+ },
39
+ "rows": {
40
+ "type": "object",
41
+ "additionalProperties": {
42
+ "type": "object",
43
+ "required": [
44
+ "order",
45
+ "cells"
46
+ ],
47
+ "properties": {
48
+ "order": {
49
+ "type": "number"
50
+ },
51
+ "height": {
52
+ "type": "number",
53
+ "exclusiveMinimum": 0
54
+ },
55
+ "cells": {
56
+ "type": "object",
57
+ "additionalProperties": {
58
+ "type": [
59
+ "string",
60
+ "number",
61
+ "boolean"
62
+ ]
63
+ }
64
+ }
65
+ }
66
+ }
67
+ }
68
+ }
69
+ }
70
+ }
@@ -0,0 +1,164 @@
1
+ /** The minimum number of displayed positions on either axis. */
2
+ export const MINIMUM_AXIS_SIZE: number;
3
+
4
+ /** Display defaults and saved-size limits for both axes. */
5
+ export const AXIS_SIZES: {
6
+ columns: { field: "width"; defaultValue: number; minimum: number; maximum: number };
7
+ rows: { field: "height"; defaultValue: number; minimum: number; maximum: number };
8
+ };
9
+
10
+ /** The shared identity and order of a displayed stored row or column. */
11
+ export interface TableAxisEntry {
12
+ key: string;
13
+ order: number;
14
+ }
15
+
16
+ /** A tolerant, displayed column. */
17
+ export interface TableColumnEntry extends TableAxisEntry {
18
+ width: number;
19
+ }
20
+
21
+ /** A tolerant, displayed row. */
22
+ export interface TableRowEntry extends TableAxisEntry {
23
+ height: number;
24
+ cells: Record<string, string>;
25
+ }
26
+
27
+ /** The readable portion of a Table store value. */
28
+ export interface TableModel {
29
+ columns: TableColumnEntry[];
30
+ rows: TableRowEntry[];
31
+ headerRow: boolean;
32
+ }
33
+
34
+ /** A stored position in a displayed axis. */
35
+ export type StoredAxisItem<Entry extends TableAxisEntry = TableAxisEntry> = Entry & {
36
+ kind: "stored";
37
+ id: string;
38
+ };
39
+
40
+ /** An unstored position appended to a displayed axis. */
41
+ export interface DrawnAxisItem {
42
+ kind: "drawn";
43
+ id: string;
44
+ index: number;
45
+ }
46
+
47
+ /** Any displayed row or column position. */
48
+ export type DisplayAxisItem<Entry extends TableAxisEntry = TableAxisEntry> = StoredAxisItem<Entry> | DrawnAxisItem;
49
+
50
+ /** One path-level store update. */
51
+ export type TableWriteOperation =
52
+ | { kind: "set"; path: string[]; value: unknown }
53
+ | { kind: "remove"; path: string[] };
54
+
55
+ /**
56
+ * Fresh keys reserved before planning a drawn-position commit.
57
+ * Supply one key for every drawn position through the target on each drawn axis;
58
+ * planners ignore any keys after those positions.
59
+ */
60
+ export interface TableCommitKeys {
61
+ columns?: string[];
62
+ rows?: string[];
63
+ }
64
+
65
+ /** A zero-based cell position. */
66
+ export interface TableCellPosition {
67
+ rowIndex: number;
68
+ columnIndex: number;
69
+ }
70
+
71
+ /** An inclusive zero-based range on one displayed axis. */
72
+ export interface TableAxisRange {
73
+ start: number;
74
+ end: number;
75
+ }
76
+
77
+ /** A logical selection accepted by the clear planner. */
78
+ export type TableClearSelection =
79
+ | ({ kind: "cell" } & TableCellPosition)
80
+ | ({ kind: "rows" | "columns" } & TableAxisRange);
81
+
82
+ /** One new entry supplied to a renumbering transaction callback. */
83
+ export interface TableRenumberEntry {
84
+ key: string;
85
+ value: Record<string, unknown>;
86
+ }
87
+
88
+ /** A retry-safe insertion or append request for one axis. */
89
+ export type TableRenumberRequest =
90
+ | { mode: "append"; entries: TableRenumberEntry[] }
91
+ | { mode: "insert"; selectedKeys: string[]; side: "before" | "after"; entries: TableRenumberEntry[] };
92
+
93
+ /** A no-write outcome that the page reports as a failed save. */
94
+ export type TableFailedSaveReason = "multiple-renumbering-required";
95
+
96
+ /** Why a planner produces no store write. */
97
+ export type TableNoWriteReason =
98
+ | "cancelled"
99
+ | "unchanged"
100
+ | "empty-drawn"
101
+ | "unreadable"
102
+ | "invalid-size"
103
+ | "invalid-target"
104
+ | "missing-keys"
105
+ | "invalid-keys"
106
+ | "invalid-selection"
107
+ | "nothing-to-delete"
108
+ | "nothing-to-clear"
109
+ | TableFailedSaveReason;
110
+
111
+ /**
112
+ * A complete write plan, a retry-safe axis renumbering, or an intentional no-write outcome.
113
+ * For a renumber result, run the transaction first and apply `operations` only after it commits.
114
+ */
115
+ export type TablePlanResult =
116
+ | { kind: "operations"; operations: TableWriteOperation[] }
117
+ | { kind: "renumber"; axis: "rows" | "columns"; request: TableRenumberRequest; operations: TableWriteOperation[] }
118
+ | { kind: "no-write"; reason: TableNoWriteReason };
119
+
120
+ /** Orders keys the same way JSON store child events do. */
121
+ export function compareStoreKeys(left: string, right: string): number;
122
+
123
+ /** Reads a store value into the tolerant display model, or returns null when the root is unreadable. */
124
+ export function readTable(value: unknown): TableModel | null;
125
+
126
+ /** Adds stable stored identities and enough count-based drawn identities to reach four positions. */
127
+ export function displayAxis<Entry extends TableAxisEntry>(entries: Entry[]): DisplayAxisItem<Entry>[];
128
+
129
+ /** Chooses a strict order, null when the axis needs renumbering, or undefined for an invalid selection. */
130
+ export function insertionOrder(entries: TableAxisEntry[], selectedKeys: string[], side: "before" | "after"): number | null | undefined;
131
+
132
+ /** Chooses consecutive strict orders after an axis, or null when its end must be renumbered. */
133
+ export function ordersAtEnd(entries: TableAxisEntry[], count: number): number[] | null;
134
+
135
+ /** Creates a retry-safe callback that inserts or appends entries while renumbering one current axis. */
136
+ export function createAxisRenumberUpdate(request: TableRenumberRequest):
137
+ (current: unknown) => Record<string, unknown> | undefined;
138
+
139
+ /** Plans a cell commit; null text means that editing was cancelled. */
140
+ export function planCellCommit(value: unknown, target: TableCellPosition, openedText: string, text: string | null,
141
+ keys: TableCommitKeys): TablePlanResult;
142
+
143
+ /** Plans turning the header row on or off. */
144
+ export function planSetHeader(headerRow: boolean): TablePlanResult;
145
+
146
+ /**
147
+ * Plans one stored or drawn size change. `openedSize` is the size shown when resizing began;
148
+ * finite committed sizes clamp to the axis limits, while a non-finite size produces no write.
149
+ */
150
+ export function planResize(value: unknown, axis: "rows" | "columns", targetIndex: number,
151
+ openedSize: number, committedSize: number, keys: string[]): TablePlanResult;
152
+
153
+ /** Plans adding one row or column after storing every drawn position on that axis. */
154
+ export function planAdd(value: unknown, axis: "rows" | "columns", keys: string[]): TablePlanResult;
155
+
156
+ /** Plans inserting one row or column and only the drawn positions before it. */
157
+ export function planInsert(value: unknown, axis: "rows" | "columns", selection: TableAxisRange,
158
+ side: "before" | "after", keys: string[]): TablePlanResult;
159
+
160
+ /** Plans removing the stored entries in a displayed row or column range. */
161
+ export function planDelete(value: unknown, axis: "rows" | "columns", selection: TableAxisRange): TablePlanResult;
162
+
163
+ /** Plans clearing selected non-empty cells without removing structure. */
164
+ export function planClear(value: unknown, selection: TableClearSelection): TablePlanResult;