@superdoc-dev/cli 0.22.2 → 0.23.1

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.
@@ -49,7 +49,8 @@ ACTIONS (superdoc_perform_action with flat args)
49
49
  - redo_changes: steps (1-25, default 1). Steps history FORWARD to re-apply edits a prior undo removed — THE recovery for an undo overshoot. Only reaches the forward branch until a NEW edit is made.
50
50
  - attach_numbering: anchorText (text of the block) or nodeId, likeMarker (rendered marker of a sibling clause, e.g. "10."). Makes an EXISTING block a numbered clause at the same scheme/level — "make this the section 11 heading" in a clause-numbered document is exactly this (it will render as the next number).
51
51
  - replace_text: edits:[{find,replace}], caseSensitive default false. selector to scope. changeMode:"tracked" if asked. The receipt reports editsApplied and editsSkipped per find — READ IT: a skipped find is not in the selected block; re-target instead of assuming success.
52
- - delete_text: finds:[string]. selector to scope deletions to ONE block — REQUIRED for whitespace-only finds (unscoped whitespace matches document-wide and is refused). changeMode:"tracked" if asked.
52
+ - delete_text: finds:[string]. selector to scope deletions to ONE block — REQUIRED for whitespace-only finds (unscoped whitespace matches document-wide and is refused). changeMode:"tracked" if asked. Deletes TEXT ONLY: the block survives, so a list item keeps its bullet/number and an accepted tracked deletion leaves an empty numbered item behind. To remove the item itself use delete_blocks.
53
+ - delete_blocks: selectors:[…], each resolving to ONE block (list item, paragraph or heading). changeMode:"tracked" if asked. THE way to DELETE a whole LIST ITEM, paragraph or heading — the bullet/number goes with it and the remaining items renumber. "Delete the first item under Article II" / "remove that clause" is exactly this, NOT delete_text. Pass every target in ONE call. Use delete_table for a whole table.
53
54
  - rewrite_block: selector, text. Inspect first to gather current text; never ask the user to paste text already in the doc.
54
55
  - create_table: rows, columns, optional cellTexts (2D array). rows counts ALL rows INCLUDING the header — header plus one data row is rows:2. placement defaults to document end. changeMode:"tracked" if asked ("track-changes table") — the insertion itself becomes a tracked change.
55
56
  - comment_paragraphs: commentText. excludeBlockQuotes:true to skip block quotes. Applies the SAME text to every BODY paragraph (it does NOT comment the title/heading) — broadcast notes only, never review feedback (see REVIEW rule). To comment a heading too, add_comments on it explicitly.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superdoc-dev/cli",
3
- "version": "0.22.2",
3
+ "version": "0.23.1",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "superdoc": "./dist/index.js"
@@ -26,21 +26,21 @@
26
26
  "lib0": "^0.2.114",
27
27
  "typescript": "^5.9.2",
28
28
  "y-protocols": "^1.0.6",
29
+ "@superdoc-dev/sdk": "1.22.0",
29
30
  "@superdoc/document-api": "0.1.0-alpha.0",
30
- "@superdoc-dev/sdk": "1.21.2",
31
- "@superdoc/super-editor": "0.0.1",
32
- "superdoc": "1.45.1"
31
+ "superdoc": "1.46.0",
32
+ "@superdoc/super-editor": "0.0.1"
33
33
  },
34
34
  "module": "src/index.ts",
35
35
  "publishConfig": {
36
36
  "access": "public"
37
37
  },
38
38
  "optionalDependencies": {
39
- "@superdoc-dev/cli-darwin-arm64": "0.22.2",
40
- "@superdoc-dev/cli-linux-x64": "0.22.2",
41
- "@superdoc-dev/cli-linux-arm64": "0.22.2",
42
- "@superdoc-dev/cli-darwin-x64": "0.22.2",
43
- "@superdoc-dev/cli-windows-x64": "0.22.2"
39
+ "@superdoc-dev/cli-darwin-arm64": "0.23.1",
40
+ "@superdoc-dev/cli-linux-x64": "0.23.1",
41
+ "@superdoc-dev/cli-darwin-x64": "0.23.1",
42
+ "@superdoc-dev/cli-linux-arm64": "0.23.1",
43
+ "@superdoc-dev/cli-windows-x64": "0.23.1"
44
44
  },
45
45
  "scripts": {
46
46
  "predev": "node scripts/ensure-superdoc-build.js",