@beyondwork/docx-react-component 1.0.128 → 1.0.129

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 (98) hide show
  1. package/dist/api/public-types.cjs +215 -61
  2. package/dist/api/public-types.d.cts +2 -2
  3. package/dist/api/public-types.d.ts +2 -2
  4. package/dist/api/public-types.js +2 -2
  5. package/dist/api/v3.cjs +896 -71
  6. package/dist/api/v3.d.cts +3 -3
  7. package/dist/api/v3.d.ts +3 -3
  8. package/dist/api/v3.js +8 -8
  9. package/dist/{canonical-document-CXCFCbAz.d.cts → canonical-document-BMtONpgf.d.cts} +6 -0
  10. package/dist/{canonical-document-CXCFCbAz.d.ts → canonical-document-BMtONpgf.d.ts} +6 -0
  11. package/dist/{chunk-KV435YXO.js → chunk-5DSHUYSY.js} +1 -1
  12. package/dist/{chunk-TQDQU2E3.js → chunk-63FYIGCT.js} +2 -2
  13. package/dist/{chunk-ZDOAUP3V.js → chunk-DDN2AIGE.js} +1 -1
  14. package/dist/{chunk-6F5QW44A.js → chunk-DJU2W4E4.js} +2 -2
  15. package/dist/{chunk-4EENH4FG.js → chunk-EZKJXIPH.js} +1 -1
  16. package/dist/{chunk-CXSYRB37.js → chunk-HUIHBBAQ.js} +166 -49
  17. package/dist/{chunk-ESJ2MES5.js → chunk-JJGVE5J7.js} +1 -1
  18. package/dist/{chunk-LZVBNDGU.js → chunk-LJH64PV3.js} +3 -3
  19. package/dist/{chunk-MWSBGJQO.js → chunk-OTQIW2TC.js} +2 -2
  20. package/dist/{chunk-2QL5DAKF.js → chunk-PGKUJZXV.js} +3 -3
  21. package/dist/{chunk-6EROGFUF.js → chunk-PRAZBHNF.js} +441 -128
  22. package/dist/{chunk-4YJVRIUB.js → chunk-Q3QYGKFE.js} +51 -8
  23. package/dist/{chunk-YHZHPXDB.js → chunk-RMRTQGW3.js} +50 -13
  24. package/dist/{chunk-XRACP43Q.js → chunk-SKPTKQHF.js} +351 -13
  25. package/dist/{chunk-D5HYZQTG.js → chunk-VNLDQJ47.js} +1 -1
  26. package/dist/{chunk-BYSRJ4FE.js → chunk-W34X3KBR.js} +1 -1
  27. package/dist/{chunk-V6XVZFFH.js → chunk-XMHSGPLN.js} +2 -2
  28. package/dist/{chunk-LCYYR57Q.js → chunk-XQCAMKIQ.js} +421 -6
  29. package/dist/{chunk-YD2JE54B.js → chunk-YZDZ4FGR.js} +1 -1
  30. package/dist/compare.d.cts +1 -1
  31. package/dist/compare.d.ts +1 -1
  32. package/dist/core/commands/formatting-commands.d.cts +2 -2
  33. package/dist/core/commands/formatting-commands.d.ts +2 -2
  34. package/dist/core/commands/image-commands.cjs +166 -49
  35. package/dist/core/commands/image-commands.d.cts +2 -2
  36. package/dist/core/commands/image-commands.d.ts +2 -2
  37. package/dist/core/commands/image-commands.js +4 -4
  38. package/dist/core/commands/section-layout-commands.d.cts +2 -2
  39. package/dist/core/commands/section-layout-commands.d.ts +2 -2
  40. package/dist/core/commands/style-commands.d.cts +2 -2
  41. package/dist/core/commands/style-commands.d.ts +2 -2
  42. package/dist/core/commands/table-structure-commands.cjs +166 -49
  43. package/dist/core/commands/table-structure-commands.d.cts +2 -2
  44. package/dist/core/commands/table-structure-commands.d.ts +2 -2
  45. package/dist/core/commands/table-structure-commands.js +3 -3
  46. package/dist/core/commands/text-commands.cjs +166 -49
  47. package/dist/core/commands/text-commands.d.cts +2 -2
  48. package/dist/core/commands/text-commands.d.ts +2 -2
  49. package/dist/core/commands/text-commands.js +4 -4
  50. package/dist/core/selection/mapping.d.cts +2 -2
  51. package/dist/core/selection/mapping.d.ts +2 -2
  52. package/dist/core/state/editor-state.d.cts +2 -2
  53. package/dist/core/state/editor-state.d.ts +2 -2
  54. package/dist/index.cjs +1486 -211
  55. package/dist/index.d.cts +5 -5
  56. package/dist/index.d.ts +5 -5
  57. package/dist/index.js +46 -22
  58. package/dist/io/docx-session.cjs +51 -8
  59. package/dist/io/docx-session.d.cts +4 -4
  60. package/dist/io/docx-session.d.ts +4 -4
  61. package/dist/io/docx-session.js +3 -3
  62. package/dist/legal.d.cts +1 -1
  63. package/dist/legal.d.ts +1 -1
  64. package/dist/legal.js +2 -2
  65. package/dist/{loader-19ct2Be0.d.ts → loader-4qsw4eIU.d.ts} +3 -3
  66. package/dist/{loader-CoXQ2wGd.d.cts → loader-B8TKhmQi.d.cts} +3 -3
  67. package/dist/{public-types-B-CskQen.d.cts → public-types-B5CRoR6f.d.cts} +128 -1
  68. package/dist/{public-types-7KZsNGE2.d.ts → public-types-p9b8rfy8.d.ts} +128 -1
  69. package/dist/public-types.cjs +215 -61
  70. package/dist/public-types.d.cts +2 -2
  71. package/dist/public-types.d.ts +2 -2
  72. package/dist/public-types.js +2 -2
  73. package/dist/runtime/collab.d.cts +3 -3
  74. package/dist/runtime/collab.d.ts +3 -3
  75. package/dist/runtime/document-runtime.cjs +980 -185
  76. package/dist/runtime/document-runtime.d.cts +2 -2
  77. package/dist/runtime/document-runtime.d.ts +2 -2
  78. package/dist/runtime/document-runtime.js +13 -13
  79. package/dist/{session-B5015J4v.d.cts → session-BnGIjaex.d.cts} +3 -3
  80. package/dist/{session-C2i8-d6v.d.ts → session-vEYKf-w3.d.ts} +3 -3
  81. package/dist/session.cjs +51 -8
  82. package/dist/session.d.cts +5 -5
  83. package/dist/session.d.ts +5 -5
  84. package/dist/session.js +4 -4
  85. package/dist/tailwind.cjs +215 -61
  86. package/dist/tailwind.d.cts +2 -2
  87. package/dist/tailwind.d.ts +2 -2
  88. package/dist/tailwind.js +5 -5
  89. package/dist/{types-DNhN0WeN.d.cts → types-BLuvZ6cQ.d.cts} +2 -2
  90. package/dist/{types-yvrQuGX9.d.ts → types-Dutlyj0T.d.ts} +2 -2
  91. package/dist/ui-tailwind/editor-surface/search-plugin.d.cts +3 -3
  92. package/dist/ui-tailwind/editor-surface/search-plugin.d.ts +3 -3
  93. package/dist/ui-tailwind/editor-surface/search-plugin.js +3 -3
  94. package/dist/ui-tailwind.cjs +215 -61
  95. package/dist/ui-tailwind.d.cts +3 -3
  96. package/dist/ui-tailwind.d.ts +3 -3
  97. package/dist/ui-tailwind.js +5 -5
  98. package/package.json +1 -1
@@ -3,7 +3,7 @@ import { ReactNode } from 'react';
3
3
  import * as Y from 'yjs';
4
4
  import * as y_protocols_awareness from 'y-protocols/awareness';
5
5
  import { Awareness } from 'y-protocols/awareness';
6
- import { S as SectionProperties, f as PersistedEditorSnapshotVersion, g as CDS_SCHEMA_VERSION, I as ISO8601DateTime, C as CanonicalDocument, h as CompatibilityReportVersion, i as Base64, M as ModelValidationIssue, j as CommentThread, k as CommentEntry, l as CommentResolution, m as RevisionMetadataRecord$1, n as RevisionRecord$1, p as CanonicalSourceRef, q as SdtDataBindingState, F as FieldFamily$1, r as FieldRefreshStatus$1, T as TocRegion, s as CanonicalAnchor, t as PreserveOnlyObjectSizing, u as TableCellNode, B as BlockNode, v as TableLook, w as TableStyleFormatting, x as TableWidth, y as TableBorders, z as TableStyleConditionalRegion, A as TableCellBorders, E as CellShading, G as TextMark, H as Mutable, J as ParagraphNode, K as TableIndent, L as TableCellMargins, N as TableNode, Q as FieldRegistryEntry, U as FootnoteProperties, V as EndnoteProperties, W as CanonicalTheme, X as InlineNode, Y as CanonicalParagraphFormatting, Z as CanonicalRunFormatting, _ as FillSpec, $ as TextProperties, a0 as StrokeSpec, a1 as ChartModel, a2 as ResolvedTheme, a3 as ColorRef, a4 as SupportedFieldFamily$1, a5 as HeaderDocument, a6 as FooterDocument, a7 as ParagraphBorders } from './canonical-document-CXCFCbAz.cjs';
6
+ import { S as SectionProperties, f as PersistedEditorSnapshotVersion, g as CDS_SCHEMA_VERSION, I as ISO8601DateTime, C as CanonicalDocument, h as CompatibilityReportVersion, i as Base64, M as ModelValidationIssue, j as CommentThread, k as CommentEntry, l as CommentResolution, m as RevisionMetadataRecord$1, n as RevisionRecord$1, p as CanonicalSourceRef, q as SdtDataBindingState, F as FieldFamily$1, r as FieldRefreshStatus$1, T as TocRegion, s as CanonicalAnchor, t as PreserveOnlyObjectSizing, u as TableCellNode, B as BlockNode, v as TableLook, w as TableStyleFormatting, x as TableWidth, y as TableBorders, z as TableStyleConditionalRegion, A as TableCellBorders, E as CellShading, G as TextMark, H as Mutable, J as ParagraphNode, K as TableIndent, L as TableCellMargins, N as TableNode, Q as FieldRegistryEntry, U as FootnoteProperties, V as EndnoteProperties, W as CanonicalTheme, X as InlineNode, Y as CanonicalParagraphFormatting, Z as CanonicalRunFormatting, _ as FillSpec, $ as TextProperties, a0 as StrokeSpec, a1 as ChartModel, a2 as ResolvedTheme, a3 as ColorRef, a4 as SupportedFieldFamily$1, a5 as HeaderDocument, a6 as FooterDocument, a7 as ParagraphBorders } from './canonical-document-BMtONpgf.cjs';
7
7
  import * as prosemirror_state from 'prosemirror-state';
8
8
  import { Command } from 'prosemirror-state';
9
9
  import { Schema } from 'prosemirror-model';
@@ -2606,6 +2606,21 @@ interface ViewState {
2606
2606
  chromePins: ChromePinsState;
2607
2607
  }
2608
2608
 
2609
+ type HotEditTier = "patch" | "bounded-projection" | "full-refresh" | "blocked";
2610
+ type HotEditPatchMissReason = "none" | "not-local-text" | "multi-step" | "unsupported-story" | "unsupported-surface-shape" | "budget-exceeded" | "effect-disqualified" | "participant-blocked";
2611
+ interface HotEditTrace {
2612
+ readonly sequence: number;
2613
+ readonly startedAtUtc: string;
2614
+ readonly commandType: string;
2615
+ readonly tier: HotEditTier;
2616
+ readonly patchMissReason: HotEditPatchMissReason;
2617
+ readonly totalDurationUs: number;
2618
+ readonly refreshAllCount: number;
2619
+ readonly patchHitCount: number;
2620
+ readonly patchBudgetFallbackCount: number;
2621
+ readonly boundedEditableTargetBuildCount: number;
2622
+ }
2623
+
2609
2624
  /**
2610
2625
  * Layer-06 Slice 3 — `WorkflowDebugEntry` projector.
2611
2626
  *
@@ -5233,6 +5248,8 @@ interface RuntimeDebugFacet {
5233
5248
  setChannels(flags: Partial<Record<TelemetryChannel, boolean>>): Record<TelemetryChannel, boolean>;
5234
5249
  /** Current channel state. */
5235
5250
  getChannels(): Record<TelemetryChannel, boolean>;
5251
+ /** Recent hot-edit traces used to explain typing fast-path choices. */
5252
+ getHotEditTraces(): readonly HotEditTrace[];
5236
5253
  }
5237
5254
 
5238
5255
  declare function makeToggleBold(schema: Schema): Command;
@@ -5721,6 +5738,11 @@ type EditorCommand = {
5721
5738
  */
5722
5739
  type: "fragment.insert";
5723
5740
  fragment: CanonicalDocumentFragment;
5741
+ /**
5742
+ * Optional command-local selection for target-backed callers that do
5743
+ * not want to move the mounted runtime selection before dispatch.
5744
+ */
5745
+ selection?: SelectionSnapshot$1;
5724
5746
  editableTarget?: EditableTargetRef;
5725
5747
  origin?: CommandOrigin;
5726
5748
  } | {
@@ -6380,6 +6402,12 @@ interface ScopeBundleEvidence {
6380
6402
  * not make a broad scope replacement safe by themselves.
6381
6403
  */
6382
6404
  readonly editableTargets?: ScopeEditableTargetEvidence;
6405
+ /**
6406
+ * Object / media / preserve-only evidence projected from intersecting
6407
+ * editable targets. This is a read/routing surface; mutation authority still
6408
+ * comes from capability verdicts and lower-layer command posture.
6409
+ */
6410
+ readonly objects?: ScopeObjectEvidence;
6383
6411
  /**
6384
6412
  * Structured table facts and semantic table action handles for table-family
6385
6413
  * scopes. Raw `table:*` / `row:*` / `cell:*` ids and `EditableTargetRef`
@@ -6657,6 +6685,26 @@ interface ScopeEditableTargetEvidence {
6657
6685
  readonly blockers: readonly ScopeEditableTargetBlocker[];
6658
6686
  readonly entries: readonly ScopeEditableTargetEvidenceEntry[];
6659
6687
  }
6688
+ type ScopeObjectEvidenceStatus = "none" | "present";
6689
+ interface ScopeObjectEvidenceEntry {
6690
+ readonly targetKey: string;
6691
+ readonly kind: EditableTargetKind;
6692
+ readonly objectKind?: EditableTargetObjectIdentity["objectKind"];
6693
+ readonly relation: ScopeEditableTargetRelation;
6694
+ readonly commandFamily: EditableTargetCommandFamily;
6695
+ readonly editability: EditableTargetEditability;
6696
+ readonly sourceRef?: CanonicalSourceRef;
6697
+ readonly object?: EditableTargetObjectIdentity;
6698
+ readonly runtimeCommand: ScopeEditableTargetRuntimeCommandEvidence;
6699
+ readonly blockers: readonly string[];
6700
+ readonly preserveOnly?: boolean;
6701
+ }
6702
+ interface ScopeObjectEvidence {
6703
+ readonly status: ScopeObjectEvidenceStatus;
6704
+ readonly count: number;
6705
+ readonly blockers: readonly string[];
6706
+ readonly entries: readonly ScopeObjectEvidenceEntry[];
6707
+ }
6660
6708
  type ScopeTableEvidenceStatus = "present";
6661
6709
  type ScopeTableEvidenceKind = "table" | "table-row" | "table-cell";
6662
6710
  type ScopeTableVerticalMergeRole = "none" | "owner" | "continuation";
@@ -6890,6 +6938,7 @@ interface ScopeCapabilities {
6890
6938
  readonly canUseTableContinuationEvidence: ScopeCapabilityVerdict;
6891
6939
  readonly canEditListText: ScopeCapabilityVerdict;
6892
6940
  readonly canEditListStructure: ScopeCapabilityVerdict;
6941
+ readonly canEditObject: ScopeCapabilityVerdict;
6893
6942
  }
6894
6943
  type ScopeContentControlEvidenceStatus = "none" | "present";
6895
6944
  interface ScopeContentControlEvidenceEntry {
@@ -10588,6 +10637,83 @@ declare function createViewportFamily(runtime: RuntimeApiHandle): {
10588
10637
  getPageGeometry(pageNumber: number): PageGeometry | null;
10589
10638
  };
10590
10639
 
10640
+ /**
10641
+ * @endStateApi v3 — `runtime.lists` family.
10642
+ *
10643
+ * Stable list-command namespace over the L07 command surface. The first
10644
+ * slice exposes readback and preflight for current list-item targets, and
10645
+ * routes only the list mutations that already exist. Future list vocabulary
10646
+ * returns typed blockers here until the underlying command/export/readback
10647
+ * path is proven.
10648
+ */
10649
+
10650
+ type RuntimeListCommand = "toggle-numbered" | "toggle-bulleted" | "indent" | "outdent" | "restart-numbering" | "continue-numbering" | "create" | "attach" | "detach" | "join" | "separate" | "split" | "set-value" | "apply-template" | "capture-template" | "apply-preset" | "set-level-numbering" | "set-level-bullet" | "set-level-picture-bullet" | "set-level-alignment" | "set-level-indents" | "set-level-trailing-character" | "set-level-marker-font" | "set-level-text" | "set-level-start" | "set-level-layout" | "convert-to-text" | "paste-fragment" | "drop-fragment";
10651
+ type RuntimeListBlockerCode = "list-target-required" | "list-target-malformed" | "list-target-not-found" | "list-target-stale" | "list-target-non-editable" | "list-command-unsupported" | "list-command-preflight-blocked" | "list-continue-target-missing" | "list-join-target-missing";
10652
+ interface RuntimeListTargetInput {
10653
+ readonly targetKey?: string;
10654
+ readonly addressKey?: string;
10655
+ readonly editableTarget?: EditableTargetRef | null;
10656
+ }
10657
+ interface RuntimeListBlocker {
10658
+ readonly code: RuntimeListBlockerCode;
10659
+ readonly ownerLayer: "L07";
10660
+ readonly message: string;
10661
+ readonly targetKey?: string;
10662
+ readonly addressKey?: string;
10663
+ }
10664
+ interface RuntimeListReadback {
10665
+ readonly targetKey: string;
10666
+ readonly actionHandle: string;
10667
+ readonly kind: EditableTargetRef["kind"];
10668
+ readonly storyKey: string;
10669
+ readonly blockPath: string;
10670
+ readonly leafPath: string;
10671
+ readonly addressKey: string;
10672
+ readonly numberingInstanceId: string;
10673
+ readonly abstractNumberingId?: string;
10674
+ readonly level: number;
10675
+ readonly listKind?: "numbered" | "bulleted";
10676
+ readonly editability: EditableTargetRef["editability"];
10677
+ readonly blockers: readonly string[];
10678
+ readonly supportedCommands: readonly RuntimeListCommand[];
10679
+ readonly unsupportedCommands: readonly RuntimeListCommand[];
10680
+ readonly staleDiscriminators: {
10681
+ readonly paragraphTextHash?: string;
10682
+ readonly paragraphTextLength?: number;
10683
+ readonly inlineCount?: number;
10684
+ readonly listAddressStaleHash?: string;
10685
+ };
10686
+ }
10687
+ interface RuntimeListCommandPreview {
10688
+ readonly command: RuntimeListCommand;
10689
+ readonly supported: boolean;
10690
+ readonly target?: RuntimeListReadback;
10691
+ readonly affectedTargets: readonly RuntimeListReadback[];
10692
+ readonly blockers: readonly RuntimeListBlocker[];
10693
+ readonly canJoin?: boolean;
10694
+ readonly canContinuePrevious?: boolean;
10695
+ }
10696
+ interface RuntimeListApplyInput extends RuntimeListTargetInput {
10697
+ readonly command: RuntimeListCommand;
10698
+ readonly startAt?: number;
10699
+ }
10700
+ interface RuntimeListApplyResult {
10701
+ readonly applied: boolean;
10702
+ readonly command: RuntimeListCommand;
10703
+ readonly before?: RuntimeListReadback;
10704
+ readonly after?: RuntimeListReadback;
10705
+ readonly blockers: readonly RuntimeListBlocker[];
10706
+ }
10707
+ declare function createListsFamily(runtime: RuntimeApiHandle): {
10708
+ list(input?: {
10709
+ readonly storyKey?: string;
10710
+ readonly limit?: number;
10711
+ }): RuntimeListReadback[];
10712
+ get(input: RuntimeListTargetInput): RuntimeListReadback | null;
10713
+ previewCommand(input: RuntimeListApplyInput): RuntimeListCommandPreview;
10714
+ applyCommand(input: RuntimeListApplyInput): RuntimeListApplyResult;
10715
+ };
10716
+
10591
10717
  /**
10592
10718
  * Layer 09 PE2 evidence projection.
10593
10719
  *
@@ -12764,6 +12890,7 @@ type ApiV3Runtime = {
12764
12890
  readonly search: ReturnType<typeof createSearchFamily>;
12765
12891
  readonly table: ReturnType<typeof createTableFamily>;
12766
12892
  readonly viewport: ReturnType<typeof createViewportFamily>;
12893
+ readonly lists: ReturnType<typeof createListsFamily>;
12767
12894
  };
12768
12895
  type ApiV3Ai = ReturnType<typeof createInspectFamily> & ReturnType<typeof createResolveFamily> & ReturnType<typeof createBundleFamily> & ReturnType<typeof createReplacementFamily> & ReturnType<typeof createAttachFamily> & ReturnType<typeof createExportFamily> & ReturnType<typeof createExplainFamily> & ReturnType<typeof createPolicyFamily> & ReturnType<typeof createReviewFamily> & ReturnType<typeof createEvaluateFamily> & ReturnType<typeof createStatsFamily> & ReturnType<typeof createOutlineFamily> & ReturnType<typeof createTableActionFamily> & ReturnType<typeof createActionsFamily>;
12769
12896
  interface ApiV3 {
@@ -3,7 +3,7 @@ import { ReactNode } from 'react';
3
3
  import * as Y from 'yjs';
4
4
  import * as y_protocols_awareness from 'y-protocols/awareness';
5
5
  import { Awareness } from 'y-protocols/awareness';
6
- import { S as SectionProperties, f as PersistedEditorSnapshotVersion, g as CDS_SCHEMA_VERSION, I as ISO8601DateTime, C as CanonicalDocument, h as CompatibilityReportVersion, i as Base64, M as ModelValidationIssue, j as CommentThread, k as CommentEntry, l as CommentResolution, m as RevisionMetadataRecord$1, n as RevisionRecord$1, p as CanonicalSourceRef, q as SdtDataBindingState, F as FieldFamily$1, r as FieldRefreshStatus$1, T as TocRegion, s as CanonicalAnchor, t as PreserveOnlyObjectSizing, u as TableCellNode, B as BlockNode, v as TableLook, w as TableStyleFormatting, x as TableWidth, y as TableBorders, z as TableStyleConditionalRegion, A as TableCellBorders, E as CellShading, G as TextMark, H as Mutable, J as ParagraphNode, K as TableIndent, L as TableCellMargins, N as TableNode, Q as FieldRegistryEntry, U as FootnoteProperties, V as EndnoteProperties, W as CanonicalTheme, X as InlineNode, Y as CanonicalParagraphFormatting, Z as CanonicalRunFormatting, _ as FillSpec, $ as TextProperties, a0 as StrokeSpec, a1 as ChartModel, a2 as ResolvedTheme, a3 as ColorRef, a4 as SupportedFieldFamily$1, a5 as HeaderDocument, a6 as FooterDocument, a7 as ParagraphBorders } from './canonical-document-CXCFCbAz.js';
6
+ import { S as SectionProperties, f as PersistedEditorSnapshotVersion, g as CDS_SCHEMA_VERSION, I as ISO8601DateTime, C as CanonicalDocument, h as CompatibilityReportVersion, i as Base64, M as ModelValidationIssue, j as CommentThread, k as CommentEntry, l as CommentResolution, m as RevisionMetadataRecord$1, n as RevisionRecord$1, p as CanonicalSourceRef, q as SdtDataBindingState, F as FieldFamily$1, r as FieldRefreshStatus$1, T as TocRegion, s as CanonicalAnchor, t as PreserveOnlyObjectSizing, u as TableCellNode, B as BlockNode, v as TableLook, w as TableStyleFormatting, x as TableWidth, y as TableBorders, z as TableStyleConditionalRegion, A as TableCellBorders, E as CellShading, G as TextMark, H as Mutable, J as ParagraphNode, K as TableIndent, L as TableCellMargins, N as TableNode, Q as FieldRegistryEntry, U as FootnoteProperties, V as EndnoteProperties, W as CanonicalTheme, X as InlineNode, Y as CanonicalParagraphFormatting, Z as CanonicalRunFormatting, _ as FillSpec, $ as TextProperties, a0 as StrokeSpec, a1 as ChartModel, a2 as ResolvedTheme, a3 as ColorRef, a4 as SupportedFieldFamily$1, a5 as HeaderDocument, a6 as FooterDocument, a7 as ParagraphBorders } from './canonical-document-BMtONpgf.js';
7
7
  import * as prosemirror_state from 'prosemirror-state';
8
8
  import { Command } from 'prosemirror-state';
9
9
  import { Schema } from 'prosemirror-model';
@@ -2606,6 +2606,21 @@ interface ViewState {
2606
2606
  chromePins: ChromePinsState;
2607
2607
  }
2608
2608
 
2609
+ type HotEditTier = "patch" | "bounded-projection" | "full-refresh" | "blocked";
2610
+ type HotEditPatchMissReason = "none" | "not-local-text" | "multi-step" | "unsupported-story" | "unsupported-surface-shape" | "budget-exceeded" | "effect-disqualified" | "participant-blocked";
2611
+ interface HotEditTrace {
2612
+ readonly sequence: number;
2613
+ readonly startedAtUtc: string;
2614
+ readonly commandType: string;
2615
+ readonly tier: HotEditTier;
2616
+ readonly patchMissReason: HotEditPatchMissReason;
2617
+ readonly totalDurationUs: number;
2618
+ readonly refreshAllCount: number;
2619
+ readonly patchHitCount: number;
2620
+ readonly patchBudgetFallbackCount: number;
2621
+ readonly boundedEditableTargetBuildCount: number;
2622
+ }
2623
+
2609
2624
  /**
2610
2625
  * Layer-06 Slice 3 — `WorkflowDebugEntry` projector.
2611
2626
  *
@@ -5233,6 +5248,8 @@ interface RuntimeDebugFacet {
5233
5248
  setChannels(flags: Partial<Record<TelemetryChannel, boolean>>): Record<TelemetryChannel, boolean>;
5234
5249
  /** Current channel state. */
5235
5250
  getChannels(): Record<TelemetryChannel, boolean>;
5251
+ /** Recent hot-edit traces used to explain typing fast-path choices. */
5252
+ getHotEditTraces(): readonly HotEditTrace[];
5236
5253
  }
5237
5254
 
5238
5255
  declare function makeToggleBold(schema: Schema): Command;
@@ -5721,6 +5738,11 @@ type EditorCommand = {
5721
5738
  */
5722
5739
  type: "fragment.insert";
5723
5740
  fragment: CanonicalDocumentFragment;
5741
+ /**
5742
+ * Optional command-local selection for target-backed callers that do
5743
+ * not want to move the mounted runtime selection before dispatch.
5744
+ */
5745
+ selection?: SelectionSnapshot$1;
5724
5746
  editableTarget?: EditableTargetRef;
5725
5747
  origin?: CommandOrigin;
5726
5748
  } | {
@@ -6380,6 +6402,12 @@ interface ScopeBundleEvidence {
6380
6402
  * not make a broad scope replacement safe by themselves.
6381
6403
  */
6382
6404
  readonly editableTargets?: ScopeEditableTargetEvidence;
6405
+ /**
6406
+ * Object / media / preserve-only evidence projected from intersecting
6407
+ * editable targets. This is a read/routing surface; mutation authority still
6408
+ * comes from capability verdicts and lower-layer command posture.
6409
+ */
6410
+ readonly objects?: ScopeObjectEvidence;
6383
6411
  /**
6384
6412
  * Structured table facts and semantic table action handles for table-family
6385
6413
  * scopes. Raw `table:*` / `row:*` / `cell:*` ids and `EditableTargetRef`
@@ -6657,6 +6685,26 @@ interface ScopeEditableTargetEvidence {
6657
6685
  readonly blockers: readonly ScopeEditableTargetBlocker[];
6658
6686
  readonly entries: readonly ScopeEditableTargetEvidenceEntry[];
6659
6687
  }
6688
+ type ScopeObjectEvidenceStatus = "none" | "present";
6689
+ interface ScopeObjectEvidenceEntry {
6690
+ readonly targetKey: string;
6691
+ readonly kind: EditableTargetKind;
6692
+ readonly objectKind?: EditableTargetObjectIdentity["objectKind"];
6693
+ readonly relation: ScopeEditableTargetRelation;
6694
+ readonly commandFamily: EditableTargetCommandFamily;
6695
+ readonly editability: EditableTargetEditability;
6696
+ readonly sourceRef?: CanonicalSourceRef;
6697
+ readonly object?: EditableTargetObjectIdentity;
6698
+ readonly runtimeCommand: ScopeEditableTargetRuntimeCommandEvidence;
6699
+ readonly blockers: readonly string[];
6700
+ readonly preserveOnly?: boolean;
6701
+ }
6702
+ interface ScopeObjectEvidence {
6703
+ readonly status: ScopeObjectEvidenceStatus;
6704
+ readonly count: number;
6705
+ readonly blockers: readonly string[];
6706
+ readonly entries: readonly ScopeObjectEvidenceEntry[];
6707
+ }
6660
6708
  type ScopeTableEvidenceStatus = "present";
6661
6709
  type ScopeTableEvidenceKind = "table" | "table-row" | "table-cell";
6662
6710
  type ScopeTableVerticalMergeRole = "none" | "owner" | "continuation";
@@ -6890,6 +6938,7 @@ interface ScopeCapabilities {
6890
6938
  readonly canUseTableContinuationEvidence: ScopeCapabilityVerdict;
6891
6939
  readonly canEditListText: ScopeCapabilityVerdict;
6892
6940
  readonly canEditListStructure: ScopeCapabilityVerdict;
6941
+ readonly canEditObject: ScopeCapabilityVerdict;
6893
6942
  }
6894
6943
  type ScopeContentControlEvidenceStatus = "none" | "present";
6895
6944
  interface ScopeContentControlEvidenceEntry {
@@ -10588,6 +10637,83 @@ declare function createViewportFamily(runtime: RuntimeApiHandle): {
10588
10637
  getPageGeometry(pageNumber: number): PageGeometry | null;
10589
10638
  };
10590
10639
 
10640
+ /**
10641
+ * @endStateApi v3 — `runtime.lists` family.
10642
+ *
10643
+ * Stable list-command namespace over the L07 command surface. The first
10644
+ * slice exposes readback and preflight for current list-item targets, and
10645
+ * routes only the list mutations that already exist. Future list vocabulary
10646
+ * returns typed blockers here until the underlying command/export/readback
10647
+ * path is proven.
10648
+ */
10649
+
10650
+ type RuntimeListCommand = "toggle-numbered" | "toggle-bulleted" | "indent" | "outdent" | "restart-numbering" | "continue-numbering" | "create" | "attach" | "detach" | "join" | "separate" | "split" | "set-value" | "apply-template" | "capture-template" | "apply-preset" | "set-level-numbering" | "set-level-bullet" | "set-level-picture-bullet" | "set-level-alignment" | "set-level-indents" | "set-level-trailing-character" | "set-level-marker-font" | "set-level-text" | "set-level-start" | "set-level-layout" | "convert-to-text" | "paste-fragment" | "drop-fragment";
10651
+ type RuntimeListBlockerCode = "list-target-required" | "list-target-malformed" | "list-target-not-found" | "list-target-stale" | "list-target-non-editable" | "list-command-unsupported" | "list-command-preflight-blocked" | "list-continue-target-missing" | "list-join-target-missing";
10652
+ interface RuntimeListTargetInput {
10653
+ readonly targetKey?: string;
10654
+ readonly addressKey?: string;
10655
+ readonly editableTarget?: EditableTargetRef | null;
10656
+ }
10657
+ interface RuntimeListBlocker {
10658
+ readonly code: RuntimeListBlockerCode;
10659
+ readonly ownerLayer: "L07";
10660
+ readonly message: string;
10661
+ readonly targetKey?: string;
10662
+ readonly addressKey?: string;
10663
+ }
10664
+ interface RuntimeListReadback {
10665
+ readonly targetKey: string;
10666
+ readonly actionHandle: string;
10667
+ readonly kind: EditableTargetRef["kind"];
10668
+ readonly storyKey: string;
10669
+ readonly blockPath: string;
10670
+ readonly leafPath: string;
10671
+ readonly addressKey: string;
10672
+ readonly numberingInstanceId: string;
10673
+ readonly abstractNumberingId?: string;
10674
+ readonly level: number;
10675
+ readonly listKind?: "numbered" | "bulleted";
10676
+ readonly editability: EditableTargetRef["editability"];
10677
+ readonly blockers: readonly string[];
10678
+ readonly supportedCommands: readonly RuntimeListCommand[];
10679
+ readonly unsupportedCommands: readonly RuntimeListCommand[];
10680
+ readonly staleDiscriminators: {
10681
+ readonly paragraphTextHash?: string;
10682
+ readonly paragraphTextLength?: number;
10683
+ readonly inlineCount?: number;
10684
+ readonly listAddressStaleHash?: string;
10685
+ };
10686
+ }
10687
+ interface RuntimeListCommandPreview {
10688
+ readonly command: RuntimeListCommand;
10689
+ readonly supported: boolean;
10690
+ readonly target?: RuntimeListReadback;
10691
+ readonly affectedTargets: readonly RuntimeListReadback[];
10692
+ readonly blockers: readonly RuntimeListBlocker[];
10693
+ readonly canJoin?: boolean;
10694
+ readonly canContinuePrevious?: boolean;
10695
+ }
10696
+ interface RuntimeListApplyInput extends RuntimeListTargetInput {
10697
+ readonly command: RuntimeListCommand;
10698
+ readonly startAt?: number;
10699
+ }
10700
+ interface RuntimeListApplyResult {
10701
+ readonly applied: boolean;
10702
+ readonly command: RuntimeListCommand;
10703
+ readonly before?: RuntimeListReadback;
10704
+ readonly after?: RuntimeListReadback;
10705
+ readonly blockers: readonly RuntimeListBlocker[];
10706
+ }
10707
+ declare function createListsFamily(runtime: RuntimeApiHandle): {
10708
+ list(input?: {
10709
+ readonly storyKey?: string;
10710
+ readonly limit?: number;
10711
+ }): RuntimeListReadback[];
10712
+ get(input: RuntimeListTargetInput): RuntimeListReadback | null;
10713
+ previewCommand(input: RuntimeListApplyInput): RuntimeListCommandPreview;
10714
+ applyCommand(input: RuntimeListApplyInput): RuntimeListApplyResult;
10715
+ };
10716
+
10591
10717
  /**
10592
10718
  * Layer 09 PE2 evidence projection.
10593
10719
  *
@@ -12764,6 +12890,7 @@ type ApiV3Runtime = {
12764
12890
  readonly search: ReturnType<typeof createSearchFamily>;
12765
12891
  readonly table: ReturnType<typeof createTableFamily>;
12766
12892
  readonly viewport: ReturnType<typeof createViewportFamily>;
12893
+ readonly lists: ReturnType<typeof createListsFamily>;
12767
12894
  };
12768
12895
  type ApiV3Ai = ReturnType<typeof createInspectFamily> & ReturnType<typeof createResolveFamily> & ReturnType<typeof createBundleFamily> & ReturnType<typeof createReplacementFamily> & ReturnType<typeof createAttachFamily> & ReturnType<typeof createExportFamily> & ReturnType<typeof createExplainFamily> & ReturnType<typeof createPolicyFamily> & ReturnType<typeof createReviewFamily> & ReturnType<typeof createEvaluateFamily> & ReturnType<typeof createStatsFamily> & ReturnType<typeof createOutlineFamily> & ReturnType<typeof createTableActionFamily> & ReturnType<typeof createActionsFamily>;
12769
12896
  interface ApiV3 {