doculi 5.12.28 → 5.12.30

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 CHANGED
@@ -981,13 +981,13 @@ function leafKindLabel(leaf) {
981
981
  if ("objectKind" in leaf) return leaf.objectKind;
982
982
  return "formula";
983
983
  }
984
- function appendOutlineLines(children, depth, lines) {
984
+ function appendOutlineLines(children, depth, sink) {
985
985
  for (const child of children) if (isOutlineNode(child)) {
986
- lines.push(`${INDENT.repeat(depth)}${singleLineText(child.text)}`);
987
- appendOutlineLines(child.children, depth + 1, lines);
986
+ sink.lines.push(`${INDENT.repeat(depth)}${singleLineText(child.text)}`);
987
+ appendOutlineLines(child.children, depth + 1, sink);
988
988
  } else {
989
989
  const text = singleLineText(outlineLeafText(child));
990
- lines.push(text === "" ? `${INDENT.repeat(depth)}[${leafKindLabel(child)}]` : `${INDENT.repeat(depth)}${text}`);
990
+ sink.lines.push(text === "" ? `${INDENT.repeat(depth)}[${leafKindLabel(child)}]` : `${INDENT.repeat(depth)}${text}`);
991
991
  }
992
992
  }
993
993
  function resolveSourceFormat(input, from) {
@@ -1028,7 +1028,7 @@ async function runOutline(input, options) {
1028
1028
  return 0;
1029
1029
  }
1030
1030
  const lines = [];
1031
- appendOutlineLines(outline, 0, lines);
1031
+ appendOutlineLines(outline, 0, { lines });
1032
1032
  if (lines.length > 0) process.stdout.write(`${lines.join("\n")}\n`);
1033
1033
  return 0;
1034
1034
  } catch (error) {
@@ -1195,7 +1195,7 @@ function registerSetMetadataCommand(program) {
1195
1195
  }
1196
1196
  //#endregion
1197
1197
  //#region package.json
1198
- var version = "5.12.28";
1198
+ var version = "5.12.30";
1199
1199
  //#endregion
1200
1200
  //#region src/program.ts
1201
1201
  function createProgram() {
package/dist/index.cjs CHANGED
@@ -1332,13 +1332,13 @@ function leafKindLabel(leaf) {
1332
1332
  if ("objectKind" in leaf) return leaf.objectKind;
1333
1333
  return "formula";
1334
1334
  }
1335
- function appendOutlineLines(children, depth, lines) {
1335
+ function appendOutlineLines(children, depth, sink) {
1336
1336
  for (const child of children) if ((0, document_outline_js.isOutlineNode)(child)) {
1337
- lines.push(`${INDENT.repeat(depth)}${singleLineText(child.text)}`);
1338
- appendOutlineLines(child.children, depth + 1, lines);
1337
+ sink.lines.push(`${INDENT.repeat(depth)}${singleLineText(child.text)}`);
1338
+ appendOutlineLines(child.children, depth + 1, sink);
1339
1339
  } else {
1340
1340
  const text = singleLineText((0, document_outline_js.outlineLeafText)(child));
1341
- lines.push(text === "" ? `${INDENT.repeat(depth)}[${leafKindLabel(child)}]` : `${INDENT.repeat(depth)}${text}`);
1341
+ sink.lines.push(text === "" ? `${INDENT.repeat(depth)}[${leafKindLabel(child)}]` : `${INDENT.repeat(depth)}${text}`);
1342
1342
  }
1343
1343
  }
1344
1344
  function resolveSourceFormat(input, from) {
@@ -1379,7 +1379,7 @@ async function runOutline(input, options) {
1379
1379
  return 0;
1380
1380
  }
1381
1381
  const lines = [];
1382
- appendOutlineLines(outline, 0, lines);
1382
+ appendOutlineLines(outline, 0, { lines });
1383
1383
  if (lines.length > 0) process.stdout.write(`${lines.join("\n")}\n`);
1384
1384
  return 0;
1385
1385
  } catch (error) {
@@ -1546,7 +1546,7 @@ function registerSetMetadataCommand(program) {
1546
1546
  }
1547
1547
  //#endregion
1548
1548
  //#region package.json
1549
- var version = "5.12.28";
1549
+ var version = "5.12.30";
1550
1550
  //#endregion
1551
1551
  //#region src/program.ts
1552
1552
  function createProgram() {
package/dist/index.js CHANGED
@@ -1331,13 +1331,13 @@ function leafKindLabel(leaf) {
1331
1331
  if ("objectKind" in leaf) return leaf.objectKind;
1332
1332
  return "formula";
1333
1333
  }
1334
- function appendOutlineLines(children, depth, lines) {
1334
+ function appendOutlineLines(children, depth, sink) {
1335
1335
  for (const child of children) if (isOutlineNode(child)) {
1336
- lines.push(`${INDENT.repeat(depth)}${singleLineText(child.text)}`);
1337
- appendOutlineLines(child.children, depth + 1, lines);
1336
+ sink.lines.push(`${INDENT.repeat(depth)}${singleLineText(child.text)}`);
1337
+ appendOutlineLines(child.children, depth + 1, sink);
1338
1338
  } else {
1339
1339
  const text = singleLineText(outlineLeafText(child));
1340
- lines.push(text === "" ? `${INDENT.repeat(depth)}[${leafKindLabel(child)}]` : `${INDENT.repeat(depth)}${text}`);
1340
+ sink.lines.push(text === "" ? `${INDENT.repeat(depth)}[${leafKindLabel(child)}]` : `${INDENT.repeat(depth)}${text}`);
1341
1341
  }
1342
1342
  }
1343
1343
  function resolveSourceFormat(input, from) {
@@ -1378,7 +1378,7 @@ async function runOutline(input, options) {
1378
1378
  return 0;
1379
1379
  }
1380
1380
  const lines = [];
1381
- appendOutlineLines(outline, 0, lines);
1381
+ appendOutlineLines(outline, 0, { lines });
1382
1382
  if (lines.length > 0) process.stdout.write(`${lines.join("\n")}\n`);
1383
1383
  return 0;
1384
1384
  } catch (error) {
@@ -1545,7 +1545,7 @@ function registerSetMetadataCommand(program) {
1545
1545
  }
1546
1546
  //#endregion
1547
1547
  //#region package.json
1548
- var version = "5.12.28";
1548
+ var version = "5.12.30";
1549
1549
  //#endregion
1550
1550
  //#region src/program.ts
1551
1551
  function createProgram() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "doculi",
3
- "version": "5.12.28",
3
+ "version": "5.12.30",
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.10.16",
72
- "document-schema.js": "7.15.0",
73
- "documents.js": "14.4.19",
71
+ "document-outline.js": "3.10.17",
72
+ "document-schema.js": "7.15.1",
73
+ "documents.js": "14.4.21",
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": "11.1.4",
90
+ "odf.js": "11.1.5",
91
91
  "publint": "0.3.22",
92
92
  "semantic-release": "25.0.9",
93
93
  "tsdown": "0.22.14",