doculi 5.11.40 → 5.11.42
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/dist/cli.js +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{tui-B2SvQVHR.js → tui-CogHEvyJ.js} +7 -10
- package/package.json +5 -5
package/dist/cli.js
CHANGED
|
@@ -1195,7 +1195,7 @@ function registerSetMetadataCommand(program) {
|
|
|
1195
1195
|
}
|
|
1196
1196
|
//#endregion
|
|
1197
1197
|
//#region package.json
|
|
1198
|
-
var version = "5.11.
|
|
1198
|
+
var version = "5.11.42";
|
|
1199
1199
|
//#endregion
|
|
1200
1200
|
//#region src/program.ts
|
|
1201
1201
|
function createProgram() {
|
|
@@ -1223,7 +1223,7 @@ function createProgram() {
|
|
|
1223
1223
|
//#region src/cli-main.ts
|
|
1224
1224
|
async function launchTui(startPath, signal) {
|
|
1225
1225
|
try {
|
|
1226
|
-
const { runTui } = await import("./tui-
|
|
1226
|
+
const { runTui } = await import("./tui-CogHEvyJ.js");
|
|
1227
1227
|
await runTui({
|
|
1228
1228
|
startPath,
|
|
1229
1229
|
signal
|
package/dist/index.cjs
CHANGED
package/dist/index.js
CHANGED
|
@@ -778,7 +778,7 @@ function tableAt(doc, tableIndex) {
|
|
|
778
778
|
return doc.editor.tables()[tableIndex];
|
|
779
779
|
}
|
|
780
780
|
function tableCellAt(table, row, column) {
|
|
781
|
-
return table.
|
|
781
|
+
return table.gridRows()[row]?.[column]?.cell;
|
|
782
782
|
}
|
|
783
783
|
function shapeAt(doc, containerIndex, shapeIndex) {
|
|
784
784
|
if (doc.format === "odg") return doc.editor.pages()[containerIndex]?.shapes()[shapeIndex];
|
|
@@ -2577,9 +2577,7 @@ function paragraphBadges(paragraph) {
|
|
|
2577
2577
|
return badges.length === 0 ? "" : ` [${badges.join(" ")}]`;
|
|
2578
2578
|
}
|
|
2579
2579
|
function tableSummary(table) {
|
|
2580
|
-
|
|
2581
|
-
const columnCount = rows[0]?.cells().length ?? 0;
|
|
2582
|
-
return `Table ${rows.length}×${columnCount}`;
|
|
2580
|
+
return `Table ${table.rows().length}×${table.gridColumnCount()}`;
|
|
2583
2581
|
}
|
|
2584
2582
|
function listSummary(list, index) {
|
|
2585
2583
|
return `List ${index} (${list.itemCount} item${list.itemCount === 1 ? "" : "s"})`;
|
|
@@ -3438,9 +3436,9 @@ function TableViewScreen() {
|
|
|
3438
3436
|
const screen = currentScreen(state);
|
|
3439
3437
|
const doc = paragraphFamilyDocument(state.openDocument);
|
|
3440
3438
|
const table = screen.kind === "tableView" && doc !== void 0 ? liveTableAt(doc, screen.blockIndex) : void 0;
|
|
3441
|
-
const rows = table === void 0 ? [] : table.
|
|
3439
|
+
const rows = table === void 0 ? [] : table.gridRows();
|
|
3442
3440
|
const rowCount = rows.length;
|
|
3443
|
-
const columnCount =
|
|
3441
|
+
const columnCount = table === void 0 ? 0 : table.gridColumnCount();
|
|
3444
3442
|
const clampedRow = rowCount === 0 ? 0 : Math.min(cursor.row, rowCount - 1);
|
|
3445
3443
|
const clampedColumn = columnCount === 0 ? 0 : Math.min(cursor.column, columnCount - 1);
|
|
3446
3444
|
const commitMerge = (anchor) => {
|
|
@@ -3555,7 +3553,7 @@ function TableViewScreen() {
|
|
|
3555
3553
|
rows.length === 0 ? /* @__PURE__ */ jsx(Text, {
|
|
3556
3554
|
dimColor: true,
|
|
3557
3555
|
children: "This table has no rows."
|
|
3558
|
-
}) : rows.map((row, rowIndex) => /* @__PURE__ */ jsx(Box, { children: row.
|
|
3556
|
+
}) : rows.map((row, rowIndex) => /* @__PURE__ */ jsx(Box, { children: row.map((position, columnIndex) => {
|
|
3559
3557
|
const isSelected = rowIndex === clampedRow && columnIndex === clampedColumn;
|
|
3560
3558
|
const isAnchor = rowIndex === mergeAnchor?.row && columnIndex === mergeAnchor.column;
|
|
3561
3559
|
return /* @__PURE__ */ jsx(Box, {
|
|
@@ -3565,7 +3563,7 @@ function TableViewScreen() {
|
|
|
3565
3563
|
children: /* @__PURE__ */ jsx(Text, {
|
|
3566
3564
|
color: selectedColor(isSelected),
|
|
3567
3565
|
inverse: isSelected,
|
|
3568
|
-
children: truncatePreview(cell.text, 14)
|
|
3566
|
+
children: position?.isAnchor === true ? truncatePreview(position.cell.text, 14) : ""
|
|
3569
3567
|
})
|
|
3570
3568
|
}, columnIndex);
|
|
3571
3569
|
}) }, rowIndex)),
|
|
@@ -3585,8 +3583,7 @@ function TableCellDetailScreen() {
|
|
|
3585
3583
|
const screen = currentScreen(state);
|
|
3586
3584
|
const doc = paragraphFamilyDocument(state.openDocument);
|
|
3587
3585
|
const table = screen.kind === "tableCellDetail" && doc !== void 0 ? liveTableAt(doc, screen.blockIndex) : void 0;
|
|
3588
|
-
const
|
|
3589
|
-
const cell = screen.kind === "tableCellDetail" && row !== void 0 ? row.cells()[screen.col] : void 0;
|
|
3586
|
+
const cell = screen.kind === "tableCellDetail" && table !== void 0 ? table.gridRows()[screen.row]?.[screen.col]?.cell : void 0;
|
|
3590
3587
|
useInput((input, key) => {
|
|
3591
3588
|
if (cell === void 0) return;
|
|
3592
3589
|
if (key.escape) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "doculi",
|
|
3
|
-
"version": "5.11.
|
|
3
|
+
"version": "5.11.42",
|
|
4
4
|
"description": "CLI and interactive Ink TUI for documents.js: every docx/pptx/odt/odp/ods/odg/odf/pdf/odm/odb/xlsx/csv/svg/markdown/rtf conversion, bridge, and editor as a scriptable command or a terminal app.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -68,9 +68,9 @@
|
|
|
68
68
|
"license": "MIT",
|
|
69
69
|
"dependencies": {
|
|
70
70
|
"commander": "15.0.0",
|
|
71
|
-
"document-outline.js": "3.9.
|
|
72
|
-
"document-schema.js": "7.
|
|
73
|
-
"documents.js": "
|
|
71
|
+
"document-outline.js": "3.9.21",
|
|
72
|
+
"document-schema.js": "7.13.0",
|
|
73
|
+
"documents.js": "10.0.0",
|
|
74
74
|
"ink": "7.1.1",
|
|
75
75
|
"ink-text-input": "6.0.0",
|
|
76
76
|
"react": "19.2.8"
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"eslint": "10.8.1",
|
|
88
88
|
"husky": "9.1.7",
|
|
89
89
|
"ink-testing-library": "4.0.0",
|
|
90
|
-
"odf.js": "
|
|
90
|
+
"odf.js": "10.0.0",
|
|
91
91
|
"publint": "0.3.22",
|
|
92
92
|
"semantic-release": "25.0.9",
|
|
93
93
|
"tsdown": "0.22.14",
|