@superdoc/sdk 2.15.0-next.7 → 2.15.0-next.9

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.
@@ -90,7 +90,7 @@ const ACTION_DEFINITIONS = {
90
90
  operations: ['comments.create'],
91
91
  },
92
92
  rewrite_block: {
93
- hint: "selector, text, changeMode? — REPLACES the whole block text using the document API's formatting preservation. For appending a NEW paragraph/clause use insert_paragraphs, and for small wording edits prefer replace_text with a minimal find span",
93
+ hint: 'selector, text, changeMode? — REPLACES the whole block text. Omitted tab controls are deleted: for a tab-aligned paragraph, use replace_text with a minimal find span to change a name/placeholder instead. For appending a NEW paragraph/clause use insert_paragraphs',
94
94
  group: 'Text/structure actions',
95
95
  groupOrder: 7,
96
96
  args: ['text', 'selector', 'changeMode', 'evidence'],
@@ -488,7 +488,7 @@ export declare const ACTION_DEFINITIONS: {
488
488
  readonly operations: readonly ["comments.create"];
489
489
  };
490
490
  readonly rewrite_block: {
491
- readonly hint: "selector, text, changeMode? — REPLACES the whole block text using the document API's formatting preservation. For appending a NEW paragraph/clause use insert_paragraphs, and for small wording edits prefer replace_text with a minimal find span";
491
+ readonly hint: "selector, text, changeMode? — REPLACES the whole block text. Omitted tab controls are deleted: for a tab-aligned paragraph, use replace_text with a minimal find span to change a name/placeholder instead. For appending a NEW paragraph/clause use insert_paragraphs";
492
492
  readonly group: "Text/structure actions";
493
493
  readonly groupOrder: 7;
494
494
  readonly args: readonly ["text", "selector", "changeMode", "evidence"];
@@ -87,7 +87,7 @@ export const ACTION_DEFINITIONS = {
87
87
  operations: ['comments.create'],
88
88
  },
89
89
  rewrite_block: {
90
- hint: "selector, text, changeMode? — REPLACES the whole block text using the document API's formatting preservation. For appending a NEW paragraph/clause use insert_paragraphs, and for small wording edits prefer replace_text with a minimal find span",
90
+ hint: 'selector, text, changeMode? — REPLACES the whole block text. Omitted tab controls are deleted: for a tab-aligned paragraph, use replace_text with a minimal find span to change a name/placeholder instead. For appending a NEW paragraph/clause use insert_paragraphs',
91
91
  group: 'Text/structure actions',
92
92
  groupOrder: 7,
93
93
  args: ['text', 'selector', 'changeMode', 'evidence'],
@@ -154,6 +154,9 @@ function normalizeSnapshotBlock(value, fallbackOrdinal, blockTextLimit) {
154
154
  nodeType: asString(rec.nodeType, 'paragraph'),
155
155
  text,
156
156
  textPreview,
157
+ ...(typeof rec.tabCount === 'number' && Number.isInteger(rec.tabCount) && rec.tabCount >= 0
158
+ ? { tabCount: rec.tabCount }
159
+ : {}),
157
160
  styleId: typeof rec.styleId === 'string' ? rec.styleId : null,
158
161
  headingLevel: typeof rec.headingLevel === 'number' ? rec.headingLevel : undefined,
159
162
  ...(asRecord(rec.numbering)
@@ -26,6 +26,7 @@ export type SnapshotBlock = {
26
26
  nodeType: string;
27
27
  text: string;
28
28
  textPreview: string | null;
29
+ tabCount?: number;
29
30
  styleId?: string | null;
30
31
  headingLevel?: number;
31
32
  /**
@@ -152,6 +152,9 @@ export function normalizeSnapshotBlock(value, fallbackOrdinal, blockTextLimit) {
152
152
  nodeType: asString(rec.nodeType, 'paragraph'),
153
153
  text,
154
154
  textPreview,
155
+ ...(typeof rec.tabCount === 'number' && Number.isInteger(rec.tabCount) && rec.tabCount >= 0
156
+ ? { tabCount: rec.tabCount }
157
+ : {}),
155
158
  styleId: typeof rec.styleId === 'string' ? rec.styleId : null,
156
159
  headingLevel: typeof rec.headingLevel === 'number' ? rec.headingLevel : undefined,
157
160
  ...(asRecord(rec.numbering)