@beyondwork/docx-react-component 1.0.127 → 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.
- package/dist/api/public-types.cjs +215 -61
- package/dist/api/public-types.d.cts +2 -2
- package/dist/api/public-types.d.ts +2 -2
- package/dist/api/public-types.js +2 -2
- package/dist/api/v3.cjs +1324 -71
- package/dist/api/v3.d.cts +3 -3
- package/dist/api/v3.d.ts +3 -3
- package/dist/api/v3.js +8 -8
- package/dist/{canonical-document-CXCFCbAz.d.cts → canonical-document-BMtONpgf.d.cts} +6 -0
- package/dist/{canonical-document-CXCFCbAz.d.ts → canonical-document-BMtONpgf.d.ts} +6 -0
- package/dist/{chunk-KV435YXO.js → chunk-5DSHUYSY.js} +1 -1
- package/dist/{chunk-TQDQU2E3.js → chunk-63FYIGCT.js} +2 -2
- package/dist/{chunk-ZDOAUP3V.js → chunk-DDN2AIGE.js} +1 -1
- package/dist/{chunk-6F5QW44A.js → chunk-DJU2W4E4.js} +2 -2
- package/dist/{chunk-4EENH4FG.js → chunk-EZKJXIPH.js} +1 -1
- package/dist/{chunk-CXSYRB37.js → chunk-HUIHBBAQ.js} +166 -49
- package/dist/{chunk-ESJ2MES5.js → chunk-JJGVE5J7.js} +1 -1
- package/dist/{chunk-LZVBNDGU.js → chunk-LJH64PV3.js} +3 -3
- package/dist/{chunk-MWSBGJQO.js → chunk-OTQIW2TC.js} +2 -2
- package/dist/{chunk-2QL5DAKF.js → chunk-PGKUJZXV.js} +3 -3
- package/dist/{chunk-PUMZWE2D.js → chunk-PRAZBHNF.js} +460 -136
- package/dist/{chunk-4YJVRIUB.js → chunk-Q3QYGKFE.js} +51 -8
- package/dist/{chunk-YHZHPXDB.js → chunk-RMRTQGW3.js} +50 -13
- package/dist/{chunk-XRACP43Q.js → chunk-SKPTKQHF.js} +351 -13
- package/dist/{chunk-D5HYZQTG.js → chunk-VNLDQJ47.js} +1 -1
- package/dist/{chunk-BYSRJ4FE.js → chunk-W34X3KBR.js} +1 -1
- package/dist/{chunk-V6XVZFFH.js → chunk-XMHSGPLN.js} +2 -2
- package/dist/{chunk-46KNRA4C.js → chunk-XQCAMKIQ.js} +849 -6
- package/dist/{chunk-YD2JE54B.js → chunk-YZDZ4FGR.js} +1 -1
- package/dist/compare.d.cts +1 -1
- package/dist/compare.d.ts +1 -1
- package/dist/core/commands/formatting-commands.d.cts +2 -2
- package/dist/core/commands/formatting-commands.d.ts +2 -2
- package/dist/core/commands/image-commands.cjs +166 -49
- package/dist/core/commands/image-commands.d.cts +2 -2
- package/dist/core/commands/image-commands.d.ts +2 -2
- package/dist/core/commands/image-commands.js +4 -4
- package/dist/core/commands/section-layout-commands.d.cts +2 -2
- package/dist/core/commands/section-layout-commands.d.ts +2 -2
- package/dist/core/commands/style-commands.d.cts +2 -2
- package/dist/core/commands/style-commands.d.ts +2 -2
- package/dist/core/commands/table-structure-commands.cjs +166 -49
- package/dist/core/commands/table-structure-commands.d.cts +2 -2
- package/dist/core/commands/table-structure-commands.d.ts +2 -2
- package/dist/core/commands/table-structure-commands.js +3 -3
- package/dist/core/commands/text-commands.cjs +166 -49
- package/dist/core/commands/text-commands.d.cts +2 -2
- package/dist/core/commands/text-commands.d.ts +2 -2
- package/dist/core/commands/text-commands.js +4 -4
- package/dist/core/selection/mapping.d.cts +2 -2
- package/dist/core/selection/mapping.d.ts +2 -2
- package/dist/core/state/editor-state.d.cts +2 -2
- package/dist/core/state/editor-state.d.ts +2 -2
- package/dist/index.cjs +1943 -219
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +56 -22
- package/dist/io/docx-session.cjs +51 -8
- package/dist/io/docx-session.d.cts +4 -4
- package/dist/io/docx-session.d.ts +4 -4
- package/dist/io/docx-session.js +3 -3
- package/dist/legal.d.cts +1 -1
- package/dist/legal.d.ts +1 -1
- package/dist/legal.js +2 -2
- package/dist/{loader-CFICtb9m.d.ts → loader-4qsw4eIU.d.ts} +3 -3
- package/dist/{loader-DveZOVuC.d.cts → loader-B8TKhmQi.d.cts} +3 -3
- package/dist/{public-types-beSYFJRR.d.cts → public-types-B5CRoR6f.d.cts} +220 -1
- package/dist/{public-types-Cgl3efbO.d.ts → public-types-p9b8rfy8.d.ts} +220 -1
- package/dist/public-types.cjs +215 -61
- package/dist/public-types.d.cts +2 -2
- package/dist/public-types.d.ts +2 -2
- package/dist/public-types.js +2 -2
- package/dist/runtime/collab.d.cts +3 -3
- package/dist/runtime/collab.d.ts +3 -3
- package/dist/runtime/document-runtime.cjs +999 -193
- package/dist/runtime/document-runtime.d.cts +2 -2
- package/dist/runtime/document-runtime.d.ts +2 -2
- package/dist/runtime/document-runtime.js +13 -13
- package/dist/{session-B7u82EJF.d.cts → session-BnGIjaex.d.cts} +3 -3
- package/dist/{session-BWMJ9jm4.d.ts → session-vEYKf-w3.d.ts} +3 -3
- package/dist/session.cjs +51 -8
- package/dist/session.d.cts +5 -5
- package/dist/session.d.ts +5 -5
- package/dist/session.js +4 -4
- package/dist/tailwind.cjs +215 -61
- package/dist/tailwind.d.cts +2 -2
- package/dist/tailwind.d.ts +2 -2
- package/dist/tailwind.js +5 -5
- package/dist/{types-BQjdVZsh.d.cts → types-BLuvZ6cQ.d.cts} +2 -2
- package/dist/{types-DvvmS5A7.d.ts → types-Dutlyj0T.d.ts} +2 -2
- package/dist/ui-tailwind/editor-surface/search-plugin.d.cts +3 -3
- package/dist/ui-tailwind/editor-surface/search-plugin.d.ts +3 -3
- package/dist/ui-tailwind/editor-surface/search-plugin.js +3 -3
- package/dist/ui-tailwind.cjs +215 -61
- package/dist/ui-tailwind.d.cts +3 -3
- package/dist/ui-tailwind.d.ts +3 -3
- package/dist/ui-tailwind.js +5 -5
- 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-
|
|
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
|
*
|
|
@@ -11592,6 +11718,88 @@ interface HyperlinkTextEditActionsInput {
|
|
|
11592
11718
|
readonly actorId?: string;
|
|
11593
11719
|
readonly origin?: "ui" | "agent" | "host";
|
|
11594
11720
|
}
|
|
11721
|
+
interface TemplateTargetOccurrenceInput {
|
|
11722
|
+
readonly refId?: string;
|
|
11723
|
+
readonly occurrenceIndexInRef?: number;
|
|
11724
|
+
readonly occurrenceIndexGlobal?: number;
|
|
11725
|
+
}
|
|
11726
|
+
interface TemplateTargetLocationInput {
|
|
11727
|
+
readonly story?: string;
|
|
11728
|
+
readonly refId?: string;
|
|
11729
|
+
readonly blockKind?: "paragraph" | "table-cell" | "list-item" | "heading" | "field" | "hyperlink" | "unknown";
|
|
11730
|
+
readonly start?: number;
|
|
11731
|
+
readonly end?: number;
|
|
11732
|
+
readonly tableRefId?: string;
|
|
11733
|
+
readonly rowRefId?: string;
|
|
11734
|
+
readonly cellRefId?: string;
|
|
11735
|
+
readonly rowIndex?: number | null;
|
|
11736
|
+
readonly columnIndex?: number | null;
|
|
11737
|
+
readonly columnHeader?: string;
|
|
11738
|
+
readonly rowLabel?: string;
|
|
11739
|
+
readonly prefix?: string;
|
|
11740
|
+
readonly suffix?: string;
|
|
11741
|
+
readonly bindingHash?: string;
|
|
11742
|
+
}
|
|
11743
|
+
interface TemplateTargetInput {
|
|
11744
|
+
readonly kind?: "template-field" | "template-clause";
|
|
11745
|
+
readonly fieldId?: string;
|
|
11746
|
+
readonly clauseId?: string;
|
|
11747
|
+
readonly name?: string;
|
|
11748
|
+
readonly groupId?: string;
|
|
11749
|
+
readonly valueType?: "text" | "number" | "date" | "currency" | "boolean" | "option" | "clause" | "unknown";
|
|
11750
|
+
readonly placeholderText?: string;
|
|
11751
|
+
readonly expectedText?: string;
|
|
11752
|
+
readonly location?: TemplateTargetLocationInput;
|
|
11753
|
+
readonly occurrence?: TemplateTargetOccurrenceInput;
|
|
11754
|
+
readonly target?: AiActionsExactTargetInput;
|
|
11755
|
+
}
|
|
11756
|
+
interface TemplateTargetReadback {
|
|
11757
|
+
readonly text?: string;
|
|
11758
|
+
readonly excerpt?: string;
|
|
11759
|
+
readonly isEmpty?: boolean;
|
|
11760
|
+
readonly occurrenceCount?: number;
|
|
11761
|
+
}
|
|
11762
|
+
interface TemplateTargetValidationItem {
|
|
11763
|
+
readonly status: "valid" | "warning" | "blocked";
|
|
11764
|
+
readonly targetKind: "template-field" | "template-clause";
|
|
11765
|
+
readonly fieldId?: string;
|
|
11766
|
+
readonly clauseId?: string;
|
|
11767
|
+
readonly name?: string;
|
|
11768
|
+
readonly groupId?: string;
|
|
11769
|
+
readonly canFill: boolean;
|
|
11770
|
+
readonly target?: AiActionsTargetSummary;
|
|
11771
|
+
readonly readback?: TemplateTargetReadback;
|
|
11772
|
+
readonly blockers?: readonly string[];
|
|
11773
|
+
readonly blockerDetails?: readonly AiActionsBlockerDetail[];
|
|
11774
|
+
readonly warnings?: readonly string[];
|
|
11775
|
+
}
|
|
11776
|
+
interface ValidateTemplateTargetsActionsInput {
|
|
11777
|
+
readonly targets: readonly TemplateTargetInput[];
|
|
11778
|
+
readonly allowDuplicateRanges?: boolean;
|
|
11779
|
+
}
|
|
11780
|
+
interface ValidateTemplateTargetsActionsResult {
|
|
11781
|
+
readonly status: "valid" | "partial" | "blocked";
|
|
11782
|
+
readonly targets: readonly TemplateTargetValidationItem[];
|
|
11783
|
+
readonly blockers?: readonly string[];
|
|
11784
|
+
readonly blockerDetails?: readonly AiActionsBlockerDetail[];
|
|
11785
|
+
}
|
|
11786
|
+
interface TemplateTargetReadActionsInput {
|
|
11787
|
+
readonly target: TemplateTargetInput;
|
|
11788
|
+
}
|
|
11789
|
+
interface TemplateTargetReadActionsResult {
|
|
11790
|
+
readonly status: "read" | "blocked";
|
|
11791
|
+
readonly target?: AiActionsTargetSummary;
|
|
11792
|
+
readonly readback?: TemplateTargetReadback;
|
|
11793
|
+
readonly blockers?: readonly string[];
|
|
11794
|
+
readonly blockerDetails?: readonly AiActionsBlockerDetail[];
|
|
11795
|
+
}
|
|
11796
|
+
interface TemplateFieldFillActionsInput {
|
|
11797
|
+
readonly field: TemplateTargetInput;
|
|
11798
|
+
readonly text: string;
|
|
11799
|
+
readonly actorId?: string;
|
|
11800
|
+
readonly origin?: "ui" | "agent" | "host";
|
|
11801
|
+
readonly proposalId?: string;
|
|
11802
|
+
}
|
|
11595
11803
|
interface RewriteAllActionsInput extends Omit<RewriteActionsInput, "target"> {
|
|
11596
11804
|
readonly query: string;
|
|
11597
11805
|
readonly kind?: SemanticScopeKind;
|
|
@@ -11788,6 +11996,13 @@ type RunPlanActionsStep = (RunPlanStepBase & {
|
|
|
11788
11996
|
readonly text: string;
|
|
11789
11997
|
readonly actorId?: string;
|
|
11790
11998
|
readonly origin?: "ui" | "agent" | "host";
|
|
11999
|
+
}) | (RunPlanStepBase & {
|
|
12000
|
+
readonly kind: "templateFieldFill";
|
|
12001
|
+
readonly field: TemplateTargetInput;
|
|
12002
|
+
readonly text: string;
|
|
12003
|
+
readonly actorId?: string;
|
|
12004
|
+
readonly origin?: "ui" | "agent" | "host";
|
|
12005
|
+
readonly proposalId?: string;
|
|
11791
12006
|
}) | (RunPlanStepBase & {
|
|
11792
12007
|
readonly kind: "listOperation";
|
|
11793
12008
|
readonly target: AiActionsExactTargetInput;
|
|
@@ -11906,6 +12121,9 @@ declare function createActionsFamily(runtime: RuntimeApiHandle): {
|
|
|
11906
12121
|
bookmarkEdit(input: BookmarkEditActionsInput): ApplyActionsResult;
|
|
11907
12122
|
hyperlinkDestinationEdit(input: HyperlinkDestinationEditActionsInput): ApplyActionsResult;
|
|
11908
12123
|
hyperlinkTextEdit(input: HyperlinkTextEditActionsInput): ApplyActionsResult;
|
|
12124
|
+
validateTemplateTargets(input: ValidateTemplateTargetsActionsInput): ValidateTemplateTargetsActionsResult;
|
|
12125
|
+
templateTargetRead(input: TemplateTargetReadActionsInput): TemplateTargetReadActionsResult;
|
|
12126
|
+
templateFieldFill(input: TemplateFieldFillActionsInput): ApplyActionsResult;
|
|
11909
12127
|
listOperation(input: ListOperationActionsInput): ApplyActionsResult;
|
|
11910
12128
|
tableFragment(input: TableFragmentActionsInput): ApplyActionsResult;
|
|
11911
12129
|
tableSelection(input: TableSelectionActionsInput): ApplyActionsResult;
|
|
@@ -12672,6 +12890,7 @@ type ApiV3Runtime = {
|
|
|
12672
12890
|
readonly search: ReturnType<typeof createSearchFamily>;
|
|
12673
12891
|
readonly table: ReturnType<typeof createTableFamily>;
|
|
12674
12892
|
readonly viewport: ReturnType<typeof createViewportFamily>;
|
|
12893
|
+
readonly lists: ReturnType<typeof createListsFamily>;
|
|
12675
12894
|
};
|
|
12676
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>;
|
|
12677
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-
|
|
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
|
*
|
|
@@ -11592,6 +11718,88 @@ interface HyperlinkTextEditActionsInput {
|
|
|
11592
11718
|
readonly actorId?: string;
|
|
11593
11719
|
readonly origin?: "ui" | "agent" | "host";
|
|
11594
11720
|
}
|
|
11721
|
+
interface TemplateTargetOccurrenceInput {
|
|
11722
|
+
readonly refId?: string;
|
|
11723
|
+
readonly occurrenceIndexInRef?: number;
|
|
11724
|
+
readonly occurrenceIndexGlobal?: number;
|
|
11725
|
+
}
|
|
11726
|
+
interface TemplateTargetLocationInput {
|
|
11727
|
+
readonly story?: string;
|
|
11728
|
+
readonly refId?: string;
|
|
11729
|
+
readonly blockKind?: "paragraph" | "table-cell" | "list-item" | "heading" | "field" | "hyperlink" | "unknown";
|
|
11730
|
+
readonly start?: number;
|
|
11731
|
+
readonly end?: number;
|
|
11732
|
+
readonly tableRefId?: string;
|
|
11733
|
+
readonly rowRefId?: string;
|
|
11734
|
+
readonly cellRefId?: string;
|
|
11735
|
+
readonly rowIndex?: number | null;
|
|
11736
|
+
readonly columnIndex?: number | null;
|
|
11737
|
+
readonly columnHeader?: string;
|
|
11738
|
+
readonly rowLabel?: string;
|
|
11739
|
+
readonly prefix?: string;
|
|
11740
|
+
readonly suffix?: string;
|
|
11741
|
+
readonly bindingHash?: string;
|
|
11742
|
+
}
|
|
11743
|
+
interface TemplateTargetInput {
|
|
11744
|
+
readonly kind?: "template-field" | "template-clause";
|
|
11745
|
+
readonly fieldId?: string;
|
|
11746
|
+
readonly clauseId?: string;
|
|
11747
|
+
readonly name?: string;
|
|
11748
|
+
readonly groupId?: string;
|
|
11749
|
+
readonly valueType?: "text" | "number" | "date" | "currency" | "boolean" | "option" | "clause" | "unknown";
|
|
11750
|
+
readonly placeholderText?: string;
|
|
11751
|
+
readonly expectedText?: string;
|
|
11752
|
+
readonly location?: TemplateTargetLocationInput;
|
|
11753
|
+
readonly occurrence?: TemplateTargetOccurrenceInput;
|
|
11754
|
+
readonly target?: AiActionsExactTargetInput;
|
|
11755
|
+
}
|
|
11756
|
+
interface TemplateTargetReadback {
|
|
11757
|
+
readonly text?: string;
|
|
11758
|
+
readonly excerpt?: string;
|
|
11759
|
+
readonly isEmpty?: boolean;
|
|
11760
|
+
readonly occurrenceCount?: number;
|
|
11761
|
+
}
|
|
11762
|
+
interface TemplateTargetValidationItem {
|
|
11763
|
+
readonly status: "valid" | "warning" | "blocked";
|
|
11764
|
+
readonly targetKind: "template-field" | "template-clause";
|
|
11765
|
+
readonly fieldId?: string;
|
|
11766
|
+
readonly clauseId?: string;
|
|
11767
|
+
readonly name?: string;
|
|
11768
|
+
readonly groupId?: string;
|
|
11769
|
+
readonly canFill: boolean;
|
|
11770
|
+
readonly target?: AiActionsTargetSummary;
|
|
11771
|
+
readonly readback?: TemplateTargetReadback;
|
|
11772
|
+
readonly blockers?: readonly string[];
|
|
11773
|
+
readonly blockerDetails?: readonly AiActionsBlockerDetail[];
|
|
11774
|
+
readonly warnings?: readonly string[];
|
|
11775
|
+
}
|
|
11776
|
+
interface ValidateTemplateTargetsActionsInput {
|
|
11777
|
+
readonly targets: readonly TemplateTargetInput[];
|
|
11778
|
+
readonly allowDuplicateRanges?: boolean;
|
|
11779
|
+
}
|
|
11780
|
+
interface ValidateTemplateTargetsActionsResult {
|
|
11781
|
+
readonly status: "valid" | "partial" | "blocked";
|
|
11782
|
+
readonly targets: readonly TemplateTargetValidationItem[];
|
|
11783
|
+
readonly blockers?: readonly string[];
|
|
11784
|
+
readonly blockerDetails?: readonly AiActionsBlockerDetail[];
|
|
11785
|
+
}
|
|
11786
|
+
interface TemplateTargetReadActionsInput {
|
|
11787
|
+
readonly target: TemplateTargetInput;
|
|
11788
|
+
}
|
|
11789
|
+
interface TemplateTargetReadActionsResult {
|
|
11790
|
+
readonly status: "read" | "blocked";
|
|
11791
|
+
readonly target?: AiActionsTargetSummary;
|
|
11792
|
+
readonly readback?: TemplateTargetReadback;
|
|
11793
|
+
readonly blockers?: readonly string[];
|
|
11794
|
+
readonly blockerDetails?: readonly AiActionsBlockerDetail[];
|
|
11795
|
+
}
|
|
11796
|
+
interface TemplateFieldFillActionsInput {
|
|
11797
|
+
readonly field: TemplateTargetInput;
|
|
11798
|
+
readonly text: string;
|
|
11799
|
+
readonly actorId?: string;
|
|
11800
|
+
readonly origin?: "ui" | "agent" | "host";
|
|
11801
|
+
readonly proposalId?: string;
|
|
11802
|
+
}
|
|
11595
11803
|
interface RewriteAllActionsInput extends Omit<RewriteActionsInput, "target"> {
|
|
11596
11804
|
readonly query: string;
|
|
11597
11805
|
readonly kind?: SemanticScopeKind;
|
|
@@ -11788,6 +11996,13 @@ type RunPlanActionsStep = (RunPlanStepBase & {
|
|
|
11788
11996
|
readonly text: string;
|
|
11789
11997
|
readonly actorId?: string;
|
|
11790
11998
|
readonly origin?: "ui" | "agent" | "host";
|
|
11999
|
+
}) | (RunPlanStepBase & {
|
|
12000
|
+
readonly kind: "templateFieldFill";
|
|
12001
|
+
readonly field: TemplateTargetInput;
|
|
12002
|
+
readonly text: string;
|
|
12003
|
+
readonly actorId?: string;
|
|
12004
|
+
readonly origin?: "ui" | "agent" | "host";
|
|
12005
|
+
readonly proposalId?: string;
|
|
11791
12006
|
}) | (RunPlanStepBase & {
|
|
11792
12007
|
readonly kind: "listOperation";
|
|
11793
12008
|
readonly target: AiActionsExactTargetInput;
|
|
@@ -11906,6 +12121,9 @@ declare function createActionsFamily(runtime: RuntimeApiHandle): {
|
|
|
11906
12121
|
bookmarkEdit(input: BookmarkEditActionsInput): ApplyActionsResult;
|
|
11907
12122
|
hyperlinkDestinationEdit(input: HyperlinkDestinationEditActionsInput): ApplyActionsResult;
|
|
11908
12123
|
hyperlinkTextEdit(input: HyperlinkTextEditActionsInput): ApplyActionsResult;
|
|
12124
|
+
validateTemplateTargets(input: ValidateTemplateTargetsActionsInput): ValidateTemplateTargetsActionsResult;
|
|
12125
|
+
templateTargetRead(input: TemplateTargetReadActionsInput): TemplateTargetReadActionsResult;
|
|
12126
|
+
templateFieldFill(input: TemplateFieldFillActionsInput): ApplyActionsResult;
|
|
11909
12127
|
listOperation(input: ListOperationActionsInput): ApplyActionsResult;
|
|
11910
12128
|
tableFragment(input: TableFragmentActionsInput): ApplyActionsResult;
|
|
11911
12129
|
tableSelection(input: TableSelectionActionsInput): ApplyActionsResult;
|
|
@@ -12672,6 +12890,7 @@ type ApiV3Runtime = {
|
|
|
12672
12890
|
readonly search: ReturnType<typeof createSearchFamily>;
|
|
12673
12891
|
readonly table: ReturnType<typeof createTableFamily>;
|
|
12674
12892
|
readonly viewport: ReturnType<typeof createViewportFamily>;
|
|
12893
|
+
readonly lists: ReturnType<typeof createListsFamily>;
|
|
12675
12894
|
};
|
|
12676
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>;
|
|
12677
12896
|
interface ApiV3 {
|