superdoc 2.24.0-next.1 → 2.24.0-next.11

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 (68) hide show
  1. package/dist/chunks/{create-super-doc-ui-DFNXiKvQ.es.js → create-super-doc-ui-8UTu16Lw.es.js} +229 -82
  2. package/dist/chunks/{create-super-doc-ui-D_FbXpOQ.cjs → create-super-doc-ui-bTFGKVRb.cjs} +229 -82
  3. package/dist/collaboration-upgrade-engine.cjs +1 -1
  4. package/dist/collaboration-upgrade-engine.es.js +1 -1
  5. package/dist/document-api/src/authorities/authorities.types.d.ts +2 -0
  6. package/dist/document-api/src/bookmarks/bookmarks.types.d.ts +1 -0
  7. package/dist/document-api/src/capabilities/html-markdown-support.d.ts +2 -4
  8. package/dist/document-api/src/captions/captions.types.d.ts +1 -0
  9. package/dist/document-api/src/citations/citations.types.d.ts +2 -0
  10. package/dist/document-api/src/content-controls/content-controls.types.d.ts +1 -0
  11. package/dist/document-api/src/contract/command-catalog.d.ts +1 -1
  12. package/dist/document-api/src/contract/operation-definitions.d.ts +34 -6
  13. package/dist/document-api/src/cross-refs/cross-refs.types.d.ts +1 -0
  14. package/dist/document-api/src/fields/fields.types.d.ts +1 -0
  15. package/dist/document-api/src/footnotes/footnotes.types.d.ts +2 -0
  16. package/dist/document-api/src/get/get.d.ts +2 -1
  17. package/dist/document-api/src/hyperlinks/hyperlinks.types.d.ts +1 -0
  18. package/dist/document-api/src/images/images.types.d.ts +2 -0
  19. package/dist/document-api/src/index/index.types.d.ts +2 -0
  20. package/dist/document-api/src/index.d.ts +15 -12
  21. package/dist/document-api/src/inline-semantics/token-sets.d.ts +11 -0
  22. package/dist/document-api/src/insert/insert.d.ts +7 -1
  23. package/dist/document-api/src/lists/lists.types.d.ts +10 -0
  24. package/dist/document-api/src/paragraphs/paragraphs.types.d.ts +3 -0
  25. package/dist/document-api/src/receipt-bridge.d.ts +1 -0
  26. package/dist/document-api/src/replace/replace.d.ts +31 -4
  27. package/dist/document-api/src/sections/sections.types.d.ts +4 -1
  28. package/dist/document-api/src/selection/selection.d.ts +9 -2
  29. package/dist/document-api/src/selection/selection.types.d.ts +57 -8
  30. package/dist/document-api/src/styles/apply.d.ts +5 -0
  31. package/dist/document-api/src/styles/catalog.d.ts +40 -19
  32. package/dist/document-api/src/styles/create.d.ts +160 -0
  33. package/dist/document-api/src/styles/index.d.ts +8 -4
  34. package/dist/document-api/src/styles/registry.d.ts +34 -2
  35. package/dist/document-api/src/styles/schema.d.ts +24 -5
  36. package/dist/document-api/src/styles/theme.d.ts +32 -0
  37. package/dist/document-api/src/styles/validation.d.ts +11 -2
  38. package/dist/document-api/src/templates/apply.d.ts +13 -15
  39. package/dist/document-api/src/toc/toc.types.d.ts +3 -0
  40. package/dist/document-api/src/types/blocks.types.d.ts +6 -1
  41. package/dist/document-api/src/types/create.types.d.ts +3 -1
  42. package/dist/document-api/src/types/fragment.d.ts +3 -0
  43. package/dist/document-api/src/types/mutation-plan.types.d.ts +4 -0
  44. package/dist/document-api/src/types/query-match.types.d.ts +43 -5
  45. package/dist/document-api/src/types/receipt.d.ts +8 -0
  46. package/dist/document-api/src/types/sd-contract.d.ts +2 -0
  47. package/dist/document-api/src/types/sd-props.d.ts +54 -14
  48. package/dist/document-api/src/types/sd-styles.d.ts +58 -3
  49. package/dist/document-api/src/types/table-operations.types.d.ts +2 -0
  50. package/dist/document-api/src/write/write.d.ts +4 -2
  51. package/dist/public/ui-react.cjs +1 -1
  52. package/dist/public/ui-react.es.js +1 -1
  53. package/dist/public/ui-vue.cjs +1 -1
  54. package/dist/public/ui-vue.es.js +1 -1
  55. package/dist/public/ui.cjs +1 -1
  56. package/dist/public/ui.es.js +1 -1
  57. package/dist/style.css +87 -87
  58. package/dist/style.layered.css +87 -87
  59. package/dist/superdoc/src/core/editor-runtime/v2/v2-session-shortcut-routes.d.ts +2 -0
  60. package/dist/superdoc/src/public/ui/types.d.ts +22 -0
  61. package/dist/superdoc/src/public/ui.d.cts +4 -0
  62. package/dist/superdoc/src/public/ui.d.ts +1 -1
  63. package/dist/superdoc.cjs +110 -49
  64. package/dist/superdoc.es.js +110 -49
  65. package/dist-cdn/style.layered.css +1 -1
  66. package/dist-cdn/superdoc.min.css +1 -1
  67. package/dist-cdn/superdoc.min.js +42 -42
  68. package/package.json +2 -2
@@ -4,6 +4,7 @@ import { TextSelector, NodeSelector } from './query.js';
4
4
  import { DiscoveryItem, DiscoveryResult } from './discovery.js';
5
5
  import { InlineToggleDirective } from './style-policy.types.js';
6
6
  import { StoryLocator } from './story.types.js';
7
+ import { StyleCatalogPreviewSources } from '../styles/catalog.js';
7
8
  export type CardinalityRequirement = 'any' | 'first' | 'exactlyOne' | 'all';
8
9
  /** Maximum total length for a match snippet (D11). */
9
10
  export declare const SNIPPET_MAX_LENGTH = 500;
@@ -27,12 +28,32 @@ export interface MatchDirectStyles {
27
28
  underline: InlineToggleDirective;
28
29
  strike: InlineToggleDirective;
29
30
  }
30
- /** Effective visual states: what the user sees after style cascade resolution. */
31
+ /**
32
+ * Where an effective font or color came from: set as a literal value, or a
33
+ * theme reference (with tint/shade). Same vocabulary as catalog preview sources.
34
+ */
35
+ export type MatchEffectiveSources = StyleCatalogPreviewSources;
36
+ /**
37
+ * Effective visual states: what the user sees after style cascade resolution
38
+ * (direct run formatting, character style, paragraph style chain, table style,
39
+ * document defaults, theme). The optional values are present when the cascade
40
+ * resolved them; `meta.effectiveResolved` says whether it ran.
41
+ */
31
42
  export interface MatchEffectiveStyles {
32
43
  bold: boolean;
33
44
  italic: boolean;
34
45
  underline: boolean;
35
46
  strike: boolean;
47
+ /** 6-digit lowercase hex with `#` prefix. Theme colors are resolved, tint/shade applied. */
48
+ color?: string;
49
+ /** 6-digit lowercase hex with `#` prefix. */
50
+ highlight?: string;
51
+ /** Latin-track font family. Theme fonts are resolved to the theme's typeface. */
52
+ fontFamily?: string;
53
+ /** Font size in points, rounded to 1 decimal place. */
54
+ fontSizePt?: number;
55
+ /** Origin of `fontFamily` and `color`. A value without a source is absent. */
56
+ sources?: MatchEffectiveSources;
36
57
  }
37
58
  /**
38
59
  * Two-layer inline style state for a single run.
@@ -171,16 +192,33 @@ export type QueryMatchItem = DiscoveryItem<QueryMatchDomain>;
171
192
  export type TextMatchItem = DiscoveryItem<TextMatchDomain>;
172
193
  /** Node match item (blocks.length === 0). */
173
194
  export type NodeMatchItem = DiscoveryItem<NodeMatchDomain>;
195
+ /**
196
+ * Why `styles.effective` could not be fully resolved for a match result.
197
+ *
198
+ * - `tracked-view-unresolved`: tracked-view matches (`includeDeletedText`) are not cascade-resolved.
199
+ * - `theme-fallback`: a theme font or color came from the default Office theme because the
200
+ * document's theme part or color scheme is missing or unreadable.
201
+ * - `style-parts-unavailable`: the document's style parts were not loaded, so styles were not applied.
202
+ * - `run-projection-unavailable`: the matched text could not be split into runs.
203
+ */
204
+ export type QueryMatchDiagnosticCode = 'tracked-view-unresolved' | 'theme-fallback' | 'style-parts-unavailable' | 'run-projection-unavailable';
205
+ export interface QueryMatchDiagnostic {
206
+ code: QueryMatchDiagnosticCode;
207
+ message: string;
208
+ }
174
209
  /**
175
210
  * Metadata for `query.match`: always present on the output envelope.
176
211
  *
177
- * - `effectiveResolved: true`: converter context was available; `styles.effective`
178
- * on every run reflects full cascade resolution.
179
- * - `effectiveResolved: false`: converter context was unavailable (headless/non-DOCX);
180
- * `styles.effective` is derived from `direct` only.
212
+ * - `effectiveResolved: true`: `styles.effective` on every run reflects full
213
+ * style cascade and theme resolution.
214
+ * - `effectiveResolved: false`: at least one run was not fully resolved, or the
215
+ * engine derives `styles.effective` from `direct` only. `diagnostics`, when
216
+ * present, says why.
181
217
  */
182
218
  export interface QueryMatchMeta {
183
219
  effectiveResolved: boolean;
220
+ /** Reasons the result is not fully resolved. Absent when there are none. */
221
+ diagnostics?: QueryMatchDiagnostic[];
184
222
  }
185
223
  export interface QueryMatchInput {
186
224
  /** Selector for query.match. Text selectors may opt into deleted tracked text via `includeDeletedText`. */
@@ -2,6 +2,7 @@ import { BlockNavigationAddress, EntityAddress, SelectionTarget, TextAddress, Tr
2
2
  import { BlockNodeAddress } from './base.js';
3
3
  import { BookmarkAddress } from '../bookmarks/bookmarks.types.js';
4
4
  import { StoryLocator } from './story.types.js';
5
+ import { ChangeMode } from '../write/write.js';
5
6
  export type ReceiptInsert = TrackedChangeAddress;
6
7
  export type ReceiptEntity = EntityAddress;
7
8
  export type AffectedRef = TextAddress | BookmarkAddress | EntityAddress | BlockNavigationAddress;
@@ -109,6 +110,13 @@ export interface ReceiptEffects {
109
110
  }
110
111
  export type ReceiptSuccess = {
111
112
  success: true;
113
+ /**
114
+ * Mode in which this call's document content was committed. An edit folded
115
+ * into the author's existing insertion is tracked; auxiliary style and
116
+ * numbering definition writes do not change the content mode. Omitted for
117
+ * dry runs, no-ops, and operations that do not author reviewable content.
118
+ */
119
+ appliedChangeMode?: ChangeMode;
112
120
  /**
113
121
  * Convenience id for operations that create exactly one primary durable entity.
114
122
  * Generic consumers should prefer `inserted`; this field exists for simple
@@ -23,6 +23,8 @@ export interface SDError {
23
23
  export type MutationResolutionTarget = TextAddress | BlockNodeAddress | BodyStoryLocator;
24
24
  export interface SDMutationReceipt {
25
25
  success: boolean;
26
+ /** Effective content mode on a committed success; absent for no-op and dry-run calls. */
27
+ appliedChangeMode?: ReceiptSuccess['appliedChangeMode'];
26
28
  /** Rich HTML/Markdown fidelity outcome, when this receipt came from a rich write. */
27
29
  outcome?: SDHtmlMarkdownOutcome;
28
30
  failure?: SDError;
@@ -1,10 +1,4 @@
1
- /**
2
- * SDM/1 property models: run, paragraph, table, list, image, drawing props.
3
- *
4
- * These define the direct formatting ("authored") property bags carried by
5
- * style-bearing nodes. Resolved/provenance fields are separate concerns
6
- * populated at read time by the style-engine.
7
- */
1
+ import { ST_HIGHLIGHT_VALUES } from '../inline-semantics/token-sets.js';
8
2
  export type SDThemeFontRef = 'majorAscii' | 'majorHAnsi' | 'majorEastAsia' | 'majorBidi' | 'minorAscii' | 'minorHAnsi' | 'minorEastAsia' | 'minorBidi';
9
3
  export interface SDRunFonts {
10
4
  ascii?: string;
@@ -34,7 +28,7 @@ export type SDColorRef = {
34
28
  } | {
35
29
  model: 'auto';
36
30
  };
37
- export type SDHighlightColor = 'black' | 'blue' | 'cyan' | 'green' | 'magenta' | 'red' | 'yellow' | 'white' | 'darkBlue' | 'darkCyan' | 'darkGreen' | 'darkMagenta' | 'darkRed' | 'darkYellow' | 'darkGray' | 'lightGray' | 'none';
31
+ export type SDHighlightColor = (typeof ST_HIGHLIGHT_VALUES)[number];
38
32
  export type SDUnderlineStyle = 'none' | 'single' | 'words' | 'double' | 'thick' | 'dotted' | 'dottedHeavy' | 'dash' | 'dashedHeavy' | 'dashLong' | 'dashLongHeavy' | 'dotDash' | 'dashDotHeavy' | 'dotDotDash' | 'dashDotDotHeavy' | 'wave' | 'wavyHeavy' | 'wavyDouble';
39
33
  export interface SDUnderline {
40
34
  style?: SDUnderlineStyle;
@@ -47,7 +41,9 @@ export interface SDShading {
47
41
  }
48
42
  export interface SDRunBorder {
49
43
  style?: string;
44
+ /** Line width in points. */
50
45
  width?: number;
46
+ /** Spacing from the content in points. */
51
47
  space?: number;
52
48
  color?: SDColorRef;
53
49
  frame?: boolean;
@@ -186,10 +182,31 @@ export type SDTableWidth = {
186
182
  } | {
187
183
  kind: 'none';
188
184
  };
185
+ /** Table border lines; `width` and `space` in points. */
186
+ export interface SDTableBorders {
187
+ top?: SDRunBorder;
188
+ right?: SDRunBorder;
189
+ bottom?: SDRunBorder;
190
+ left?: SDRunBorder;
191
+ start?: SDRunBorder;
192
+ end?: SDRunBorder;
193
+ insideH?: SDRunBorder;
194
+ insideV?: SDRunBorder;
195
+ }
196
+ /** Cell padding in points. */
197
+ export interface SDCellPadding {
198
+ top?: number;
199
+ right?: number;
200
+ bottom?: number;
201
+ left?: number;
202
+ start?: number;
203
+ end?: number;
204
+ }
189
205
  export interface SDTableProps {
190
206
  width?: SDTableWidth;
191
207
  layout?: 'fixed' | 'autofit';
192
208
  alignment?: 'left' | 'center' | 'right' | 'inside' | 'outside';
209
+ /** Normalized CSS-like edge borders retained for document and fragment compatibility. */
193
210
  borders?: {
194
211
  top?: string;
195
212
  right?: string;
@@ -198,28 +215,51 @@ export interface SDTableProps {
198
215
  insideH?: string;
199
216
  insideV?: string;
200
217
  };
218
+ /** Leading-edge indent in points. */
219
+ indent?: number;
220
+ /** Spacing between cells in points. */
221
+ cellSpacing?: number;
222
+ /** Default cell padding in points. */
223
+ cellPadding?: SDCellPadding;
224
+ shading?: SDShading;
225
+ /** Right-to-left visual column order (`w:bidiVisual`). */
226
+ bidiVisual?: boolean;
227
+ }
228
+ /** Table formatting authored on a table style. Borders are structured lines, not strings. */
229
+ export interface SDTableStyleProps extends Omit<SDTableProps, 'borders'> {
230
+ borders?: SDTableBorders;
201
231
  }
202
232
  export interface SDRowProps {
203
233
  /** Minimum row height in points. */
204
234
  minHeight?: number;
205
235
  cantSplit?: boolean;
236
+ /** Repeat this row as a header row on each page (`w:tblHeader`). */
237
+ repeatHeader?: boolean;
238
+ }
239
+ /** Cell border lines; `width` and `space` in points. */
240
+ export interface SDCellBorders extends SDTableBorders {
241
+ /** Diagonal from top-left to bottom-right. */
242
+ tl2br?: SDRunBorder;
243
+ /** Diagonal from top-right to bottom-left. */
244
+ tr2bl?: SDRunBorder;
206
245
  }
207
246
  export interface SDCellProps {
208
247
  verticalAlign?: 'top' | 'center' | 'bottom';
209
248
  shading?: SDColorRef;
210
249
  /** Cell padding in points. */
211
- padding?: {
212
- top?: number;
213
- right?: number;
214
- bottom?: number;
215
- left?: number;
216
- };
250
+ padding?: SDCellPadding;
251
+ /** Normalized CSS-like edge borders, such as `'single 1pt #000000'` or `'none'`. */
217
252
  borders?: {
218
253
  top?: string;
219
254
  right?: string;
220
255
  bottom?: string;
221
256
  left?: string;
222
257
  };
258
+ noWrap?: boolean;
259
+ }
260
+ /** Cell formatting authored on a table style. Borders are structured lines, not strings. */
261
+ export interface SDTableStyleCellProps extends Omit<SDCellProps, 'borders'> {
262
+ borders?: SDCellBorders;
223
263
  }
224
264
  export interface SDImageProps {
225
265
  alignment?: 'left' | 'center' | 'right';
@@ -1,20 +1,69 @@
1
- import { SDRunProps, SDParagraphProps, SDTableProps, SDThemeColorName } from './sd-props.js';
1
+ import { SDParagraphProps, SDRowProps, SDRunProps, SDTableProps, SDTableStyleProps, SDTableStyleCellProps, SDThemeColorName } from './sd-props.js';
2
+ import { SDResolvedProvenance } from './sd-objects.js';
2
3
  export interface SDStyleBase<TProps> {
3
4
  name?: string;
4
5
  basedOn?: string;
5
6
  next?: string;
6
7
  linked?: string;
8
+ /** Properties authored on this style, with theme references left raw. */
7
9
  props?: TProps;
10
+ /** Cascaded values (basedOn chain, docDefaults, theme). Present with `includeResolved`. */
11
+ resolved?: Partial<TProps>;
12
+ /** Where each resolved value came from. Present with `includeProvenance`. */
13
+ provenance?: SDResolvedProvenance<TProps>;
14
+ }
15
+ export interface SDParagraphStyleDef extends SDStyleBase<SDParagraphProps> {
16
+ /** Run properties authored on this paragraph style (`w:rPr`). */
17
+ runProps?: SDRunProps;
18
+ /** Cascaded run values for text in this paragraph style. Present with `includeResolved`. */
19
+ resolvedRun?: Partial<SDRunProps>;
20
+ /** Where each resolved run value came from. Present with `includeProvenance`. */
21
+ runProvenance?: SDResolvedProvenance<SDRunProps>;
8
22
  }
9
- export type SDParagraphStyleDef = SDStyleBase<SDParagraphProps>;
10
23
  export type SDCharacterStyleDef = SDStyleBase<SDRunProps>;
11
- export type SDTableStyleDef = SDStyleBase<SDTableProps>;
24
+ /** Table regions that a table style can format conditionally (`w:tblStylePr/@w:type`). */
25
+ export type SDTableStyleRegion = 'wholeTable' | 'firstRow' | 'lastRow' | 'firstCol' | 'lastCol' | 'band1Vert' | 'band2Vert' | 'band1Horz' | 'band2Horz' | 'neCell' | 'nwCell' | 'seCell' | 'swCell';
26
+ /** Formatting a table style applies to one region, as authored. */
27
+ export interface SDTableStyleFormatting {
28
+ table?: SDTableStyleProps;
29
+ row?: SDRowProps;
30
+ cell?: SDTableStyleCellProps;
31
+ paragraph?: SDParagraphProps;
32
+ run?: SDRunProps;
33
+ }
34
+ export interface SDTableStyleDef extends SDStyleBase<SDTableStyleProps> {
35
+ /** Row defaults (`w:trPr`). */
36
+ rowProps?: SDRowProps;
37
+ /** Cell defaults (`w:tcPr`). */
38
+ cellProps?: SDTableStyleCellProps;
39
+ /** Paragraph formatting for text in the table (`w:pPr`). */
40
+ paragraphProps?: SDParagraphProps;
41
+ /** Run formatting for text in the table (`w:rPr`). */
42
+ runProps?: SDRunProps;
43
+ /**
44
+ * Conditional formatting per table region (`w:tblStylePr`), as authored.
45
+ * `resolved` / `provenance` cover table-level props only; regions are not cascaded.
46
+ */
47
+ conditional?: Partial<Record<SDTableStyleRegion, SDTableStyleFormatting>>;
48
+ /** Rows per horizontal band (`w:tblStyleRowBandSize`). */
49
+ rowBandSize?: number;
50
+ /** Columns per vertical band (`w:tblStyleColBandSize`). */
51
+ columnBandSize?: number;
52
+ }
12
53
  export interface SDStyles {
13
54
  paragraph?: Record<string, SDParagraphStyleDef>;
14
55
  character?: Record<string, SDCharacterStyleDef>;
15
56
  table?: Record<string, SDTableStyleDef>;
16
57
  }
58
+ /** Theme color roles that `w:clrSchemeMapping` maps onto theme color slots. */
59
+ export type SDThemeColorRole = 'bg1' | 't1' | 'bg2' | 't2' | 'accent1' | 'accent2' | 'accent3' | 'accent4' | 'accent5' | 'accent6' | 'hyperlink' | 'followedHyperlink';
17
60
  export interface SDTheme {
61
+ /**
62
+ * `document` when read from the package theme part; `fallback` when the part is
63
+ * missing or unreadable and the default Office theme stands in (see diagnostics).
64
+ */
65
+ source?: 'document' | 'fallback';
66
+ /** Six-digit hex colors without `#`, matching `SDColorRef` rgb values. */
18
67
  colorScheme: Record<SDThemeColorName, string>;
19
68
  fontScheme?: {
20
69
  major?: {
@@ -28,9 +77,15 @@ export interface SDTheme {
28
77
  complexScript?: string;
29
78
  };
30
79
  };
80
+ /** From `w:settings/w:clrSchemeMapping`; absent when the document declares none. */
81
+ colorSchemeMapping?: Partial<Record<SDThemeColorRole, SDThemeColorName>>;
31
82
  }
32
83
  export interface SDDocDefaults {
33
84
  run?: SDRunProps;
34
85
  paragraph?: SDParagraphProps;
35
86
  table?: SDTableProps;
87
+ /** `run` with theme references resolved. Present with `includeResolved`. */
88
+ resolvedRun?: Partial<SDRunProps>;
89
+ /** `paragraph` with theme references resolved. Present with `includeResolved`. */
90
+ resolvedParagraph?: Partial<SDParagraphProps>;
36
91
  }
@@ -133,6 +133,7 @@ export type TableCreateLocation = TableAnchorLocation
133
133
  */
134
134
  export interface TableMutationSuccess {
135
135
  success: true;
136
+ appliedChangeMode?: 'direct' | 'tracked';
136
137
  table?: TableAddress;
137
138
  trackedChangeRefs?: ReceiptInsert[];
138
139
  }
@@ -154,6 +155,7 @@ export interface CreateTableInput {
154
155
  }
155
156
  export interface CreateTableSuccessResult {
156
157
  success: true;
158
+ appliedChangeMode?: 'direct' | 'tracked';
157
159
  table: TableAddress;
158
160
  trackedChangeRefs?: ReceiptInsert[];
159
161
  }
@@ -1,6 +1,6 @@
1
1
  import { TextMutationReceipt, SDMutationReceipt } from '../types/index.js';
2
2
  import { InsertInput } from '../insert/insert.js';
3
- import { ReplaceInput } from '../replace/replace.js';
3
+ import { ReplaceMutationOptions, ReplaceInput } from '../replace/replace.js';
4
4
  import { StoryLocator } from '../types/story.types.js';
5
5
  import { SDHtmlMarkdownCheckGuard } from '../capabilities/html-markdown-support.js';
6
6
  export type ChangeMode = 'direct' | 'tracked';
@@ -77,11 +77,13 @@ export type WriteRequest = InsertWriteRequest;
77
77
  * `SelectionMutationAdapter` instead.
78
78
  */
79
79
  export interface WriteAdapter {
80
+ readonly supportsParagraphContents?: boolean;
81
+ readonly supportsNativeOoxml?: boolean;
80
82
  write(request: InsertWriteRequest, options?: TextMutationOptions): TextMutationReceipt;
81
83
  /** Structured insert for SDFragment or markdown/html content. Returns SDMutationReceipt. */
82
84
  insertStructured(input: InsertInput, options?: RichContentMutationOptions): SDMutationReceipt;
83
85
  /** Structured replace for SDFragment or markdown/html content. Returns SDMutationReceipt. */
84
- replaceStructured(input: ReplaceInput, options?: RichContentMutationOptions): SDMutationReceipt;
86
+ replaceStructured(input: ReplaceInput, options?: ReplaceMutationOptions): SDMutationReceipt;
85
87
  }
86
88
  export declare function normalizeMutationOptions(options?: MutationOptions | RichContentMutationOptions, supportCheckOperation?: 'insert' | 'replace'): RichContentMutationOptions;
87
89
  export declare function executeWrite(adapter: WriteAdapter, request: InsertWriteRequest, options?: TextMutationOptions): TextMutationReceipt;
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_create_super_doc_ui = require("../chunks/create-super-doc-ui-D_FbXpOQ.cjs");
2
+ const require_create_super_doc_ui = require("../chunks/create-super-doc-ui-bTFGKVRb.cjs");
3
3
  const require_slice_source = require("../chunks/slice-source-CFaqq0Vo.cjs");
4
4
  let react = require("react");
5
5
  //#region src/public/ui/react.ts
@@ -1,4 +1,4 @@
1
- import { t as createSuperDocUI } from "../chunks/create-super-doc-ui-DFNXiKvQ.es.js";
1
+ import { t as createSuperDocUI } from "../chunks/create-super-doc-ui-8UTu16Lw.es.js";
2
2
  import { t as toSliceSource } from "../chunks/slice-source-gfOhG2MW.es.js";
3
3
  import { createContext, createElement, useCallback, useContext, useEffect, useRef, useState } from "react";
4
4
  //#region src/public/ui/react.ts
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_create_super_doc_ui = require("../chunks/create-super-doc-ui-D_FbXpOQ.cjs");
2
+ const require_create_super_doc_ui = require("../chunks/create-super-doc-ui-bTFGKVRb.cjs");
3
3
  const require_slice_source = require("../chunks/slice-source-CFaqq0Vo.cjs");
4
4
  let superdoc_entry_vue = require("vue");
5
5
  //#region src/public/ui/vue.ts
@@ -1,4 +1,4 @@
1
- import { t as createSuperDocUI } from "../chunks/create-super-doc-ui-DFNXiKvQ.es.js";
1
+ import { t as createSuperDocUI } from "../chunks/create-super-doc-ui-8UTu16Lw.es.js";
2
2
  import { t as toSliceSource } from "../chunks/slice-source-gfOhG2MW.es.js";
3
3
  import { computed, inject, onScopeDispose, provide, shallowRef, toRaw, toValue, watch } from "vue";
4
4
  //#region src/public/ui/vue.ts
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_create_super_doc_ui = require("../chunks/create-super-doc-ui-D_FbXpOQ.cjs");
2
+ const require_create_super_doc_ui = require("../chunks/create-super-doc-ui-bTFGKVRb.cjs");
3
3
  exports.BUILT_IN_COMMAND_IDS = require_create_super_doc_ui.BUILT_IN_COMMAND_IDS;
4
4
  exports.createSuperDocUI = require_create_super_doc_ui.createSuperDocUI;
5
5
  exports.shallowEqual = require_create_super_doc_ui.shallowEqual;
@@ -1,2 +1,2 @@
1
- import { a as BUILT_IN_COMMAND_IDS, t as createSuperDocUI, u as shallowEqual } from "../chunks/create-super-doc-ui-DFNXiKvQ.es.js";
1
+ import { a as BUILT_IN_COMMAND_IDS, t as createSuperDocUI, u as shallowEqual } from "../chunks/create-super-doc-ui-8UTu16Lw.es.js";
2
2
  export { BUILT_IN_COMMAND_IDS, createSuperDocUI, shallowEqual };