@beyondwork/docx-react-component 1.0.126 → 1.0.127
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.d.cts +1 -1
- package/dist/api/public-types.d.ts +1 -1
- package/dist/api/v3.cjs +79 -24
- package/dist/api/v3.d.cts +2 -2
- package/dist/api/v3.d.ts +2 -2
- package/dist/api/v3.js +2 -2
- package/dist/{chunk-6IGWPAR4.js → chunk-46KNRA4C.js} +34 -24
- package/dist/{chunk-4G3OS2H6.js → chunk-LZVBNDGU.js} +3 -0
- package/dist/{chunk-GL7XRYBY.js → chunk-PUMZWE2D.js} +8 -3
- package/dist/{chunk-FPRWV54X.js → chunk-XRACP43Q.js} +46 -1
- package/dist/core/commands/formatting-commands.d.cts +1 -1
- package/dist/core/commands/formatting-commands.d.ts +1 -1
- package/dist/core/commands/image-commands.d.cts +1 -1
- package/dist/core/commands/image-commands.d.ts +1 -1
- package/dist/core/commands/section-layout-commands.d.cts +1 -1
- package/dist/core/commands/section-layout-commands.d.ts +1 -1
- package/dist/core/commands/style-commands.d.cts +1 -1
- package/dist/core/commands/style-commands.d.ts +1 -1
- package/dist/core/commands/table-structure-commands.d.cts +1 -1
- package/dist/core/commands/table-structure-commands.d.ts +1 -1
- package/dist/core/commands/text-commands.cjs +3 -0
- package/dist/core/commands/text-commands.d.cts +2 -1
- package/dist/core/commands/text-commands.d.ts +2 -1
- package/dist/core/commands/text-commands.js +1 -1
- package/dist/core/selection/mapping.d.cts +1 -1
- package/dist/core/selection/mapping.d.ts +1 -1
- package/dist/core/state/editor-state.d.cts +1 -1
- package/dist/core/state/editor-state.d.ts +1 -1
- package/dist/index.cjs +88 -25
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +4 -4
- package/dist/io/docx-session.d.cts +3 -3
- package/dist/io/docx-session.d.ts +3 -3
- package/dist/{loader-CS9-9KFa.d.ts → loader-CFICtb9m.d.ts} +2 -2
- package/dist/{loader-OoWJ1_17.d.cts → loader-DveZOVuC.d.cts} +2 -2
- package/dist/{public-types-DdcHqcow.d.ts → public-types-Cgl3efbO.d.ts} +1 -0
- package/dist/{public-types-BP3vqJR5.d.cts → public-types-beSYFJRR.d.cts} +1 -0
- package/dist/public-types.d.cts +1 -1
- package/dist/public-types.d.ts +1 -1
- package/dist/runtime/collab.d.cts +2 -2
- package/dist/runtime/collab.d.ts +2 -2
- package/dist/runtime/document-runtime.cjs +55 -2
- package/dist/runtime/document-runtime.d.cts +1 -1
- package/dist/runtime/document-runtime.d.ts +1 -1
- package/dist/runtime/document-runtime.js +3 -3
- package/dist/{session-Cq-fzx3B.d.cts → session-B7u82EJF.d.cts} +2 -2
- package/dist/{session-DyFQt8Ph.d.ts → session-BWMJ9jm4.d.ts} +2 -2
- package/dist/session.d.cts +4 -4
- package/dist/session.d.ts +4 -4
- package/dist/tailwind.d.cts +1 -1
- package/dist/tailwind.d.ts +1 -1
- package/dist/{types-Bg7D-GD3.d.cts → types-BQjdVZsh.d.cts} +1 -1
- package/dist/{types-bJAgMq1M.d.ts → types-DvvmS5A7.d.ts} +1 -1
- package/dist/ui-tailwind/editor-surface/search-plugin.d.cts +2 -2
- package/dist/ui-tailwind/editor-surface/search-plugin.d.ts +2 -2
- package/dist/ui-tailwind.d.cts +2 -2
- package/dist/ui-tailwind.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as CanonicalDocumentEnvelope, S as SelectionSnapshot, g as TransactionMapping } from '../../public-types-
|
|
1
|
+
import { C as CanonicalDocumentEnvelope, S as SelectionSnapshot, g as TransactionMapping } from '../../public-types-beSYFJRR.cjs';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'yjs';
|
|
4
4
|
import 'y-protocols/awareness';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as CanonicalDocumentEnvelope, S as SelectionSnapshot, g as TransactionMapping } from '../../public-types-
|
|
1
|
+
import { C as CanonicalDocumentEnvelope, S as SelectionSnapshot, g as TransactionMapping } from '../../public-types-Cgl3efbO.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'yjs';
|
|
4
4
|
import 'y-protocols/awareness';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as SelectionSnapshot, M as MarginPresetDefinition, i as PageFormatDefinition, R as RuntimeRenderSnapshot } from '../../public-types-
|
|
1
|
+
import { h as SelectionSnapshot, M as MarginPresetDefinition, i as PageFormatDefinition, R as RuntimeRenderSnapshot } from '../../public-types-beSYFJRR.cjs';
|
|
2
2
|
import { C as CanonicalDocument, P as PageSize, a as PageMargins, b as ColumnProperties, c as PageNumbering } from '../../canonical-document-CXCFCbAz.cjs';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'yjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as SelectionSnapshot, M as MarginPresetDefinition, i as PageFormatDefinition, R as RuntimeRenderSnapshot } from '../../public-types-
|
|
1
|
+
import { h as SelectionSnapshot, M as MarginPresetDefinition, i as PageFormatDefinition, R as RuntimeRenderSnapshot } from '../../public-types-Cgl3efbO.js';
|
|
2
2
|
import { C as CanonicalDocument, P as PageSize, a as PageMargins, b as ColumnProperties, c as PageNumbering } from '../../canonical-document-CXCFCbAz.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'yjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PersistedEditorSnapshot, R as RuntimeRenderSnapshot } from '../../public-types-
|
|
1
|
+
import { P as PersistedEditorSnapshot, R as RuntimeRenderSnapshot } from '../../public-types-beSYFJRR.cjs';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'yjs';
|
|
4
4
|
import 'y-protocols/awareness';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PersistedEditorSnapshot, R as RuntimeRenderSnapshot } from '../../public-types-
|
|
1
|
+
import { P as PersistedEditorSnapshot, R as RuntimeRenderSnapshot } from '../../public-types-Cgl3efbO.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'yjs';
|
|
4
4
|
import 'y-protocols/awareness';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { gr as CellLocator, gs as TableStructureOperation, gt as applyTableStructureOperation, gu as applyTableStructureOperationForEditableTarget, gv as getTableStructureContext, gw as removeCellFromRow, gx as removeTableRowPure, gy as tableStructureActionHandleForTarget } from '../../public-types-
|
|
1
|
+
export { gr as CellLocator, gs as TableStructureOperation, gt as applyTableStructureOperation, gu as applyTableStructureOperationForEditableTarget, gv as getTableStructureContext, gw as removeCellFromRow, gx as removeTableRowPure, gy as tableStructureActionHandleForTarget } from '../../public-types-beSYFJRR.cjs';
|
|
2
2
|
import '../../canonical-document-CXCFCbAz.cjs';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'yjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { gr as CellLocator, gs as TableStructureOperation, gt as applyTableStructureOperation, gu as applyTableStructureOperationForEditableTarget, gv as getTableStructureContext, gw as removeCellFromRow, gx as removeTableRowPure, gy as tableStructureActionHandleForTarget } from '../../public-types-
|
|
1
|
+
export { gr as CellLocator, gs as TableStructureOperation, gt as applyTableStructureOperation, gu as applyTableStructureOperationForEditableTarget, gv as getTableStructureContext, gw as removeCellFromRow, gx as removeTableRowPure, gy as tableStructureActionHandleForTarget } from '../../public-types-Cgl3efbO.js';
|
|
2
2
|
import '../../canonical-document-CXCFCbAz.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'yjs';
|
|
@@ -9413,6 +9413,9 @@ function splitParagraph(document, selection, context) {
|
|
|
9413
9413
|
if (scope?.kind !== "top-level") {
|
|
9414
9414
|
return result;
|
|
9415
9415
|
}
|
|
9416
|
+
if (context.preserveNumberingOnSplit && scope.paragraph.numbering) {
|
|
9417
|
+
return result;
|
|
9418
|
+
}
|
|
9416
9419
|
const originalStyleId = scope.paragraph.styleId;
|
|
9417
9420
|
const nextStyleId = originalStyleId !== void 0 ? resolveNextStyle(originalStyleId, document.styles) : void 0;
|
|
9418
9421
|
if (nextStyleId !== void 0) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { T as TextTransactionTextTarget, C as CanonicalDocumentEnvelope, S as SelectionSnapshot, d as TextTransactionResult, e as StructuralMutationResult, I as InsertTableOptions, f as TextFormattingDirective, g as TransactionMapping } from '../../public-types-
|
|
1
|
+
import { T as TextTransactionTextTarget, C as CanonicalDocumentEnvelope, S as SelectionSnapshot, d as TextTransactionResult, e as StructuralMutationResult, I as InsertTableOptions, f as TextFormattingDirective, g as TransactionMapping } from '../../public-types-beSYFJRR.cjs';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'yjs';
|
|
4
4
|
import 'y-protocols/awareness';
|
|
@@ -11,6 +11,7 @@ interface TextCommandContext {
|
|
|
11
11
|
activeStorySize?: number;
|
|
12
12
|
textTarget?: TextTransactionTextTarget;
|
|
13
13
|
rejectTargetlessTableStructureInsert?: boolean;
|
|
14
|
+
preserveNumberingOnSplit?: boolean;
|
|
14
15
|
}
|
|
15
16
|
declare function insertText(document: CanonicalDocumentEnvelope, selection: SelectionSnapshot, text: string, context: TextCommandContext, formatting?: TextFormattingDirective): TextTransactionResult;
|
|
16
17
|
declare function deleteSelectionOrBackward(document: CanonicalDocumentEnvelope, selection: SelectionSnapshot, context: TextCommandContext): TextTransactionResult;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { T as TextTransactionTextTarget, C as CanonicalDocumentEnvelope, S as SelectionSnapshot, d as TextTransactionResult, e as StructuralMutationResult, I as InsertTableOptions, f as TextFormattingDirective, g as TransactionMapping } from '../../public-types-
|
|
1
|
+
import { T as TextTransactionTextTarget, C as CanonicalDocumentEnvelope, S as SelectionSnapshot, d as TextTransactionResult, e as StructuralMutationResult, I as InsertTableOptions, f as TextFormattingDirective, g as TransactionMapping } from '../../public-types-Cgl3efbO.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'yjs';
|
|
4
4
|
import 'y-protocols/awareness';
|
|
@@ -11,6 +11,7 @@ interface TextCommandContext {
|
|
|
11
11
|
activeStorySize?: number;
|
|
12
12
|
textTarget?: TextTransactionTextTarget;
|
|
13
13
|
rejectTargetlessTableStructureInsert?: boolean;
|
|
14
|
+
preserveNumberingOnSplit?: boolean;
|
|
14
15
|
}
|
|
15
16
|
declare function insertText(document: CanonicalDocumentEnvelope, selection: SelectionSnapshot, text: string, context: TextCommandContext, formatting?: TextFormattingDirective): TextTransactionResult;
|
|
16
17
|
declare function deleteSelectionOrBackward(document: CanonicalDocumentEnvelope, selection: SelectionSnapshot, context: TextCommandContext): TextTransactionResult;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { fi as Assoc, fj as BoundaryAssoc, fk as DEFAULT_BOUNDARY_ASSOC, fl as DetachedAnchor, fm as DocRange, a$ as EditorAnchorProjection, fn as InternalEditorAnchorProjection, fo as MAIN_STORY_TARGET, fp as MappingResult, fq as MappingStep, fr as NodeAnchor, fs as Position, ft as RangeAnchor, g as TransactionMapping, fu as anchorUnaffectedByMapping, fv as areAnchorsEqual, fw as createDetachedAnchor, fx as createEmptyMapping, fy as createNodeAnchor, fz as createRangeAnchor, fA as getEffectiveRange, fB as mapAnchor, fC as mapPosition, fD as mapRange, fE as normalizeRange, fF as storyTargetsEqual } from '../../public-types-
|
|
1
|
+
export { fi as Assoc, fj as BoundaryAssoc, fk as DEFAULT_BOUNDARY_ASSOC, fl as DetachedAnchor, fm as DocRange, a$ as EditorAnchorProjection, fn as InternalEditorAnchorProjection, fo as MAIN_STORY_TARGET, fp as MappingResult, fq as MappingStep, fr as NodeAnchor, fs as Position, ft as RangeAnchor, g as TransactionMapping, fu as anchorUnaffectedByMapping, fv as areAnchorsEqual, fw as createDetachedAnchor, fx as createEmptyMapping, fy as createNodeAnchor, fz as createRangeAnchor, fA as getEffectiveRange, fB as mapAnchor, fC as mapPosition, fD as mapRange, fE as normalizeRange, fF as storyTargetsEqual } from '../../public-types-beSYFJRR.cjs';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'yjs';
|
|
4
4
|
import 'y-protocols/awareness';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { fi as Assoc, fj as BoundaryAssoc, fk as DEFAULT_BOUNDARY_ASSOC, fl as DetachedAnchor, fm as DocRange, a$ as EditorAnchorProjection, fn as InternalEditorAnchorProjection, fo as MAIN_STORY_TARGET, fp as MappingResult, fq as MappingStep, fr as NodeAnchor, fs as Position, ft as RangeAnchor, g as TransactionMapping, fu as anchorUnaffectedByMapping, fv as areAnchorsEqual, fw as createDetachedAnchor, fx as createEmptyMapping, fy as createNodeAnchor, fz as createRangeAnchor, fA as getEffectiveRange, fB as mapAnchor, fC as mapPosition, fD as mapRange, fE as normalizeRange, fF as storyTargetsEqual } from '../../public-types-
|
|
1
|
+
export { fi as Assoc, fj as BoundaryAssoc, fk as DEFAULT_BOUNDARY_ASSOC, fl as DetachedAnchor, fm as DocRange, a$ as EditorAnchorProjection, fn as InternalEditorAnchorProjection, fo as MAIN_STORY_TARGET, fp as MappingResult, fq as MappingStep, fr as NodeAnchor, fs as Position, ft as RangeAnchor, g as TransactionMapping, fu as anchorUnaffectedByMapping, fv as areAnchorsEqual, fw as createDetachedAnchor, fx as createEmptyMapping, fy as createNodeAnchor, fz as createRangeAnchor, fA as getEffectiveRange, fB as mapAnchor, fC as mapPosition, fD as mapRange, fE as normalizeRange, fF as storyTargetsEqual } from '../../public-types-Cgl3efbO.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'yjs';
|
|
4
4
|
import 'y-protocols/awareness';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as CanonicalDocumentEnvelope, fG as CommandStateSnapshot, fH as CommentEntryRecord, fI as CommentResolutionRecord, fJ as CommentSidebarSnapshot, fK as CommentThreadRecord, c2 as CompatibilityFeatureClass, c3 as CompatibilityFeatureEntry, fL as CompatibilityPanelSnapshot, q as CompatibilityReport, fM as CreateEditorStateOptions, fN as DocumentStats, r as EditorError, cm as EditorErrorCode, fO as EditorRuntimeState, fP as EditorState, cB as EditorWarning, cC as EditorWarningCode, fQ as PersistedEditorSnapshot, fR as ReviewStore, fS as RevisionMetadataRecord, fT as RevisionRecord, fU as RuntimePhase, fV as RuntimeRenderSnapshot, S as SelectionSnapshot, fW as TrackedChangesSnapshot, fX as createDefaultCanonicalDocument, fY as createEditorState, fZ as createEmptyCompatibilityReport, f_ as createEmptyReviewStore, f$ as createPersistedEditorSnapshot, g0 as createSelectionSnapshot, g1 as deriveDocumentStats, g2 as deriveRenderSnapshot, g3 as normalizeCommentThreadRecord } from '../../public-types-
|
|
1
|
+
export { C as CanonicalDocumentEnvelope, fG as CommandStateSnapshot, fH as CommentEntryRecord, fI as CommentResolutionRecord, fJ as CommentSidebarSnapshot, fK as CommentThreadRecord, c2 as CompatibilityFeatureClass, c3 as CompatibilityFeatureEntry, fL as CompatibilityPanelSnapshot, q as CompatibilityReport, fM as CreateEditorStateOptions, fN as DocumentStats, r as EditorError, cm as EditorErrorCode, fO as EditorRuntimeState, fP as EditorState, cB as EditorWarning, cC as EditorWarningCode, fQ as PersistedEditorSnapshot, fR as ReviewStore, fS as RevisionMetadataRecord, fT as RevisionRecord, fU as RuntimePhase, fV as RuntimeRenderSnapshot, S as SelectionSnapshot, fW as TrackedChangesSnapshot, fX as createDefaultCanonicalDocument, fY as createEditorState, fZ as createEmptyCompatibilityReport, f_ as createEmptyReviewStore, f$ as createPersistedEditorSnapshot, g0 as createSelectionSnapshot, g1 as deriveDocumentStats, g2 as deriveRenderSnapshot, g3 as normalizeCommentThreadRecord } from '../../public-types-beSYFJRR.cjs';
|
|
2
2
|
export { o as createCanonicalDocumentId } from '../../canonical-document-CXCFCbAz.cjs';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'yjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as CanonicalDocumentEnvelope, fG as CommandStateSnapshot, fH as CommentEntryRecord, fI as CommentResolutionRecord, fJ as CommentSidebarSnapshot, fK as CommentThreadRecord, c2 as CompatibilityFeatureClass, c3 as CompatibilityFeatureEntry, fL as CompatibilityPanelSnapshot, q as CompatibilityReport, fM as CreateEditorStateOptions, fN as DocumentStats, r as EditorError, cm as EditorErrorCode, fO as EditorRuntimeState, fP as EditorState, cB as EditorWarning, cC as EditorWarningCode, fQ as PersistedEditorSnapshot, fR as ReviewStore, fS as RevisionMetadataRecord, fT as RevisionRecord, fU as RuntimePhase, fV as RuntimeRenderSnapshot, S as SelectionSnapshot, fW as TrackedChangesSnapshot, fX as createDefaultCanonicalDocument, fY as createEditorState, fZ as createEmptyCompatibilityReport, f_ as createEmptyReviewStore, f$ as createPersistedEditorSnapshot, g0 as createSelectionSnapshot, g1 as deriveDocumentStats, g2 as deriveRenderSnapshot, g3 as normalizeCommentThreadRecord } from '../../public-types-
|
|
1
|
+
export { C as CanonicalDocumentEnvelope, fG as CommandStateSnapshot, fH as CommentEntryRecord, fI as CommentResolutionRecord, fJ as CommentSidebarSnapshot, fK as CommentThreadRecord, c2 as CompatibilityFeatureClass, c3 as CompatibilityFeatureEntry, fL as CompatibilityPanelSnapshot, q as CompatibilityReport, fM as CreateEditorStateOptions, fN as DocumentStats, r as EditorError, cm as EditorErrorCode, fO as EditorRuntimeState, fP as EditorState, cB as EditorWarning, cC as EditorWarningCode, fQ as PersistedEditorSnapshot, fR as ReviewStore, fS as RevisionMetadataRecord, fT as RevisionRecord, fU as RuntimePhase, fV as RuntimeRenderSnapshot, S as SelectionSnapshot, fW as TrackedChangesSnapshot, fX as createDefaultCanonicalDocument, fY as createEditorState, fZ as createEmptyCompatibilityReport, f_ as createEmptyReviewStore, f$ as createPersistedEditorSnapshot, g0 as createSelectionSnapshot, g1 as deriveDocumentStats, g2 as deriveRenderSnapshot, g3 as normalizeCommentThreadRecord } from '../../public-types-Cgl3efbO.js';
|
|
2
2
|
export { o as createCanonicalDocumentId } from '../../canonical-document-CXCFCbAz.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'yjs';
|
package/dist/index.cjs
CHANGED
|
@@ -28074,6 +28074,9 @@ function splitParagraph(document2, selection, context) {
|
|
|
28074
28074
|
if (scope?.kind !== "top-level") {
|
|
28075
28075
|
return result;
|
|
28076
28076
|
}
|
|
28077
|
+
if (context.preserveNumberingOnSplit && scope.paragraph.numbering) {
|
|
28078
|
+
return result;
|
|
28079
|
+
}
|
|
28077
28080
|
const originalStyleId = scope.paragraph.styleId;
|
|
28078
28081
|
const nextStyleId = originalStyleId !== void 0 ? resolveNextStyle(originalStyleId, document2.styles) : void 0;
|
|
28079
28082
|
if (nextStyleId !== void 0) {
|
|
@@ -52092,7 +52095,52 @@ function compileReplacement(inputs) {
|
|
|
52092
52095
|
|
|
52093
52096
|
// src/runtime/scopes/replacement/apply.ts
|
|
52094
52097
|
function documentHash2(doc) {
|
|
52095
|
-
|
|
52098
|
+
let hash = 2166136261;
|
|
52099
|
+
const mix = (value) => {
|
|
52100
|
+
for (let i = 0; i < value.length; i += 1) {
|
|
52101
|
+
hash ^= value.charCodeAt(i);
|
|
52102
|
+
hash = Math.imul(hash, 16777619);
|
|
52103
|
+
}
|
|
52104
|
+
};
|
|
52105
|
+
const visit = (value) => {
|
|
52106
|
+
if (value === null) {
|
|
52107
|
+
mix("null");
|
|
52108
|
+
return;
|
|
52109
|
+
}
|
|
52110
|
+
switch (typeof value) {
|
|
52111
|
+
case "string":
|
|
52112
|
+
case "number":
|
|
52113
|
+
case "boolean":
|
|
52114
|
+
case "bigint":
|
|
52115
|
+
mix(`${typeof value}:${String(value)}`);
|
|
52116
|
+
return;
|
|
52117
|
+
case "undefined":
|
|
52118
|
+
mix("undefined");
|
|
52119
|
+
return;
|
|
52120
|
+
case "object":
|
|
52121
|
+
if (Array.isArray(value)) {
|
|
52122
|
+
mix(`[${value.length}`);
|
|
52123
|
+
for (const item of value) visit(item);
|
|
52124
|
+
mix("]");
|
|
52125
|
+
return;
|
|
52126
|
+
}
|
|
52127
|
+
{
|
|
52128
|
+
const record = value;
|
|
52129
|
+
const keys = Object.keys(record).sort();
|
|
52130
|
+
mix(`{${keys.length}`);
|
|
52131
|
+
for (const key of keys) {
|
|
52132
|
+
mix(key);
|
|
52133
|
+
visit(record[key]);
|
|
52134
|
+
}
|
|
52135
|
+
mix("}");
|
|
52136
|
+
}
|
|
52137
|
+
return;
|
|
52138
|
+
default:
|
|
52139
|
+
mix(typeof value);
|
|
52140
|
+
}
|
|
52141
|
+
};
|
|
52142
|
+
visit(doc.content);
|
|
52143
|
+
return (hash >>> 0).toString(36).padStart(7, "0");
|
|
52096
52144
|
}
|
|
52097
52145
|
function compileScopeById(document2, overlay, scopeId) {
|
|
52098
52146
|
const paragraphIndexByBlockIndex = buildParagraphIndexMap(document2);
|
|
@@ -72125,7 +72173,8 @@ function createDocumentRuntime(options) {
|
|
|
72125
72173
|
blockedReasons: [blockedReason]
|
|
72126
72174
|
});
|
|
72127
72175
|
}
|
|
72128
|
-
const
|
|
72176
|
+
const listBoundaryDeleteUsesStoryText = targetResolution?.kind === "accepted" && editableTarget?.listAddress?.operationScope === "list-text" && isTopLevelMainStoryBlockPath(editableTarget.blockPath) && selection.isCollapsed && (commandForDispatch.type === "text.delete-backward" && selection.anchor === targetResolution.range.from || commandForDispatch.type === "text.delete-forward" && selection.anchor === targetResolution.range.to);
|
|
72177
|
+
const textTarget = targetResolution?.kind === "accepted" && !listBoundaryDeleteUsesStoryText ? targetResolution.textTarget : legacyTextTarget;
|
|
72129
72178
|
const context = {
|
|
72130
72179
|
timestamp,
|
|
72131
72180
|
documentMode: textOptions.documentModeOverride ?? workflowCoordinator.getEffectiveDocumentMode(selection),
|
|
@@ -72135,6 +72184,7 @@ function createDocumentRuntime(options) {
|
|
|
72135
72184
|
editableTargetCache: editableTargetBlockCache,
|
|
72136
72185
|
activeStorySize: cachedRenderSnapshot.surface?.storySize,
|
|
72137
72186
|
textTarget,
|
|
72187
|
+
preserveNumberingOnSplit: commandForDispatch.type === "paragraph.split" && targetResolution?.kind === "accepted" && editableTarget?.listAddress?.operationScope === "list-text",
|
|
72138
72188
|
rejectTargetlessTableStructureInsert: true
|
|
72139
72189
|
};
|
|
72140
72190
|
const baseState = selection === state.selection ? state : {
|
|
@@ -74983,6 +75033,9 @@ function stripStoryTarget2(selection) {
|
|
|
74983
75033
|
const { storyTarget: _storyTarget, ...rest } = selection;
|
|
74984
75034
|
return rest;
|
|
74985
75035
|
}
|
|
75036
|
+
function isTopLevelMainStoryBlockPath(blockPath) {
|
|
75037
|
+
return typeof blockPath === "string" && /^main\/block\[\d+\]$/u.test(blockPath);
|
|
75038
|
+
}
|
|
74986
75039
|
function toInternalSelectionSnapshot2(selection) {
|
|
74987
75040
|
return {
|
|
74988
75041
|
anchor: selection.anchor,
|
|
@@ -127907,6 +127960,18 @@ function createTableActionFamily(runtime) {
|
|
|
127907
127960
|
}
|
|
127908
127961
|
};
|
|
127909
127962
|
}
|
|
127963
|
+
function findTableActionDescriptor(runtime, actionHandle) {
|
|
127964
|
+
const document2 = runtime.getCanonicalDocument();
|
|
127965
|
+
const seed = documentSeed(runtime);
|
|
127966
|
+
const surface = runtime.getRenderSnapshot().surface?.blocks ?? [];
|
|
127967
|
+
for (const target of collectEditableTargetRefs(document2)) {
|
|
127968
|
+
if (!target.table || callableOperationsForScope(target.table.operationScope).length === 0 || tableActionHandle(seed, target.targetKey) !== actionHandle || !isResolvableCurrentTableActionTarget(runtime, surface, target)) {
|
|
127969
|
+
continue;
|
|
127970
|
+
}
|
|
127971
|
+
return projectCurrentTableTarget(document2, seed, target);
|
|
127972
|
+
}
|
|
127973
|
+
return null;
|
|
127974
|
+
}
|
|
127910
127975
|
function isSupportedTableActionEvidence(entry) {
|
|
127911
127976
|
return isSupportedTableStructureEvidence(entry) || isSupportedTableTextEvidence(entry);
|
|
127912
127977
|
}
|
|
@@ -127925,6 +127990,7 @@ function projectTableActionDescriptor(document2, seed, entry) {
|
|
|
127925
127990
|
const callableOperations = callableOperationsForScope(scope);
|
|
127926
127991
|
const supportedOperations = operationsForScope(scope);
|
|
127927
127992
|
if (callableOperations.length === 0) return [];
|
|
127993
|
+
const selectionRequiredOperations = selectionRequiredOperationsForScope(scope);
|
|
127928
127994
|
return [
|
|
127929
127995
|
{
|
|
127930
127996
|
actionHandle: tableActionHandle(seed, entry.targetKey),
|
|
@@ -127933,6 +127999,7 @@ function projectTableActionDescriptor(document2, seed, entry) {
|
|
|
127933
127999
|
relation: entry.relation,
|
|
127934
128000
|
operationScope: scope,
|
|
127935
128001
|
callableOperations,
|
|
128002
|
+
...selectionRequiredOperations.length > 0 ? { selectionRequiredOperations } : {},
|
|
127936
128003
|
supportedOperations,
|
|
127937
128004
|
...scope === "text" ? { readback: tableTextReadback(readBlockPathText(document2, entry.blockPath)) } : {},
|
|
127938
128005
|
reason: entry.runtimeCommand.reason
|
|
@@ -127944,6 +128011,7 @@ function projectCurrentTableTarget(document2, seed, target) {
|
|
|
127944
128011
|
if (!table) return null;
|
|
127945
128012
|
const callableOperations = callableOperationsForScope(table.operationScope);
|
|
127946
128013
|
if (callableOperations.length === 0) return null;
|
|
128014
|
+
const selectionRequiredOperations = selectionRequiredOperationsForScope(table.operationScope);
|
|
127947
128015
|
return {
|
|
127948
128016
|
actionHandle: tableActionHandle(seed, target.targetKey),
|
|
127949
128017
|
family: table.operationScope === "text" ? "table-text" : "table-structure",
|
|
@@ -127951,6 +128019,7 @@ function projectCurrentTableTarget(document2, seed, target) {
|
|
|
127951
128019
|
relation: "contained-by-scope",
|
|
127952
128020
|
operationScope: table.operationScope,
|
|
127953
128021
|
callableOperations,
|
|
128022
|
+
...selectionRequiredOperations.length > 0 ? { selectionRequiredOperations } : {},
|
|
127954
128023
|
supportedOperations: operationsForScope(table.operationScope),
|
|
127955
128024
|
...table.operationScope === "text" ? { readback: tableTextReadback(readEditableTargetText(document2, target)) } : {},
|
|
127956
128025
|
reason: table.operationScope === "text" ? "l07:table-text-target-supported" : "l07:table-structure-target-supported"
|
|
@@ -128028,11 +128097,14 @@ function callableOperationsForScope(scope) {
|
|
|
128028
128097
|
case "text":
|
|
128029
128098
|
return TEXT_TRANSFER_OPERATIONS;
|
|
128030
128099
|
case "cell":
|
|
128031
|
-
return
|
|
128100
|
+
return CELL_STRUCTURE_OPERATIONS;
|
|
128032
128101
|
default:
|
|
128033
128102
|
return operationsForScope(scope);
|
|
128034
128103
|
}
|
|
128035
128104
|
}
|
|
128105
|
+
function selectionRequiredOperationsForScope(scope) {
|
|
128106
|
+
return scope === "cell" ? ["merge-cells"] : [];
|
|
128107
|
+
}
|
|
128036
128108
|
function operationsForScope(scope) {
|
|
128037
128109
|
switch (scope) {
|
|
128038
128110
|
case "text":
|
|
@@ -128459,9 +128531,6 @@ var DEFAULT_LOCATE_LIMIT = 20;
|
|
|
128459
128531
|
var DEFAULT_REWRITE_ALL_LIMIT = 10;
|
|
128460
128532
|
var DEFAULT_TABLE_TEXT_SCOPE_LIMIT = 3;
|
|
128461
128533
|
var DEFAULT_PLAN_STEP_LIMIT = 20;
|
|
128462
|
-
function documentContentHash(runtime) {
|
|
128463
|
-
return JSON.stringify(runtime.getCanonicalDocument().content);
|
|
128464
|
-
}
|
|
128465
128534
|
function createActionsFamily(runtime) {
|
|
128466
128535
|
const category = {
|
|
128467
128536
|
discover(input) {
|
|
@@ -128934,10 +129003,10 @@ function runPlanStep(runtime, mode, step, plan) {
|
|
|
128934
129003
|
...before.readback ? { beforeReadback: before.readback } : {}
|
|
128935
129004
|
};
|
|
128936
129005
|
}
|
|
128937
|
-
const
|
|
129006
|
+
const documentBeforeApply = runtime.getCanonicalDocument();
|
|
128938
129007
|
const applied = applyPlanStep(runtime, step, plan);
|
|
128939
|
-
const
|
|
128940
|
-
const projectedApply = !applied.applied &&
|
|
129008
|
+
const documentAfterApply = runtime.getCanonicalDocument();
|
|
129009
|
+
const projectedApply = !applied.applied && documentAfterApply !== documentBeforeApply ? withSuspectMutationApplyResult(applied, step.id, applied.target ?? before.target) : applied;
|
|
128941
129010
|
const after = step.kind === "flag" ? before : step.target ? readPlanTarget(runtime, step.target) : before;
|
|
128942
129011
|
return {
|
|
128943
129012
|
id: step.id,
|
|
@@ -128988,7 +129057,8 @@ function runPlanTableActionStep(runtime, mode, step, plan) {
|
|
|
128988
129057
|
tableAction: tableAction2
|
|
128989
129058
|
});
|
|
128990
129059
|
}
|
|
128991
|
-
|
|
129060
|
+
const isSelectionRequiredOperation = step.kind === "tableSelection" && operationKind !== void 0 && (tableAction2.selectionRequiredOperations ?? []).includes(operationKind) && tableSelectionStepHasDescriptor(step.operation);
|
|
129061
|
+
if (!operationKind || !tableAction2.callableOperations.includes(operationKind) && !isSelectionRequiredOperation) {
|
|
128992
129062
|
return blockedPlanStepFromDetails(
|
|
128993
129063
|
step.id,
|
|
128994
129064
|
step.kind,
|
|
@@ -129252,7 +129322,7 @@ function applyRewrite(runtime, target, input) {
|
|
|
129252
129322
|
);
|
|
129253
129323
|
}
|
|
129254
129324
|
const beforeText = target.scope.content.text;
|
|
129255
|
-
const
|
|
129325
|
+
const documentBeforeApply = runtime.getCanonicalDocument();
|
|
129256
129326
|
const result = createReplacementFamily(runtime).applyReplacementScope({
|
|
129257
129327
|
targetScopeId: target.handle.scopeId,
|
|
129258
129328
|
operation: "replace",
|
|
@@ -129264,7 +129334,7 @@ function applyRewrite(runtime, target, input) {
|
|
|
129264
129334
|
...input.origin ? { origin: input.origin } : {},
|
|
129265
129335
|
...input.proposalId ? { proposalId: input.proposalId } : {}
|
|
129266
129336
|
});
|
|
129267
|
-
const documentMutated =
|
|
129337
|
+
const documentMutated = runtime.getCanonicalDocument() !== documentBeforeApply;
|
|
129268
129338
|
if (!result.applied) {
|
|
129269
129339
|
return documentMutated ? withSuspectMutationApplyResult(
|
|
129270
129340
|
projectApplyResult(result, target),
|
|
@@ -129521,19 +129591,7 @@ function findTableAction(runtime, actionHandle) {
|
|
|
129521
129591
|
return action?.family === "table-text" ? action : null;
|
|
129522
129592
|
}
|
|
129523
129593
|
function findAnyTableAction(runtime, actionHandle) {
|
|
129524
|
-
|
|
129525
|
-
for (const scope of compiler.compileAllScopes()) {
|
|
129526
|
-
if (scope.kind !== "table") continue;
|
|
129527
|
-
const result = createTableActionFamily(runtime).listTableActions({
|
|
129528
|
-
handle: scope.handle,
|
|
129529
|
-
nowUtc: currentAuditTimestamp(runtime)
|
|
129530
|
-
});
|
|
129531
|
-
const action = result.actions.find(
|
|
129532
|
-
(candidate) => candidate.actionHandle === actionHandle
|
|
129533
|
-
);
|
|
129534
|
-
if (action) return action;
|
|
129535
|
-
}
|
|
129536
|
-
return null;
|
|
129594
|
+
return findTableActionDescriptor(runtime, actionHandle);
|
|
129537
129595
|
}
|
|
129538
129596
|
function findEditableTextAction(runtime, actionHandle) {
|
|
129539
129597
|
if (!actionHandle.startsWith("scope-command:text-leaf:")) return null;
|
|
@@ -130101,6 +130159,11 @@ function tablePlanOperationFamilyBlocker(stepKind, operationKind) {
|
|
|
130101
130159
|
}
|
|
130102
130160
|
return null;
|
|
130103
130161
|
}
|
|
130162
|
+
function tableSelectionStepHasDescriptor(operation) {
|
|
130163
|
+
return Boolean(
|
|
130164
|
+
operation && "selectionDescriptor" in operation && operation.selectionDescriptor
|
|
130165
|
+
);
|
|
130166
|
+
}
|
|
130104
130167
|
function listCommandForOperation(operation, paragraphIndex, origin) {
|
|
130105
130168
|
switch (operation.kind) {
|
|
130106
130169
|
case "toggle":
|
package/dist/index.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { b0 as TextCommandAck, b1 as TextCommandRefreshClass, b2 as WordReviewEditorProps, b3 as WordReviewEditorRef, a as EditorSessionState, P as PersistedEditorSnapshot, b4 as validatePersistedEditorSnapshot, b5 as PayloadSigner, b6 as PayloadSignature, b7 as TransportStatus, b8 as CollabPosture, b9 as PresenceSnapshot, ba as AwarenessIdentity, bb as ExternalCustody, bc as ExternalCustodyResolver, bd as ExternalCustodyRestoredContent, be as RuntimePageGraph, o as EditorSurfaceSnapshot, q as CompatibilityReport } from './public-types-
|
|
2
|
-
export { bf as ActiveListContext, bg as ActiveNoteContext, bh as AddCommentParams, bi as AddCommentReplyResult, bj as AddCommentResult, bk as AiExplanationScopeInput, bl as AiExplanationScopeResult, J as ApiV3, bm as AttachPayloadArgs, bn as AuthorKind, bo as AutosaveConfig, bp as AutosaveState, bq as AwarenessPeer, br as BatchEditEntryResult, bs as BatchEditOperation, bt as BatchEditOptions, bu as BatchEditResult, bv as CaretAffinity, bw as ChangeAnchor, bx as ChangeFilter, by as ChartPreviewResolveParams, bz as ChartSnapshot, bA as ChartSnapshotBubbleSeries, bB as ChartSnapshotData, bC as ChartSnapshotScatterSeries, bD as ChartSnapshotSeries, bE as CollabBlockReason, bF as CollabSession, bG as CollabSessionBridge, bH as CollabSessionEvent, bI as CollabSessionEventOrIntegrity, bJ as CollabSessionFacet, bK as CollabSessionOptions, bL as CommandStateSnapshot, bM as CommentAttachment, bN as CommentAudience, bO as CommentBody, bP as CommentLabel, bQ as CommentMention, bR as CommentNegotiationAction, bS as CommentNegotiationActionType, bT as CommentNegotiationEntry, bU as CommentNegotiationSnapshot, bV as CommentNegotiationState, bW as CommentPresentation, bX as CommentPresentationAction, bY as CommentPresentationReply, bZ as CommentPresentationSnapshot, b_ as CommentReaction, b$ as CommentSidebarSnapshot, c0 as CommentSidebarThreadEntrySnapshot, c1 as CommentSidebarThreadSnapshot, c2 as CompatibilityFeatureClass, c3 as CompatibilityFeatureEntry, c4 as CompatibilityPanelSnapshot, a5 as CreateApiV3Opts, c5 as CreateCollabSessionBridgeOptions, c6 as DispatchContext, c7 as DispatchResult, c8 as DocumentChunkKind, c9 as DocumentChunkSnapshot, ca as DocumentHeadingSnapshot, cb as DocumentLocationSnapshot, cc as DocumentLocationSource, cd as DocumentNavigationSnapshot, ce as DocumentOutlineHeadingSnapshot, cf as DocumentOutlineSnapshot, cg as DocumentPageSnapshot, ch as DocumentSectionSnapshot, ci as DocumentStats, cj as DocumentTextToken, ck as EditorAnchorProjection, cl as EditorDatastoreAdapter, r as EditorError, cm as EditorErrorCode, E as EditorHostAdapter, cn as EditorStateBlob, as as EditorStateLocation, ar as EditorStateNamespace, co as EditorStatePartLoadFailure, cp as EditorStatePartPersistFailure, cq as EditorStatePersister, cr as EditorStatePolicy, cs as EditorStatePolicyEntry, ct as EditorStatePolicyMigration, cu as EditorStateResolveErrorMode, cv as EditorStateResolver, cw as EditorStateStorageRef, cx as EditorStoryTarget, cy as EditorTelemetryEvent, cz as EditorUser, cA as EditorViewStateSnapshot, cB as EditorWarning, cC as EditorWarningCode, b as ExportDocxOptions, c as ExportResult, cD as ExternalCustodyArchivePayload, cE as ExternalDocumentSource, cF as HeaderFooterLinkPatch, cG as HostAnnotationItem, cH as HostAnnotationKind, cI as HostAnnotationOverlay, cJ as HostAnnotationSnapshot, cK as ISSUE_METADATA_ID, cL as InteractionGuardSnapshot, cM as IssueMetadataValue, cN as IssueMode, cO as IssueOwner, cP as IssueSeverity, cQ as LayoutMeasurement, cR as LoadRequest, cS as LoadResult, cT as LoadSourcePolicy, cU as MetadataIntegrity, cV as MetadataPersistenceMode, cW as MetadataResolverMissingError, cX as NegotiationBlockReason, cY as NegotiationCounterProposal, cZ as NegotiationHistoryRow, c_ as NegotiationRole, c$ as NegotiationVote, d0 as PageLayoutSnapshot, d1 as PageRegionHitTest, d2 as Participant, d3 as ParticipantRole, d4 as ParticipantRoster, d5 as PayloadVerifier, d6 as REVIEW_ACTION_METADATA_ID, d7 as RestorePointCheckpointType, d8 as RestorePointSnapshot, d9 as RestoreResult, da as ReviewActionKind, db as ReviewActionMetadataValue, dc as ReviewQueueItem, dd as ReviewQueueItemKind, de as ReviewQueueSnapshot, df as ReviewWorkItemSnapshot, dg as ReviewWorkSnapshot, dh as RuntimeContextAnalyticsActionHint, di as RuntimeContextAnalyticsBadge, dj as RuntimeContextAnalyticsCounts, dk as RuntimeContextAnalyticsProvenance, dl as RuntimeContextAnalyticsQuery, dm as RuntimeContextAnalyticsScopeKind, dn as RuntimeContextAnalyticsSnapshot, dp as RuntimeContextAnalyticsState, dq as RuntimeContextAnalyticsUnavailableField, R as RuntimeRenderSnapshot, dr as RuntimeSendToExternalArgs, ds as RuntimeSendToExternalResult, dt as SELECTION_TOOL_REGISTRY, du as SaveExportParams, dv as SaveExportResult, dw as SaveSessionParams, dx as SaveSessionResult, dy as SaveSnapshotParams, dz as SaveSnapshotResult, dA as ScopeCardModel, dB as ScopeIssueAction, dC as ScopeMetadataPersistence, dD as ScopeMetadataResolver, dE as ScopeMetadataStorageRef, dF as ScopeTagTouch, dG as SectionBreakType, dH as SectionLayoutPatch, dI as SectionPageNumberingPatch, h as SelectionSnapshot, dJ as SelectionToolKind, dK as SelectionToolRegistryEntry, dL as SendToExternalCallArgs, dM as SignatureAlgorithm, dN as SnapshotRefreshChangeKind, dO as SnapshotRefreshHints, dP as SnapshotRefreshInvalidateTarget, dQ as SnapshotRefreshStaleTarget, dR as StoryTextStreamSnapshot, dS as StyleCatalogEntrySnapshot, dT as StyleCatalogSnapshot, dU as SuggestionEntrySnapshot, dV as SuggestionGroup, dW as SuggestionsSnapshot, dX as SurfaceBlockSnapshot, dY as SurfaceInlineSegment, dZ as SurfaceTableCellSnapshot, d_ as SurfaceTableRowSnapshot, d$ as SurfaceTextMark, e0 as TamperGate, e1 as TamperGateArgs, e2 as TamperGateAttachArgs, e3 as TamperGateEvent, e4 as TamperGateGuardResult, e5 as TextCommandAckKind, e6 as TextProjection, e7 as TextProjectionLine, e8 as TextProjectionOptions, e9 as TextProjectionStoryEntry, ea as TocEntrySnapshot, eb as TocRegionSnapshot, ec as TocSnapshot, ed as TrackedChangeEntrySnapshot, ee as TrackedChangesSnapshot, ef as ViewMode, eg as WordReviewEditorChromeOptions, eh as WordReviewEditorChromePreset, ei as WordReviewEditorChromeVisibility, ej as WordReviewEditorEvent, ek as WorkflowBlockedCommandReason, el as WorkflowCandidateRange, em as WorkflowCandidateRangeOptions, en as WorkflowCommentMarkup, eo as WorkflowFieldMarkup, ep as WorkflowHighlightMarkup, eq as WorkflowMarkupBase, er as WorkflowMarkupItem, es as WorkflowMarkupKind, et as WorkflowMarkupSnapshot, eu as WorkflowMetadataDefinition, ev as WorkflowMetadataEntry, ew as WorkflowMetadataMarkup, ex as WorkflowMetadataPersistence, ey as WorkflowMetadataSnapshot, ez as WorkflowOpaqueFragmentMarkup, eA as WorkflowOverlay, eB as WorkflowOverlayPatch, eC as WorkflowProtectedRangeMarkup, eD as WorkflowRevisionMarkup, eE as WorkflowScope, eF as WorkflowScopeMode, eG as WorkflowScopeSnapshot, eH as WorkflowWorkItem, eI as WorkspaceMode, eJ as ZoomLevel, ap as createApiV3, eK as createCollabSession, eL as createCollabSessionBridge, eM as createCollabSessionFacet, eN as createHmacSigner, eO as createHmacVerifier, eP as createTamperGate, eQ as resolveSelectionToolRegistry, eR as runtimeSendToExternal, eS as sendToExternal, eT as signWorkflowPayloadXml, eU as verifyWorkflowPayloadXml } from './public-types-
|
|
1
|
+
import { b0 as TextCommandAck, b1 as TextCommandRefreshClass, b2 as WordReviewEditorProps, b3 as WordReviewEditorRef, a as EditorSessionState, P as PersistedEditorSnapshot, b4 as validatePersistedEditorSnapshot, b5 as PayloadSigner, b6 as PayloadSignature, b7 as TransportStatus, b8 as CollabPosture, b9 as PresenceSnapshot, ba as AwarenessIdentity, bb as ExternalCustody, bc as ExternalCustodyResolver, bd as ExternalCustodyRestoredContent, be as RuntimePageGraph, o as EditorSurfaceSnapshot, q as CompatibilityReport } from './public-types-beSYFJRR.cjs';
|
|
2
|
+
export { bf as ActiveListContext, bg as ActiveNoteContext, bh as AddCommentParams, bi as AddCommentReplyResult, bj as AddCommentResult, bk as AiExplanationScopeInput, bl as AiExplanationScopeResult, J as ApiV3, bm as AttachPayloadArgs, bn as AuthorKind, bo as AutosaveConfig, bp as AutosaveState, bq as AwarenessPeer, br as BatchEditEntryResult, bs as BatchEditOperation, bt as BatchEditOptions, bu as BatchEditResult, bv as CaretAffinity, bw as ChangeAnchor, bx as ChangeFilter, by as ChartPreviewResolveParams, bz as ChartSnapshot, bA as ChartSnapshotBubbleSeries, bB as ChartSnapshotData, bC as ChartSnapshotScatterSeries, bD as ChartSnapshotSeries, bE as CollabBlockReason, bF as CollabSession, bG as CollabSessionBridge, bH as CollabSessionEvent, bI as CollabSessionEventOrIntegrity, bJ as CollabSessionFacet, bK as CollabSessionOptions, bL as CommandStateSnapshot, bM as CommentAttachment, bN as CommentAudience, bO as CommentBody, bP as CommentLabel, bQ as CommentMention, bR as CommentNegotiationAction, bS as CommentNegotiationActionType, bT as CommentNegotiationEntry, bU as CommentNegotiationSnapshot, bV as CommentNegotiationState, bW as CommentPresentation, bX as CommentPresentationAction, bY as CommentPresentationReply, bZ as CommentPresentationSnapshot, b_ as CommentReaction, b$ as CommentSidebarSnapshot, c0 as CommentSidebarThreadEntrySnapshot, c1 as CommentSidebarThreadSnapshot, c2 as CompatibilityFeatureClass, c3 as CompatibilityFeatureEntry, c4 as CompatibilityPanelSnapshot, a5 as CreateApiV3Opts, c5 as CreateCollabSessionBridgeOptions, c6 as DispatchContext, c7 as DispatchResult, c8 as DocumentChunkKind, c9 as DocumentChunkSnapshot, ca as DocumentHeadingSnapshot, cb as DocumentLocationSnapshot, cc as DocumentLocationSource, cd as DocumentNavigationSnapshot, ce as DocumentOutlineHeadingSnapshot, cf as DocumentOutlineSnapshot, cg as DocumentPageSnapshot, ch as DocumentSectionSnapshot, ci as DocumentStats, cj as DocumentTextToken, ck as EditorAnchorProjection, cl as EditorDatastoreAdapter, r as EditorError, cm as EditorErrorCode, E as EditorHostAdapter, cn as EditorStateBlob, as as EditorStateLocation, ar as EditorStateNamespace, co as EditorStatePartLoadFailure, cp as EditorStatePartPersistFailure, cq as EditorStatePersister, cr as EditorStatePolicy, cs as EditorStatePolicyEntry, ct as EditorStatePolicyMigration, cu as EditorStateResolveErrorMode, cv as EditorStateResolver, cw as EditorStateStorageRef, cx as EditorStoryTarget, cy as EditorTelemetryEvent, cz as EditorUser, cA as EditorViewStateSnapshot, cB as EditorWarning, cC as EditorWarningCode, b as ExportDocxOptions, c as ExportResult, cD as ExternalCustodyArchivePayload, cE as ExternalDocumentSource, cF as HeaderFooterLinkPatch, cG as HostAnnotationItem, cH as HostAnnotationKind, cI as HostAnnotationOverlay, cJ as HostAnnotationSnapshot, cK as ISSUE_METADATA_ID, cL as InteractionGuardSnapshot, cM as IssueMetadataValue, cN as IssueMode, cO as IssueOwner, cP as IssueSeverity, cQ as LayoutMeasurement, cR as LoadRequest, cS as LoadResult, cT as LoadSourcePolicy, cU as MetadataIntegrity, cV as MetadataPersistenceMode, cW as MetadataResolverMissingError, cX as NegotiationBlockReason, cY as NegotiationCounterProposal, cZ as NegotiationHistoryRow, c_ as NegotiationRole, c$ as NegotiationVote, d0 as PageLayoutSnapshot, d1 as PageRegionHitTest, d2 as Participant, d3 as ParticipantRole, d4 as ParticipantRoster, d5 as PayloadVerifier, d6 as REVIEW_ACTION_METADATA_ID, d7 as RestorePointCheckpointType, d8 as RestorePointSnapshot, d9 as RestoreResult, da as ReviewActionKind, db as ReviewActionMetadataValue, dc as ReviewQueueItem, dd as ReviewQueueItemKind, de as ReviewQueueSnapshot, df as ReviewWorkItemSnapshot, dg as ReviewWorkSnapshot, dh as RuntimeContextAnalyticsActionHint, di as RuntimeContextAnalyticsBadge, dj as RuntimeContextAnalyticsCounts, dk as RuntimeContextAnalyticsProvenance, dl as RuntimeContextAnalyticsQuery, dm as RuntimeContextAnalyticsScopeKind, dn as RuntimeContextAnalyticsSnapshot, dp as RuntimeContextAnalyticsState, dq as RuntimeContextAnalyticsUnavailableField, R as RuntimeRenderSnapshot, dr as RuntimeSendToExternalArgs, ds as RuntimeSendToExternalResult, dt as SELECTION_TOOL_REGISTRY, du as SaveExportParams, dv as SaveExportResult, dw as SaveSessionParams, dx as SaveSessionResult, dy as SaveSnapshotParams, dz as SaveSnapshotResult, dA as ScopeCardModel, dB as ScopeIssueAction, dC as ScopeMetadataPersistence, dD as ScopeMetadataResolver, dE as ScopeMetadataStorageRef, dF as ScopeTagTouch, dG as SectionBreakType, dH as SectionLayoutPatch, dI as SectionPageNumberingPatch, h as SelectionSnapshot, dJ as SelectionToolKind, dK as SelectionToolRegistryEntry, dL as SendToExternalCallArgs, dM as SignatureAlgorithm, dN as SnapshotRefreshChangeKind, dO as SnapshotRefreshHints, dP as SnapshotRefreshInvalidateTarget, dQ as SnapshotRefreshStaleTarget, dR as StoryTextStreamSnapshot, dS as StyleCatalogEntrySnapshot, dT as StyleCatalogSnapshot, dU as SuggestionEntrySnapshot, dV as SuggestionGroup, dW as SuggestionsSnapshot, dX as SurfaceBlockSnapshot, dY as SurfaceInlineSegment, dZ as SurfaceTableCellSnapshot, d_ as SurfaceTableRowSnapshot, d$ as SurfaceTextMark, e0 as TamperGate, e1 as TamperGateArgs, e2 as TamperGateAttachArgs, e3 as TamperGateEvent, e4 as TamperGateGuardResult, e5 as TextCommandAckKind, e6 as TextProjection, e7 as TextProjectionLine, e8 as TextProjectionOptions, e9 as TextProjectionStoryEntry, ea as TocEntrySnapshot, eb as TocRegionSnapshot, ec as TocSnapshot, ed as TrackedChangeEntrySnapshot, ee as TrackedChangesSnapshot, ef as ViewMode, eg as WordReviewEditorChromeOptions, eh as WordReviewEditorChromePreset, ei as WordReviewEditorChromeVisibility, ej as WordReviewEditorEvent, ek as WorkflowBlockedCommandReason, el as WorkflowCandidateRange, em as WorkflowCandidateRangeOptions, en as WorkflowCommentMarkup, eo as WorkflowFieldMarkup, ep as WorkflowHighlightMarkup, eq as WorkflowMarkupBase, er as WorkflowMarkupItem, es as WorkflowMarkupKind, et as WorkflowMarkupSnapshot, eu as WorkflowMetadataDefinition, ev as WorkflowMetadataEntry, ew as WorkflowMetadataMarkup, ex as WorkflowMetadataPersistence, ey as WorkflowMetadataSnapshot, ez as WorkflowOpaqueFragmentMarkup, eA as WorkflowOverlay, eB as WorkflowOverlayPatch, eC as WorkflowProtectedRangeMarkup, eD as WorkflowRevisionMarkup, eE as WorkflowScope, eF as WorkflowScopeMode, eG as WorkflowScopeSnapshot, eH as WorkflowWorkItem, eI as WorkspaceMode, eJ as ZoomLevel, ap as createApiV3, eK as createCollabSession, eL as createCollabSessionBridge, eM as createCollabSessionFacet, eN as createHmacSigner, eO as createHmacVerifier, eP as createTamperGate, eQ as resolveSelectionToolRegistry, eR as runtimeSendToExternal, eS as sendToExternal, eT as signWorkflowPayloadXml, eU as verifyWorkflowPayloadXml } from './public-types-beSYFJRR.cjs';
|
|
3
3
|
import React__default from 'react';
|
|
4
|
-
export { D as DocxSession, S as SessionNotOpenError, a as SessionNotWiredError } from './session-
|
|
5
|
-
export { E as EmbeddedDocumentManifest, a as ExportOptions, O as OpenOptions, b as OpenResult, P as PreservationSnapshot, V as ValidateOptions, c as ValidationFinding, d as ValidationReport } from './types-
|
|
4
|
+
export { D as DocxSession, S as SessionNotOpenError, a as SessionNotWiredError } from './session-B7u82EJF.cjs';
|
|
5
|
+
export { E as EmbeddedDocumentManifest, a as ExportOptions, O as OpenOptions, b as OpenResult, P as PreservationSnapshot, V as ValidateOptions, c as ValidationFinding, d as ValidationReport } from './types-BQjdVZsh.cjs';
|
|
6
6
|
import { Awareness } from 'y-protocols/awareness';
|
|
7
7
|
import { C as CanonicalDocument } from './canonical-document-CXCFCbAz.cjs';
|
|
8
8
|
import 'yjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { b0 as TextCommandAck, b1 as TextCommandRefreshClass, b2 as WordReviewEditorProps, b3 as WordReviewEditorRef, a as EditorSessionState, P as PersistedEditorSnapshot, b4 as validatePersistedEditorSnapshot, b5 as PayloadSigner, b6 as PayloadSignature, b7 as TransportStatus, b8 as CollabPosture, b9 as PresenceSnapshot, ba as AwarenessIdentity, bb as ExternalCustody, bc as ExternalCustodyResolver, bd as ExternalCustodyRestoredContent, be as RuntimePageGraph, o as EditorSurfaceSnapshot, q as CompatibilityReport } from './public-types-
|
|
2
|
-
export { bf as ActiveListContext, bg as ActiveNoteContext, bh as AddCommentParams, bi as AddCommentReplyResult, bj as AddCommentResult, bk as AiExplanationScopeInput, bl as AiExplanationScopeResult, J as ApiV3, bm as AttachPayloadArgs, bn as AuthorKind, bo as AutosaveConfig, bp as AutosaveState, bq as AwarenessPeer, br as BatchEditEntryResult, bs as BatchEditOperation, bt as BatchEditOptions, bu as BatchEditResult, bv as CaretAffinity, bw as ChangeAnchor, bx as ChangeFilter, by as ChartPreviewResolveParams, bz as ChartSnapshot, bA as ChartSnapshotBubbleSeries, bB as ChartSnapshotData, bC as ChartSnapshotScatterSeries, bD as ChartSnapshotSeries, bE as CollabBlockReason, bF as CollabSession, bG as CollabSessionBridge, bH as CollabSessionEvent, bI as CollabSessionEventOrIntegrity, bJ as CollabSessionFacet, bK as CollabSessionOptions, bL as CommandStateSnapshot, bM as CommentAttachment, bN as CommentAudience, bO as CommentBody, bP as CommentLabel, bQ as CommentMention, bR as CommentNegotiationAction, bS as CommentNegotiationActionType, bT as CommentNegotiationEntry, bU as CommentNegotiationSnapshot, bV as CommentNegotiationState, bW as CommentPresentation, bX as CommentPresentationAction, bY as CommentPresentationReply, bZ as CommentPresentationSnapshot, b_ as CommentReaction, b$ as CommentSidebarSnapshot, c0 as CommentSidebarThreadEntrySnapshot, c1 as CommentSidebarThreadSnapshot, c2 as CompatibilityFeatureClass, c3 as CompatibilityFeatureEntry, c4 as CompatibilityPanelSnapshot, a5 as CreateApiV3Opts, c5 as CreateCollabSessionBridgeOptions, c6 as DispatchContext, c7 as DispatchResult, c8 as DocumentChunkKind, c9 as DocumentChunkSnapshot, ca as DocumentHeadingSnapshot, cb as DocumentLocationSnapshot, cc as DocumentLocationSource, cd as DocumentNavigationSnapshot, ce as DocumentOutlineHeadingSnapshot, cf as DocumentOutlineSnapshot, cg as DocumentPageSnapshot, ch as DocumentSectionSnapshot, ci as DocumentStats, cj as DocumentTextToken, ck as EditorAnchorProjection, cl as EditorDatastoreAdapter, r as EditorError, cm as EditorErrorCode, E as EditorHostAdapter, cn as EditorStateBlob, as as EditorStateLocation, ar as EditorStateNamespace, co as EditorStatePartLoadFailure, cp as EditorStatePartPersistFailure, cq as EditorStatePersister, cr as EditorStatePolicy, cs as EditorStatePolicyEntry, ct as EditorStatePolicyMigration, cu as EditorStateResolveErrorMode, cv as EditorStateResolver, cw as EditorStateStorageRef, cx as EditorStoryTarget, cy as EditorTelemetryEvent, cz as EditorUser, cA as EditorViewStateSnapshot, cB as EditorWarning, cC as EditorWarningCode, b as ExportDocxOptions, c as ExportResult, cD as ExternalCustodyArchivePayload, cE as ExternalDocumentSource, cF as HeaderFooterLinkPatch, cG as HostAnnotationItem, cH as HostAnnotationKind, cI as HostAnnotationOverlay, cJ as HostAnnotationSnapshot, cK as ISSUE_METADATA_ID, cL as InteractionGuardSnapshot, cM as IssueMetadataValue, cN as IssueMode, cO as IssueOwner, cP as IssueSeverity, cQ as LayoutMeasurement, cR as LoadRequest, cS as LoadResult, cT as LoadSourcePolicy, cU as MetadataIntegrity, cV as MetadataPersistenceMode, cW as MetadataResolverMissingError, cX as NegotiationBlockReason, cY as NegotiationCounterProposal, cZ as NegotiationHistoryRow, c_ as NegotiationRole, c$ as NegotiationVote, d0 as PageLayoutSnapshot, d1 as PageRegionHitTest, d2 as Participant, d3 as ParticipantRole, d4 as ParticipantRoster, d5 as PayloadVerifier, d6 as REVIEW_ACTION_METADATA_ID, d7 as RestorePointCheckpointType, d8 as RestorePointSnapshot, d9 as RestoreResult, da as ReviewActionKind, db as ReviewActionMetadataValue, dc as ReviewQueueItem, dd as ReviewQueueItemKind, de as ReviewQueueSnapshot, df as ReviewWorkItemSnapshot, dg as ReviewWorkSnapshot, dh as RuntimeContextAnalyticsActionHint, di as RuntimeContextAnalyticsBadge, dj as RuntimeContextAnalyticsCounts, dk as RuntimeContextAnalyticsProvenance, dl as RuntimeContextAnalyticsQuery, dm as RuntimeContextAnalyticsScopeKind, dn as RuntimeContextAnalyticsSnapshot, dp as RuntimeContextAnalyticsState, dq as RuntimeContextAnalyticsUnavailableField, R as RuntimeRenderSnapshot, dr as RuntimeSendToExternalArgs, ds as RuntimeSendToExternalResult, dt as SELECTION_TOOL_REGISTRY, du as SaveExportParams, dv as SaveExportResult, dw as SaveSessionParams, dx as SaveSessionResult, dy as SaveSnapshotParams, dz as SaveSnapshotResult, dA as ScopeCardModel, dB as ScopeIssueAction, dC as ScopeMetadataPersistence, dD as ScopeMetadataResolver, dE as ScopeMetadataStorageRef, dF as ScopeTagTouch, dG as SectionBreakType, dH as SectionLayoutPatch, dI as SectionPageNumberingPatch, h as SelectionSnapshot, dJ as SelectionToolKind, dK as SelectionToolRegistryEntry, dL as SendToExternalCallArgs, dM as SignatureAlgorithm, dN as SnapshotRefreshChangeKind, dO as SnapshotRefreshHints, dP as SnapshotRefreshInvalidateTarget, dQ as SnapshotRefreshStaleTarget, dR as StoryTextStreamSnapshot, dS as StyleCatalogEntrySnapshot, dT as StyleCatalogSnapshot, dU as SuggestionEntrySnapshot, dV as SuggestionGroup, dW as SuggestionsSnapshot, dX as SurfaceBlockSnapshot, dY as SurfaceInlineSegment, dZ as SurfaceTableCellSnapshot, d_ as SurfaceTableRowSnapshot, d$ as SurfaceTextMark, e0 as TamperGate, e1 as TamperGateArgs, e2 as TamperGateAttachArgs, e3 as TamperGateEvent, e4 as TamperGateGuardResult, e5 as TextCommandAckKind, e6 as TextProjection, e7 as TextProjectionLine, e8 as TextProjectionOptions, e9 as TextProjectionStoryEntry, ea as TocEntrySnapshot, eb as TocRegionSnapshot, ec as TocSnapshot, ed as TrackedChangeEntrySnapshot, ee as TrackedChangesSnapshot, ef as ViewMode, eg as WordReviewEditorChromeOptions, eh as WordReviewEditorChromePreset, ei as WordReviewEditorChromeVisibility, ej as WordReviewEditorEvent, ek as WorkflowBlockedCommandReason, el as WorkflowCandidateRange, em as WorkflowCandidateRangeOptions, en as WorkflowCommentMarkup, eo as WorkflowFieldMarkup, ep as WorkflowHighlightMarkup, eq as WorkflowMarkupBase, er as WorkflowMarkupItem, es as WorkflowMarkupKind, et as WorkflowMarkupSnapshot, eu as WorkflowMetadataDefinition, ev as WorkflowMetadataEntry, ew as WorkflowMetadataMarkup, ex as WorkflowMetadataPersistence, ey as WorkflowMetadataSnapshot, ez as WorkflowOpaqueFragmentMarkup, eA as WorkflowOverlay, eB as WorkflowOverlayPatch, eC as WorkflowProtectedRangeMarkup, eD as WorkflowRevisionMarkup, eE as WorkflowScope, eF as WorkflowScopeMode, eG as WorkflowScopeSnapshot, eH as WorkflowWorkItem, eI as WorkspaceMode, eJ as ZoomLevel, ap as createApiV3, eK as createCollabSession, eL as createCollabSessionBridge, eM as createCollabSessionFacet, eN as createHmacSigner, eO as createHmacVerifier, eP as createTamperGate, eQ as resolveSelectionToolRegistry, eR as runtimeSendToExternal, eS as sendToExternal, eT as signWorkflowPayloadXml, eU as verifyWorkflowPayloadXml } from './public-types-
|
|
1
|
+
import { b0 as TextCommandAck, b1 as TextCommandRefreshClass, b2 as WordReviewEditorProps, b3 as WordReviewEditorRef, a as EditorSessionState, P as PersistedEditorSnapshot, b4 as validatePersistedEditorSnapshot, b5 as PayloadSigner, b6 as PayloadSignature, b7 as TransportStatus, b8 as CollabPosture, b9 as PresenceSnapshot, ba as AwarenessIdentity, bb as ExternalCustody, bc as ExternalCustodyResolver, bd as ExternalCustodyRestoredContent, be as RuntimePageGraph, o as EditorSurfaceSnapshot, q as CompatibilityReport } from './public-types-Cgl3efbO.js';
|
|
2
|
+
export { bf as ActiveListContext, bg as ActiveNoteContext, bh as AddCommentParams, bi as AddCommentReplyResult, bj as AddCommentResult, bk as AiExplanationScopeInput, bl as AiExplanationScopeResult, J as ApiV3, bm as AttachPayloadArgs, bn as AuthorKind, bo as AutosaveConfig, bp as AutosaveState, bq as AwarenessPeer, br as BatchEditEntryResult, bs as BatchEditOperation, bt as BatchEditOptions, bu as BatchEditResult, bv as CaretAffinity, bw as ChangeAnchor, bx as ChangeFilter, by as ChartPreviewResolveParams, bz as ChartSnapshot, bA as ChartSnapshotBubbleSeries, bB as ChartSnapshotData, bC as ChartSnapshotScatterSeries, bD as ChartSnapshotSeries, bE as CollabBlockReason, bF as CollabSession, bG as CollabSessionBridge, bH as CollabSessionEvent, bI as CollabSessionEventOrIntegrity, bJ as CollabSessionFacet, bK as CollabSessionOptions, bL as CommandStateSnapshot, bM as CommentAttachment, bN as CommentAudience, bO as CommentBody, bP as CommentLabel, bQ as CommentMention, bR as CommentNegotiationAction, bS as CommentNegotiationActionType, bT as CommentNegotiationEntry, bU as CommentNegotiationSnapshot, bV as CommentNegotiationState, bW as CommentPresentation, bX as CommentPresentationAction, bY as CommentPresentationReply, bZ as CommentPresentationSnapshot, b_ as CommentReaction, b$ as CommentSidebarSnapshot, c0 as CommentSidebarThreadEntrySnapshot, c1 as CommentSidebarThreadSnapshot, c2 as CompatibilityFeatureClass, c3 as CompatibilityFeatureEntry, c4 as CompatibilityPanelSnapshot, a5 as CreateApiV3Opts, c5 as CreateCollabSessionBridgeOptions, c6 as DispatchContext, c7 as DispatchResult, c8 as DocumentChunkKind, c9 as DocumentChunkSnapshot, ca as DocumentHeadingSnapshot, cb as DocumentLocationSnapshot, cc as DocumentLocationSource, cd as DocumentNavigationSnapshot, ce as DocumentOutlineHeadingSnapshot, cf as DocumentOutlineSnapshot, cg as DocumentPageSnapshot, ch as DocumentSectionSnapshot, ci as DocumentStats, cj as DocumentTextToken, ck as EditorAnchorProjection, cl as EditorDatastoreAdapter, r as EditorError, cm as EditorErrorCode, E as EditorHostAdapter, cn as EditorStateBlob, as as EditorStateLocation, ar as EditorStateNamespace, co as EditorStatePartLoadFailure, cp as EditorStatePartPersistFailure, cq as EditorStatePersister, cr as EditorStatePolicy, cs as EditorStatePolicyEntry, ct as EditorStatePolicyMigration, cu as EditorStateResolveErrorMode, cv as EditorStateResolver, cw as EditorStateStorageRef, cx as EditorStoryTarget, cy as EditorTelemetryEvent, cz as EditorUser, cA as EditorViewStateSnapshot, cB as EditorWarning, cC as EditorWarningCode, b as ExportDocxOptions, c as ExportResult, cD as ExternalCustodyArchivePayload, cE as ExternalDocumentSource, cF as HeaderFooterLinkPatch, cG as HostAnnotationItem, cH as HostAnnotationKind, cI as HostAnnotationOverlay, cJ as HostAnnotationSnapshot, cK as ISSUE_METADATA_ID, cL as InteractionGuardSnapshot, cM as IssueMetadataValue, cN as IssueMode, cO as IssueOwner, cP as IssueSeverity, cQ as LayoutMeasurement, cR as LoadRequest, cS as LoadResult, cT as LoadSourcePolicy, cU as MetadataIntegrity, cV as MetadataPersistenceMode, cW as MetadataResolverMissingError, cX as NegotiationBlockReason, cY as NegotiationCounterProposal, cZ as NegotiationHistoryRow, c_ as NegotiationRole, c$ as NegotiationVote, d0 as PageLayoutSnapshot, d1 as PageRegionHitTest, d2 as Participant, d3 as ParticipantRole, d4 as ParticipantRoster, d5 as PayloadVerifier, d6 as REVIEW_ACTION_METADATA_ID, d7 as RestorePointCheckpointType, d8 as RestorePointSnapshot, d9 as RestoreResult, da as ReviewActionKind, db as ReviewActionMetadataValue, dc as ReviewQueueItem, dd as ReviewQueueItemKind, de as ReviewQueueSnapshot, df as ReviewWorkItemSnapshot, dg as ReviewWorkSnapshot, dh as RuntimeContextAnalyticsActionHint, di as RuntimeContextAnalyticsBadge, dj as RuntimeContextAnalyticsCounts, dk as RuntimeContextAnalyticsProvenance, dl as RuntimeContextAnalyticsQuery, dm as RuntimeContextAnalyticsScopeKind, dn as RuntimeContextAnalyticsSnapshot, dp as RuntimeContextAnalyticsState, dq as RuntimeContextAnalyticsUnavailableField, R as RuntimeRenderSnapshot, dr as RuntimeSendToExternalArgs, ds as RuntimeSendToExternalResult, dt as SELECTION_TOOL_REGISTRY, du as SaveExportParams, dv as SaveExportResult, dw as SaveSessionParams, dx as SaveSessionResult, dy as SaveSnapshotParams, dz as SaveSnapshotResult, dA as ScopeCardModel, dB as ScopeIssueAction, dC as ScopeMetadataPersistence, dD as ScopeMetadataResolver, dE as ScopeMetadataStorageRef, dF as ScopeTagTouch, dG as SectionBreakType, dH as SectionLayoutPatch, dI as SectionPageNumberingPatch, h as SelectionSnapshot, dJ as SelectionToolKind, dK as SelectionToolRegistryEntry, dL as SendToExternalCallArgs, dM as SignatureAlgorithm, dN as SnapshotRefreshChangeKind, dO as SnapshotRefreshHints, dP as SnapshotRefreshInvalidateTarget, dQ as SnapshotRefreshStaleTarget, dR as StoryTextStreamSnapshot, dS as StyleCatalogEntrySnapshot, dT as StyleCatalogSnapshot, dU as SuggestionEntrySnapshot, dV as SuggestionGroup, dW as SuggestionsSnapshot, dX as SurfaceBlockSnapshot, dY as SurfaceInlineSegment, dZ as SurfaceTableCellSnapshot, d_ as SurfaceTableRowSnapshot, d$ as SurfaceTextMark, e0 as TamperGate, e1 as TamperGateArgs, e2 as TamperGateAttachArgs, e3 as TamperGateEvent, e4 as TamperGateGuardResult, e5 as TextCommandAckKind, e6 as TextProjection, e7 as TextProjectionLine, e8 as TextProjectionOptions, e9 as TextProjectionStoryEntry, ea as TocEntrySnapshot, eb as TocRegionSnapshot, ec as TocSnapshot, ed as TrackedChangeEntrySnapshot, ee as TrackedChangesSnapshot, ef as ViewMode, eg as WordReviewEditorChromeOptions, eh as WordReviewEditorChromePreset, ei as WordReviewEditorChromeVisibility, ej as WordReviewEditorEvent, ek as WorkflowBlockedCommandReason, el as WorkflowCandidateRange, em as WorkflowCandidateRangeOptions, en as WorkflowCommentMarkup, eo as WorkflowFieldMarkup, ep as WorkflowHighlightMarkup, eq as WorkflowMarkupBase, er as WorkflowMarkupItem, es as WorkflowMarkupKind, et as WorkflowMarkupSnapshot, eu as WorkflowMetadataDefinition, ev as WorkflowMetadataEntry, ew as WorkflowMetadataMarkup, ex as WorkflowMetadataPersistence, ey as WorkflowMetadataSnapshot, ez as WorkflowOpaqueFragmentMarkup, eA as WorkflowOverlay, eB as WorkflowOverlayPatch, eC as WorkflowProtectedRangeMarkup, eD as WorkflowRevisionMarkup, eE as WorkflowScope, eF as WorkflowScopeMode, eG as WorkflowScopeSnapshot, eH as WorkflowWorkItem, eI as WorkspaceMode, eJ as ZoomLevel, ap as createApiV3, eK as createCollabSession, eL as createCollabSessionBridge, eM as createCollabSessionFacet, eN as createHmacSigner, eO as createHmacVerifier, eP as createTamperGate, eQ as resolveSelectionToolRegistry, eR as runtimeSendToExternal, eS as sendToExternal, eT as signWorkflowPayloadXml, eU as verifyWorkflowPayloadXml } from './public-types-Cgl3efbO.js';
|
|
3
3
|
import React__default from 'react';
|
|
4
|
-
export { D as DocxSession, S as SessionNotOpenError, a as SessionNotWiredError } from './session-
|
|
5
|
-
export { E as EmbeddedDocumentManifest, a as ExportOptions, O as OpenOptions, b as OpenResult, P as PreservationSnapshot, V as ValidateOptions, c as ValidationFinding, d as ValidationReport } from './types-
|
|
4
|
+
export { D as DocxSession, S as SessionNotOpenError, a as SessionNotWiredError } from './session-BWMJ9jm4.js';
|
|
5
|
+
export { E as EmbeddedDocumentManifest, a as ExportOptions, O as OpenOptions, b as OpenResult, P as PreservationSnapshot, V as ValidateOptions, c as ValidationFinding, d as ValidationReport } from './types-DvvmS5A7.js';
|
|
6
6
|
import { Awareness } from 'y-protocols/awareness';
|
|
7
7
|
import { C as CanonicalDocument } from './canonical-document-CXCFCbAz.js';
|
|
8
8
|
import 'yjs';
|
package/dist/index.js
CHANGED
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
splitListParagraph,
|
|
27
27
|
toggleBulletedList,
|
|
28
28
|
toggleNumberedList
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-PUMZWE2D.js";
|
|
30
30
|
import {
|
|
31
31
|
applyParagraphStyleToDocument
|
|
32
32
|
} from "./chunk-6EXNNAO6.js";
|
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
import {
|
|
46
46
|
insertPageBreak,
|
|
47
47
|
insertTable
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-LZVBNDGU.js";
|
|
49
49
|
import {
|
|
50
50
|
getFormattingStateFromRenderSnapshot
|
|
51
51
|
} from "./chunk-Y4XZCMCS.js";
|
|
@@ -108,12 +108,12 @@ import {
|
|
|
108
108
|
resolveColor,
|
|
109
109
|
tryReadLaycacheEnvelope,
|
|
110
110
|
writeEnvelopeToOpcPackage
|
|
111
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-46KNRA4C.js";
|
|
112
112
|
import {
|
|
113
113
|
findTextMatches,
|
|
114
114
|
parseCanonicalFragmentFromWordML,
|
|
115
115
|
searchDocument
|
|
116
|
-
} from "./chunk-
|
|
116
|
+
} from "./chunk-XRACP43Q.js";
|
|
117
117
|
import {
|
|
118
118
|
clearLocalCursorState,
|
|
119
119
|
getCursorColorForUser,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { a as LoadDocxEditorSessionAsyncOptions, b as LoadDocxEditorSessionOptions, L as LoadedDocxEditorSession, l as loadDocxEditorSessionAsync } from '../loader-
|
|
1
|
+
export { a as LoadDocxEditorSessionAsyncOptions, b as LoadDocxEditorSessionOptions, L as LoadedDocxEditorSession, l as loadDocxEditorSessionAsync } from '../loader-DveZOVuC.cjs';
|
|
2
2
|
import { R as RevisionStoryTargetRecord, O as OpaqueFragmentRecord } from '../canonical-document-CXCFCbAz.cjs';
|
|
3
|
-
import { a$ as EditorAnchorProjection } from '../public-types-
|
|
4
|
-
import '../types-
|
|
3
|
+
import { a$ as EditorAnchorProjection } from '../public-types-beSYFJRR.cjs';
|
|
4
|
+
import '../types-BQjdVZsh.cjs';
|
|
5
5
|
import 'react';
|
|
6
6
|
import 'yjs';
|
|
7
7
|
import 'y-protocols/awareness';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { a as LoadDocxEditorSessionAsyncOptions, b as LoadDocxEditorSessionOptions, L as LoadedDocxEditorSession, l as loadDocxEditorSessionAsync } from '../loader-
|
|
1
|
+
export { a as LoadDocxEditorSessionAsyncOptions, b as LoadDocxEditorSessionOptions, L as LoadedDocxEditorSession, l as loadDocxEditorSessionAsync } from '../loader-CFICtb9m.js';
|
|
2
2
|
import { R as RevisionStoryTargetRecord, O as OpaqueFragmentRecord } from '../canonical-document-CXCFCbAz.js';
|
|
3
|
-
import { a$ as EditorAnchorProjection } from '../public-types-
|
|
4
|
-
import '../types-
|
|
3
|
+
import { a$ as EditorAnchorProjection } from '../public-types-Cgl3efbO.js';
|
|
4
|
+
import '../types-DvvmS5A7.js';
|
|
5
5
|
import 'react';
|
|
6
6
|
import 'yjs';
|
|
7
7
|
import 'y-protocols/awareness';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { C as CanonicalDocument } from './canonical-document-CXCFCbAz.js';
|
|
2
|
-
import { ar as EditorStateNamespace, as as EditorStateLocation, a as EditorSessionState, P as PersistedEditorSnapshot, r as EditorError, t as ProtectionSnapshot, b as ExportDocxOptions, c as ExportResult, L as LoadStage, E as EditorHostAdapter, at as LoadScheduler, o as EditorSurfaceSnapshot } from './public-types-
|
|
3
|
-
import { E as EmbeddedDocumentManifest, e as ProgressiveSurfaceProjector } from './types-
|
|
2
|
+
import { ar as EditorStateNamespace, as as EditorStateLocation, a as EditorSessionState, P as PersistedEditorSnapshot, r as EditorError, t as ProtectionSnapshot, b as ExportDocxOptions, c as ExportResult, L as LoadStage, E as EditorHostAdapter, at as LoadScheduler, o as EditorSurfaceSnapshot } from './public-types-Cgl3efbO.js';
|
|
3
|
+
import { E as EmbeddedDocumentManifest, e as ProgressiveSurfaceProjector } from './types-DvvmS5A7.js';
|
|
4
4
|
|
|
5
5
|
interface EditorStatePayloadNamespaceEntry {
|
|
6
6
|
namespace: EditorStateNamespace;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { C as CanonicalDocument } from './canonical-document-CXCFCbAz.cjs';
|
|
2
|
-
import { ar as EditorStateNamespace, as as EditorStateLocation, a as EditorSessionState, P as PersistedEditorSnapshot, r as EditorError, t as ProtectionSnapshot, b as ExportDocxOptions, c as ExportResult, L as LoadStage, E as EditorHostAdapter, at as LoadScheduler, o as EditorSurfaceSnapshot } from './public-types-
|
|
3
|
-
import { E as EmbeddedDocumentManifest, e as ProgressiveSurfaceProjector } from './types-
|
|
2
|
+
import { ar as EditorStateNamespace, as as EditorStateLocation, a as EditorSessionState, P as PersistedEditorSnapshot, r as EditorError, t as ProtectionSnapshot, b as ExportDocxOptions, c as ExportResult, L as LoadStage, E as EditorHostAdapter, at as LoadScheduler, o as EditorSurfaceSnapshot } from './public-types-beSYFJRR.cjs';
|
|
3
|
+
import { E as EmbeddedDocumentManifest, e as ProgressiveSurfaceProjector } from './types-BQjdVZsh.cjs';
|
|
4
4
|
|
|
5
5
|
interface EditorStatePayloadNamespaceEntry {
|
|
6
6
|
namespace: EditorStateNamespace;
|
|
@@ -11418,6 +11418,7 @@ interface AiTableActionDescriptor {
|
|
|
11418
11418
|
readonly relation: string;
|
|
11419
11419
|
readonly operationScope: AiTableActionTargetScope;
|
|
11420
11420
|
readonly callableOperations: readonly AiTableActionOperationKind[];
|
|
11421
|
+
readonly selectionRequiredOperations?: readonly AiTableActionOperationKind[];
|
|
11421
11422
|
readonly supportedOperations: readonly AiTableActionOperationKind[];
|
|
11422
11423
|
readonly readback?: AiTableTextReadback;
|
|
11423
11424
|
readonly reason: string;
|
|
@@ -11418,6 +11418,7 @@ interface AiTableActionDescriptor {
|
|
|
11418
11418
|
readonly relation: string;
|
|
11419
11419
|
readonly operationScope: AiTableActionTargetScope;
|
|
11420
11420
|
readonly callableOperations: readonly AiTableActionOperationKind[];
|
|
11421
|
+
readonly selectionRequiredOperations?: readonly AiTableActionOperationKind[];
|
|
11421
11422
|
readonly supportedOperations: readonly AiTableActionOperationKind[];
|
|
11422
11423
|
readonly readback?: AiTableTextReadback;
|
|
11423
11424
|
readonly reason: string;
|