@beyondwork/docx-react-component 1.0.125 → 1.0.126
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 +5 -1
- 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-JN444Z5S.js → chunk-6IGWPAR4.js} +1 -1
- package/dist/{chunk-OHTK7F3F.js → chunk-FPRWV54X.js} +5 -1
- package/dist/{chunk-QT3LX4FA.js → chunk-GL7XRYBY.js} +304 -37
- 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.d.cts +1 -1
- package/dist/core/commands/text-commands.d.ts +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 +336 -47
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +26 -7
- package/dist/io/docx-session.d.cts +3 -3
- package/dist/io/docx-session.d.ts +3 -3
- package/dist/{loader-B1MxvbeV.d.ts → loader-CS9-9KFa.d.ts} +2 -2
- package/dist/{loader-CJXsswcd.d.cts → loader-OoWJ1_17.d.cts} +2 -2
- package/dist/{public-types-DrhlQ5Zy.d.cts → public-types-BP3vqJR5.d.cts} +50 -6
- package/dist/{public-types-BEGhv2YR.d.ts → public-types-DdcHqcow.d.ts} +50 -6
- 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 +260 -36
- package/dist/runtime/document-runtime.d.cts +1 -1
- package/dist/runtime/document-runtime.d.ts +1 -1
- package/dist/runtime/document-runtime.js +2 -2
- package/dist/{session-Bp3zqnkS.d.cts → session-Cq-fzx3B.d.cts} +2 -2
- package/dist/{session-xMOU_NtL.d.ts → session-DyFQt8Ph.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-DDPxEygX.d.cts → types-Bg7D-GD3.d.cts} +1 -1
- package/dist/{types-BFT8536T.d.ts → types-bJAgMq1M.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
package/dist/index.cjs
CHANGED
|
@@ -22001,19 +22001,19 @@ function clamp(value, min, max) {
|
|
|
22001
22001
|
}
|
|
22002
22002
|
|
|
22003
22003
|
// src/core/commands/list-commands.ts
|
|
22004
|
-
function toggleNumberedList(document2, paragraphIndexes, context) {
|
|
22005
|
-
return toggleListKind(document2, paragraphIndexes, "numbered", context);
|
|
22004
|
+
function toggleNumberedList(document2, paragraphIndexes, context, options = {}) {
|
|
22005
|
+
return toggleListKind(document2, paragraphIndexes, "numbered", context, options);
|
|
22006
22006
|
}
|
|
22007
|
-
function toggleBulletedList(document2, paragraphIndexes, context) {
|
|
22008
|
-
return toggleListKind(document2, paragraphIndexes, "bulleted", context);
|
|
22007
|
+
function toggleBulletedList(document2, paragraphIndexes, context, options = {}) {
|
|
22008
|
+
return toggleListKind(document2, paragraphIndexes, "bulleted", context, options);
|
|
22009
22009
|
}
|
|
22010
|
-
function indentListItems(document2, paragraphIndexes, context) {
|
|
22011
|
-
return adjustListLevels(document2, paragraphIndexes, 1, context);
|
|
22010
|
+
function indentListItems(document2, paragraphIndexes, context, options = {}) {
|
|
22011
|
+
return adjustListLevels(document2, paragraphIndexes, 1, context, options);
|
|
22012
22012
|
}
|
|
22013
|
-
function outdentListItems(document2, paragraphIndexes, context) {
|
|
22014
|
-
return adjustListLevels(document2, paragraphIndexes, -1, context);
|
|
22013
|
+
function outdentListItems(document2, paragraphIndexes, context, options = {}) {
|
|
22014
|
+
return adjustListLevels(document2, paragraphIndexes, -1, context, options);
|
|
22015
22015
|
}
|
|
22016
|
-
function splitListParagraph(document2, paragraphIndex, paragraphIsEmpty, context) {
|
|
22016
|
+
function splitListParagraph(document2, paragraphIndex, paragraphIsEmpty, context, options = {}) {
|
|
22017
22017
|
if (!paragraphIsEmpty) {
|
|
22018
22018
|
return {
|
|
22019
22019
|
document: document2,
|
|
@@ -22023,7 +22023,30 @@ function splitListParagraph(document2, paragraphIndex, paragraphIsEmpty, context
|
|
|
22023
22023
|
}
|
|
22024
22024
|
const working = cloneEnvelope(document2, context.timestamp);
|
|
22025
22025
|
const paragraphs = captureEditableParagraphs(working);
|
|
22026
|
-
const
|
|
22026
|
+
const resolved = resolveListCommandParagraphIndexes(
|
|
22027
|
+
working,
|
|
22028
|
+
paragraphs,
|
|
22029
|
+
[paragraphIndex],
|
|
22030
|
+
context,
|
|
22031
|
+
normalizeListCommandTargets(options)
|
|
22032
|
+
);
|
|
22033
|
+
if (resolved.blockedReason) {
|
|
22034
|
+
return {
|
|
22035
|
+
document: working,
|
|
22036
|
+
affectedParagraphIndexes: [],
|
|
22037
|
+
action: "blocked",
|
|
22038
|
+
blockedReason: resolved.blockedReason
|
|
22039
|
+
};
|
|
22040
|
+
}
|
|
22041
|
+
const resolvedParagraphIndex = resolved.paragraphIndexes[0];
|
|
22042
|
+
if (resolvedParagraphIndex === void 0) {
|
|
22043
|
+
return {
|
|
22044
|
+
document: working,
|
|
22045
|
+
affectedParagraphIndexes: [],
|
|
22046
|
+
action: "split"
|
|
22047
|
+
};
|
|
22048
|
+
}
|
|
22049
|
+
const target = paragraphs[resolvedParagraphIndex];
|
|
22027
22050
|
if (!target?.numbering) {
|
|
22028
22051
|
return {
|
|
22029
22052
|
document: working,
|
|
@@ -22038,21 +22061,44 @@ function splitListParagraph(document2, paragraphIndex, paragraphIsEmpty, context
|
|
|
22038
22061
|
};
|
|
22039
22062
|
return {
|
|
22040
22063
|
document: working,
|
|
22041
|
-
affectedParagraphIndexes: [
|
|
22064
|
+
affectedParagraphIndexes: [resolvedParagraphIndex],
|
|
22042
22065
|
action: "outdented"
|
|
22043
22066
|
};
|
|
22044
22067
|
}
|
|
22045
22068
|
delete target.numbering;
|
|
22046
22069
|
return {
|
|
22047
22070
|
document: working,
|
|
22048
|
-
affectedParagraphIndexes: [
|
|
22071
|
+
affectedParagraphIndexes: [resolvedParagraphIndex],
|
|
22049
22072
|
action: "removed"
|
|
22050
22073
|
};
|
|
22051
22074
|
}
|
|
22052
|
-
function backspaceAtListStart(document2, paragraphIndex, context) {
|
|
22075
|
+
function backspaceAtListStart(document2, paragraphIndex, context, options = {}) {
|
|
22053
22076
|
const working = cloneEnvelope(document2, context.timestamp);
|
|
22054
22077
|
const paragraphs = captureEditableParagraphs(working);
|
|
22055
|
-
const
|
|
22078
|
+
const resolved = resolveListCommandParagraphIndexes(
|
|
22079
|
+
working,
|
|
22080
|
+
paragraphs,
|
|
22081
|
+
[paragraphIndex],
|
|
22082
|
+
context,
|
|
22083
|
+
normalizeListCommandTargets(options)
|
|
22084
|
+
);
|
|
22085
|
+
if (resolved.blockedReason) {
|
|
22086
|
+
return {
|
|
22087
|
+
document: working,
|
|
22088
|
+
affectedParagraphIndexes: [],
|
|
22089
|
+
handled: true,
|
|
22090
|
+
blockedReason: resolved.blockedReason
|
|
22091
|
+
};
|
|
22092
|
+
}
|
|
22093
|
+
const resolvedParagraphIndex = resolved.paragraphIndexes[0];
|
|
22094
|
+
if (resolvedParagraphIndex === void 0) {
|
|
22095
|
+
return {
|
|
22096
|
+
document: working,
|
|
22097
|
+
affectedParagraphIndexes: [],
|
|
22098
|
+
handled: false
|
|
22099
|
+
};
|
|
22100
|
+
}
|
|
22101
|
+
const target = paragraphs[resolvedParagraphIndex];
|
|
22056
22102
|
if (!target?.numbering) {
|
|
22057
22103
|
return {
|
|
22058
22104
|
document: working,
|
|
@@ -22070,14 +22116,35 @@ function backspaceAtListStart(document2, paragraphIndex, context) {
|
|
|
22070
22116
|
}
|
|
22071
22117
|
return {
|
|
22072
22118
|
document: working,
|
|
22073
|
-
affectedParagraphIndexes: [
|
|
22119
|
+
affectedParagraphIndexes: [resolvedParagraphIndex],
|
|
22074
22120
|
handled: true
|
|
22075
22121
|
};
|
|
22076
22122
|
}
|
|
22077
|
-
function restartNumbering(document2, paragraphIndex, context, startAt = 1) {
|
|
22123
|
+
function restartNumbering(document2, paragraphIndex, context, startAt = 1, options = {}) {
|
|
22078
22124
|
const working = cloneEnvelope(document2, context.timestamp);
|
|
22079
22125
|
const paragraphs = captureEditableParagraphs(working);
|
|
22080
|
-
const
|
|
22126
|
+
const resolved = resolveListCommandParagraphIndexes(
|
|
22127
|
+
working,
|
|
22128
|
+
paragraphs,
|
|
22129
|
+
[paragraphIndex],
|
|
22130
|
+
context,
|
|
22131
|
+
normalizeListCommandTargets(options)
|
|
22132
|
+
);
|
|
22133
|
+
if (resolved.blockedReason) {
|
|
22134
|
+
return {
|
|
22135
|
+
document: working,
|
|
22136
|
+
affectedParagraphIndexes: [],
|
|
22137
|
+
blockedReason: resolved.blockedReason
|
|
22138
|
+
};
|
|
22139
|
+
}
|
|
22140
|
+
const resolvedParagraphIndex = resolved.paragraphIndexes[0];
|
|
22141
|
+
if (resolvedParagraphIndex === void 0) {
|
|
22142
|
+
return {
|
|
22143
|
+
document: working,
|
|
22144
|
+
affectedParagraphIndexes: []
|
|
22145
|
+
};
|
|
22146
|
+
}
|
|
22147
|
+
const target = paragraphs[resolvedParagraphIndex];
|
|
22081
22148
|
if (!target?.numbering) {
|
|
22082
22149
|
return {
|
|
22083
22150
|
document: working,
|
|
@@ -22102,7 +22169,7 @@ function restartNumbering(document2, paragraphIndex, context, startAt = 1) {
|
|
|
22102
22169
|
})
|
|
22103
22170
|
};
|
|
22104
22171
|
const affectedParagraphIndexes = [];
|
|
22105
|
-
for (let index =
|
|
22172
|
+
for (let index = resolvedParagraphIndex; index < paragraphs.length; index += 1) {
|
|
22106
22173
|
const paragraph = paragraphs[index];
|
|
22107
22174
|
if (!paragraph?.numbering) {
|
|
22108
22175
|
break;
|
|
@@ -22123,10 +22190,31 @@ function restartNumbering(document2, paragraphIndex, context, startAt = 1) {
|
|
|
22123
22190
|
createdNumberingInstanceId: numberingInstanceId
|
|
22124
22191
|
};
|
|
22125
22192
|
}
|
|
22126
|
-
function continueNumbering(document2, paragraphIndex, context) {
|
|
22193
|
+
function continueNumbering(document2, paragraphIndex, context, options = {}) {
|
|
22127
22194
|
const working = cloneEnvelope(document2, context.timestamp);
|
|
22128
22195
|
const paragraphs = captureEditableParagraphs(working);
|
|
22129
|
-
const
|
|
22196
|
+
const resolved = resolveListCommandParagraphIndexes(
|
|
22197
|
+
working,
|
|
22198
|
+
paragraphs,
|
|
22199
|
+
[paragraphIndex],
|
|
22200
|
+
context,
|
|
22201
|
+
normalizeListCommandTargets(options)
|
|
22202
|
+
);
|
|
22203
|
+
if (resolved.blockedReason) {
|
|
22204
|
+
return {
|
|
22205
|
+
document: working,
|
|
22206
|
+
affectedParagraphIndexes: [],
|
|
22207
|
+
blockedReason: resolved.blockedReason
|
|
22208
|
+
};
|
|
22209
|
+
}
|
|
22210
|
+
const resolvedParagraphIndex = resolved.paragraphIndexes[0];
|
|
22211
|
+
if (resolvedParagraphIndex === void 0) {
|
|
22212
|
+
return {
|
|
22213
|
+
document: working,
|
|
22214
|
+
affectedParagraphIndexes: []
|
|
22215
|
+
};
|
|
22216
|
+
}
|
|
22217
|
+
const target = paragraphs[resolvedParagraphIndex];
|
|
22130
22218
|
if (!target?.numbering) {
|
|
22131
22219
|
return {
|
|
22132
22220
|
document: working,
|
|
@@ -22145,7 +22233,7 @@ function continueNumbering(document2, paragraphIndex, context) {
|
|
|
22145
22233
|
const compatibleInstanceId = findPreviousCompatibleInstance(
|
|
22146
22234
|
paragraphs,
|
|
22147
22235
|
catalog,
|
|
22148
|
-
|
|
22236
|
+
resolvedParagraphIndex,
|
|
22149
22237
|
currentKind
|
|
22150
22238
|
);
|
|
22151
22239
|
if (!compatibleInstanceId || compatibleInstanceId === currentInstanceId) {
|
|
@@ -22155,7 +22243,7 @@ function continueNumbering(document2, paragraphIndex, context) {
|
|
|
22155
22243
|
};
|
|
22156
22244
|
}
|
|
22157
22245
|
const affectedParagraphIndexes = [];
|
|
22158
|
-
for (let index =
|
|
22246
|
+
for (let index = resolvedParagraphIndex; index < paragraphs.length; index += 1) {
|
|
22159
22247
|
const paragraph = paragraphs[index];
|
|
22160
22248
|
if (!paragraph?.numbering) {
|
|
22161
22249
|
break;
|
|
@@ -22176,10 +22264,24 @@ function continueNumbering(document2, paragraphIndex, context) {
|
|
|
22176
22264
|
createdNumberingInstanceId: compatibleInstanceId
|
|
22177
22265
|
};
|
|
22178
22266
|
}
|
|
22179
|
-
function toggleListKind(document2, paragraphIndexes, kind, context) {
|
|
22267
|
+
function toggleListKind(document2, paragraphIndexes, kind, context, options) {
|
|
22180
22268
|
const working = cloneEnvelope(document2, context.timestamp);
|
|
22181
22269
|
const paragraphs = captureEditableParagraphs(working);
|
|
22182
|
-
const
|
|
22270
|
+
const resolved = resolveListCommandParagraphIndexes(
|
|
22271
|
+
working,
|
|
22272
|
+
paragraphs,
|
|
22273
|
+
paragraphIndexes,
|
|
22274
|
+
context,
|
|
22275
|
+
normalizeListCommandTargets(options)
|
|
22276
|
+
);
|
|
22277
|
+
if (resolved.blockedReason) {
|
|
22278
|
+
return {
|
|
22279
|
+
document: working,
|
|
22280
|
+
affectedParagraphIndexes: [],
|
|
22281
|
+
blockedReason: resolved.blockedReason
|
|
22282
|
+
};
|
|
22283
|
+
}
|
|
22284
|
+
const normalizedIndexes = resolved.paragraphIndexes;
|
|
22183
22285
|
if (normalizedIndexes.length === 0) {
|
|
22184
22286
|
return {
|
|
22185
22287
|
document: working,
|
|
@@ -22216,10 +22318,24 @@ function toggleListKind(document2, paragraphIndexes, kind, context) {
|
|
|
22216
22318
|
createdNumberingInstanceId: numberingInstanceId
|
|
22217
22319
|
};
|
|
22218
22320
|
}
|
|
22219
|
-
function adjustListLevels(document2, paragraphIndexes, delta, context) {
|
|
22321
|
+
function adjustListLevels(document2, paragraphIndexes, delta, context, options) {
|
|
22220
22322
|
const working = cloneEnvelope(document2, context.timestamp);
|
|
22221
22323
|
const paragraphs = captureEditableParagraphs(working);
|
|
22222
|
-
const
|
|
22324
|
+
const resolved = resolveListCommandParagraphIndexes(
|
|
22325
|
+
working,
|
|
22326
|
+
paragraphs,
|
|
22327
|
+
paragraphIndexes,
|
|
22328
|
+
context,
|
|
22329
|
+
normalizeListCommandTargets(options)
|
|
22330
|
+
);
|
|
22331
|
+
if (resolved.blockedReason) {
|
|
22332
|
+
return {
|
|
22333
|
+
document: working,
|
|
22334
|
+
affectedParagraphIndexes: [],
|
|
22335
|
+
blockedReason: resolved.blockedReason
|
|
22336
|
+
};
|
|
22337
|
+
}
|
|
22338
|
+
const affectedParagraphIndexes = resolved.paragraphIndexes.filter(
|
|
22223
22339
|
(index) => Boolean(paragraphs[index]?.numbering)
|
|
22224
22340
|
);
|
|
22225
22341
|
for (const index of affectedParagraphIndexes) {
|
|
@@ -22237,6 +22353,121 @@ function adjustListLevels(document2, paragraphIndexes, delta, context) {
|
|
|
22237
22353
|
affectedParagraphIndexes
|
|
22238
22354
|
};
|
|
22239
22355
|
}
|
|
22356
|
+
function normalizeListCommandTargets(options) {
|
|
22357
|
+
if (options.editableTargets !== void 0) return options.editableTargets;
|
|
22358
|
+
return options.editableTarget ? [options.editableTarget] : [];
|
|
22359
|
+
}
|
|
22360
|
+
function resolveListCommandParagraphIndexes(document2, paragraphs, paragraphIndexes, context, editableTargets) {
|
|
22361
|
+
if (editableTargets.length === 0) {
|
|
22362
|
+
return { paragraphIndexes: normalizeParagraphIndexes(paragraphs, paragraphIndexes) };
|
|
22363
|
+
}
|
|
22364
|
+
const currentTargets = collectEditableTargetRefs(document2, context.editableTargetCache);
|
|
22365
|
+
const paragraphIndexByTargetKey = /* @__PURE__ */ new Map();
|
|
22366
|
+
let paragraphIndex = 0;
|
|
22367
|
+
for (const target of currentTargets) {
|
|
22368
|
+
if (!isParagraphTextTarget(target)) continue;
|
|
22369
|
+
if (!paragraphIndexByTargetKey.has(target.targetKey)) {
|
|
22370
|
+
paragraphIndexByTargetKey.set(target.targetKey, paragraphIndex);
|
|
22371
|
+
paragraphIndex += 1;
|
|
22372
|
+
}
|
|
22373
|
+
}
|
|
22374
|
+
const resolvedIndexes = [];
|
|
22375
|
+
for (const target of editableTargets) {
|
|
22376
|
+
const blockedReason = validateListCommandTarget(target, currentTargets, context);
|
|
22377
|
+
if (blockedReason) return { paragraphIndexes: [], blockedReason };
|
|
22378
|
+
const current = findCurrentListCommandTarget(target, currentTargets);
|
|
22379
|
+
if (!current) {
|
|
22380
|
+
return {
|
|
22381
|
+
paragraphIndexes: [],
|
|
22382
|
+
blockedReason: {
|
|
22383
|
+
code: "list_target_not_found",
|
|
22384
|
+
message: "List editable target no longer resolves in the current canonical document."
|
|
22385
|
+
}
|
|
22386
|
+
};
|
|
22387
|
+
}
|
|
22388
|
+
if (!sameResolvedListCommandTarget(target, current)) {
|
|
22389
|
+
return {
|
|
22390
|
+
paragraphIndexes: [],
|
|
22391
|
+
blockedReason: {
|
|
22392
|
+
code: "list_target_stale",
|
|
22393
|
+
message: "List editable target is stale for the current canonical document."
|
|
22394
|
+
}
|
|
22395
|
+
};
|
|
22396
|
+
}
|
|
22397
|
+
const currentIndex = paragraphIndexByTargetKey.get(current.targetKey);
|
|
22398
|
+
if (currentIndex === void 0) {
|
|
22399
|
+
return {
|
|
22400
|
+
paragraphIndexes: [],
|
|
22401
|
+
blockedReason: {
|
|
22402
|
+
code: "list_target_position_unavailable",
|
|
22403
|
+
message: "List editable target resolved but could not be mapped to a current paragraph."
|
|
22404
|
+
}
|
|
22405
|
+
};
|
|
22406
|
+
}
|
|
22407
|
+
resolvedIndexes.push(currentIndex);
|
|
22408
|
+
}
|
|
22409
|
+
return { paragraphIndexes: normalizeParagraphIndexes(paragraphs, resolvedIndexes) };
|
|
22410
|
+
}
|
|
22411
|
+
function validateListCommandTarget(target, currentTargets, context) {
|
|
22412
|
+
const shapeIssues = validateEditableTargetRef(target);
|
|
22413
|
+
if (shapeIssues.length > 0) {
|
|
22414
|
+
return {
|
|
22415
|
+
code: "list_target_malformed",
|
|
22416
|
+
message: `List editable target is malformed: ${shapeIssues[0]?.path ?? "$"}.`
|
|
22417
|
+
};
|
|
22418
|
+
}
|
|
22419
|
+
if (context.activeStoryKey !== void 0 && target.storyKey !== context.activeStoryKey) {
|
|
22420
|
+
return {
|
|
22421
|
+
code: "list_target_wrong_story",
|
|
22422
|
+
message: "List editable target does not belong to the active story."
|
|
22423
|
+
};
|
|
22424
|
+
}
|
|
22425
|
+
if (target.commandFamily !== "text-leaf" || target.listAddress === void 0) {
|
|
22426
|
+
return {
|
|
22427
|
+
code: "list_target_required",
|
|
22428
|
+
message: "List commands require a validated list item editable target."
|
|
22429
|
+
};
|
|
22430
|
+
}
|
|
22431
|
+
if (target.editability !== "editable" || target.posture.blockers.length > 0) {
|
|
22432
|
+
return {
|
|
22433
|
+
code: "list_target_non_editable",
|
|
22434
|
+
message: target.posture.blockers.length > 0 ? `List editable target is not editable: ${target.posture.blockers.join(", ")}.` : "List editable target is not editable."
|
|
22435
|
+
};
|
|
22436
|
+
}
|
|
22437
|
+
if (!findCurrentListCommandTarget(target, currentTargets)) {
|
|
22438
|
+
return {
|
|
22439
|
+
code: "list_target_not_found",
|
|
22440
|
+
message: "List editable target no longer resolves in the current canonical document."
|
|
22441
|
+
};
|
|
22442
|
+
}
|
|
22443
|
+
return void 0;
|
|
22444
|
+
}
|
|
22445
|
+
function findCurrentListCommandTarget(target, currentTargets) {
|
|
22446
|
+
return currentTargets.find(
|
|
22447
|
+
(candidate) => isParagraphTextTarget(candidate) && candidate.listAddress !== void 0 && (candidate.targetKey === target.targetKey || candidate.listAddress.addressKey === target.listAddress?.addressKey)
|
|
22448
|
+
);
|
|
22449
|
+
}
|
|
22450
|
+
function sameResolvedListCommandTarget(left, right) {
|
|
22451
|
+
return left.kind === right.kind && left.storyKey === right.storyKey && left.blockPath === right.blockPath && left.leafPath === right.leafPath && left.commandFamily === right.commandFamily && left.editability === right.editability && left.staleCheck.paragraphTextHash === right.staleCheck.paragraphTextHash && left.staleCheck.paragraphTextLength === right.staleCheck.paragraphTextLength && left.staleCheck.inlineCount === right.staleCheck.inlineCount && left.staleCheck.blockType === right.staleCheck.blockType && left.listAddress?.addressKey === right.listAddress?.addressKey && left.listAddress?.resolver?.staleHash === right.listAddress?.resolver?.staleHash && jsonStable(left.sourceRef) === jsonStable(right.sourceRef);
|
|
22452
|
+
}
|
|
22453
|
+
function isParagraphTextTarget(target) {
|
|
22454
|
+
return target.commandFamily === "text-leaf" && target.staleCheck.blockType === "paragraph" && target.leafPath.endsWith("/inline");
|
|
22455
|
+
}
|
|
22456
|
+
function jsonStable(value) {
|
|
22457
|
+
return JSON.stringify(sortJson(value));
|
|
22458
|
+
}
|
|
22459
|
+
function sortJson(value) {
|
|
22460
|
+
if (Array.isArray(value)) return value.map(sortJson);
|
|
22461
|
+
if (value && typeof value === "object") {
|
|
22462
|
+
const record = value;
|
|
22463
|
+
const sorted = {};
|
|
22464
|
+
for (const key of Object.keys(record).sort()) {
|
|
22465
|
+
sorted[key] = sortJson(record[key]);
|
|
22466
|
+
}
|
|
22467
|
+
return sorted;
|
|
22468
|
+
}
|
|
22469
|
+
return value;
|
|
22470
|
+
}
|
|
22240
22471
|
function ensureDefaultInstance(catalog, kind) {
|
|
22241
22472
|
const existing = Object.values(catalog.instances).find(
|
|
22242
22473
|
(instance) => getListKind(catalog, instance.numberingInstanceId) === kind
|
|
@@ -22402,7 +22633,8 @@ function applyListAwareTextCommand(context, command, deps) {
|
|
|
22402
22633
|
const result = indentListItems(
|
|
22403
22634
|
context.localDocument,
|
|
22404
22635
|
[paragraphContext.paragraphIndex],
|
|
22405
|
-
|
|
22636
|
+
listCommandContext(context),
|
|
22637
|
+
listCommandTargetOptions(context, paragraphContext)
|
|
22406
22638
|
);
|
|
22407
22639
|
return createListMutationResult(result, context.localSnapshot.selection, deps);
|
|
22408
22640
|
}
|
|
@@ -22410,7 +22642,8 @@ function applyListAwareTextCommand(context, command, deps) {
|
|
|
22410
22642
|
const result = outdentListItems(
|
|
22411
22643
|
context.localDocument,
|
|
22412
22644
|
[paragraphContext.paragraphIndex],
|
|
22413
|
-
|
|
22645
|
+
listCommandContext(context),
|
|
22646
|
+
listCommandTargetOptions(context, paragraphContext)
|
|
22414
22647
|
);
|
|
22415
22648
|
return createListMutationResult(result, context.localSnapshot.selection, deps);
|
|
22416
22649
|
}
|
|
@@ -22421,7 +22654,8 @@ function applyListAwareTextCommand(context, command, deps) {
|
|
|
22421
22654
|
const result = backspaceAtListStart(
|
|
22422
22655
|
context.localDocument,
|
|
22423
22656
|
paragraphContext.paragraphIndex,
|
|
22424
|
-
|
|
22657
|
+
listCommandContext(context),
|
|
22658
|
+
listCommandTargetOptions(context, paragraphContext)
|
|
22425
22659
|
);
|
|
22426
22660
|
return result.handled ? createListMutationResult(result, context.localSnapshot.selection, deps) : null;
|
|
22427
22661
|
}
|
|
@@ -22433,14 +22667,30 @@ function applyListAwareTextCommand(context, command, deps) {
|
|
|
22433
22667
|
context.localDocument,
|
|
22434
22668
|
paragraphContext.paragraphIndex,
|
|
22435
22669
|
true,
|
|
22436
|
-
|
|
22670
|
+
listCommandContext(context),
|
|
22671
|
+
listCommandTargetOptions(context, paragraphContext)
|
|
22437
22672
|
);
|
|
22673
|
+
if (result.blockedReason) {
|
|
22674
|
+
return createListMutationResult(result, context.localSnapshot.selection, deps);
|
|
22675
|
+
}
|
|
22438
22676
|
return result.action === "split" ? null : createListMutationResult(result, context.localSnapshot.selection, deps);
|
|
22439
22677
|
}
|
|
22440
22678
|
default:
|
|
22441
22679
|
return null;
|
|
22442
22680
|
}
|
|
22443
22681
|
}
|
|
22682
|
+
function listCommandContext(context) {
|
|
22683
|
+
return {
|
|
22684
|
+
timestamp: context.timestamp,
|
|
22685
|
+
...context.activeStory.kind === "main" ? { activeStoryKey: "main" } : {}
|
|
22686
|
+
};
|
|
22687
|
+
}
|
|
22688
|
+
function listCommandTargetOptions(context, paragraphContext) {
|
|
22689
|
+
if (context.activeStory.kind !== "main" || !paragraphContext.paragraph.editableTarget) {
|
|
22690
|
+
return {};
|
|
22691
|
+
}
|
|
22692
|
+
return { editableTargets: [paragraphContext.paragraph.editableTarget] };
|
|
22693
|
+
}
|
|
22444
22694
|
function createListMutationResult(result, selection, deps) {
|
|
22445
22695
|
return {
|
|
22446
22696
|
changed: result.affectedParagraphIndexes.length > 0,
|
|
@@ -33882,6 +34132,13 @@ function withCommandTextTarget(context, command) {
|
|
|
33882
34132
|
textTarget: command.textTarget
|
|
33883
34133
|
};
|
|
33884
34134
|
}
|
|
34135
|
+
function listCommandContext2(context) {
|
|
34136
|
+
return {
|
|
34137
|
+
timestamp: context.timestamp,
|
|
34138
|
+
...context.activeStoryKey !== void 0 ? { activeStoryKey: context.activeStoryKey } : {},
|
|
34139
|
+
...context.editableTargetCache !== void 0 ? { editableTargetCache: context.editableTargetCache } : {}
|
|
34140
|
+
};
|
|
34141
|
+
}
|
|
33885
34142
|
function executeEditorCommand(state, command, context) {
|
|
33886
34143
|
switch (command.type) {
|
|
33887
34144
|
case "selection.set":
|
|
@@ -34523,7 +34780,17 @@ function executeEditorCommand(state, command, context) {
|
|
|
34523
34780
|
});
|
|
34524
34781
|
}
|
|
34525
34782
|
case "list.toggle": {
|
|
34526
|
-
const result = command.kind === "bulleted" ? toggleBulletedList(
|
|
34783
|
+
const result = command.kind === "bulleted" ? toggleBulletedList(
|
|
34784
|
+
state.document,
|
|
34785
|
+
command.paragraphIndexes ?? [],
|
|
34786
|
+
listCommandContext2(context),
|
|
34787
|
+
{ editableTargets: command.editableTargets }
|
|
34788
|
+
) : toggleNumberedList(
|
|
34789
|
+
state.document,
|
|
34790
|
+
command.paragraphIndexes ?? [],
|
|
34791
|
+
listCommandContext2(context),
|
|
34792
|
+
{ editableTargets: command.editableTargets }
|
|
34793
|
+
);
|
|
34527
34794
|
return buildDocumentReplaceTransaction(state, context, {
|
|
34528
34795
|
changed: result.affectedParagraphIndexes.length > 0,
|
|
34529
34796
|
document: result.document,
|
|
@@ -34531,7 +34798,12 @@ function executeEditorCommand(state, command, context) {
|
|
|
34531
34798
|
});
|
|
34532
34799
|
}
|
|
34533
34800
|
case "list.indent": {
|
|
34534
|
-
const result = indentListItems(
|
|
34801
|
+
const result = indentListItems(
|
|
34802
|
+
state.document,
|
|
34803
|
+
command.paragraphIndexes ?? [],
|
|
34804
|
+
listCommandContext2(context),
|
|
34805
|
+
{ editableTargets: command.editableTargets }
|
|
34806
|
+
);
|
|
34535
34807
|
return buildDocumentReplaceTransaction(state, context, {
|
|
34536
34808
|
changed: result.affectedParagraphIndexes.length > 0,
|
|
34537
34809
|
document: result.document,
|
|
@@ -34539,7 +34811,12 @@ function executeEditorCommand(state, command, context) {
|
|
|
34539
34811
|
});
|
|
34540
34812
|
}
|
|
34541
34813
|
case "list.outdent": {
|
|
34542
|
-
const result = outdentListItems(
|
|
34814
|
+
const result = outdentListItems(
|
|
34815
|
+
state.document,
|
|
34816
|
+
command.paragraphIndexes ?? [],
|
|
34817
|
+
listCommandContext2(context),
|
|
34818
|
+
{ editableTargets: command.editableTargets }
|
|
34819
|
+
);
|
|
34543
34820
|
return buildDocumentReplaceTransaction(state, context, {
|
|
34544
34821
|
changed: result.affectedParagraphIndexes.length > 0,
|
|
34545
34822
|
document: result.document,
|
|
@@ -34549,9 +34826,10 @@ function executeEditorCommand(state, command, context) {
|
|
|
34549
34826
|
case "list.restart-numbering": {
|
|
34550
34827
|
const result = restartNumbering(
|
|
34551
34828
|
state.document,
|
|
34552
|
-
command.paragraphIndex,
|
|
34553
|
-
|
|
34554
|
-
command.startAt
|
|
34829
|
+
command.paragraphIndex ?? -1,
|
|
34830
|
+
listCommandContext2(context),
|
|
34831
|
+
command.startAt,
|
|
34832
|
+
{ editableTarget: command.editableTarget }
|
|
34555
34833
|
);
|
|
34556
34834
|
return buildDocumentReplaceTransaction(state, context, {
|
|
34557
34835
|
changed: result.affectedParagraphIndexes.length > 0,
|
|
@@ -34562,8 +34840,9 @@ function executeEditorCommand(state, command, context) {
|
|
|
34562
34840
|
case "list.continue-numbering": {
|
|
34563
34841
|
const result = continueNumbering(
|
|
34564
34842
|
state.document,
|
|
34565
|
-
command.paragraphIndex,
|
|
34566
|
-
|
|
34843
|
+
command.paragraphIndex ?? -1,
|
|
34844
|
+
listCommandContext2(context),
|
|
34845
|
+
{ editableTarget: command.editableTarget }
|
|
34567
34846
|
);
|
|
34568
34847
|
return buildDocumentReplaceTransaction(state, context, {
|
|
34569
34848
|
changed: result.affectedParagraphIndexes.length > 0,
|
|
@@ -66716,7 +66995,8 @@ function rejectCommand(code, message) {
|
|
|
66716
66995
|
};
|
|
66717
66996
|
}
|
|
66718
66997
|
function sameResolvedTarget2(left, right) {
|
|
66719
|
-
|
|
66998
|
+
const textTargetLengthDrift = hasTextTargetLengthDrift(left, right);
|
|
66999
|
+
return left.kind === right.kind && left.storyKey === right.storyKey && left.blockPath === right.blockPath && left.leafPath === right.leafPath && left.commandFamily === right.commandFamily && left.editability === right.editability && sameTextTargetStaleCheck(left, right) && left.staleCheck.inlineCount === right.staleCheck.inlineCount && left.staleCheck.targetHash === right.staleCheck.targetHash && left.staleCheck.targetTextLength === right.staleCheck.targetTextLength && left.staleCheck.childCount === right.staleCheck.childCount && left.staleCheck.blockType === right.staleCheck.blockType && left.staleCheck.wordParaId === right.staleCheck.wordParaId && left.staleCheck.wordTextId === right.staleCheck.wordTextId && (textTargetLengthDrift || jsonStable2(left.staleCheck.sourceRef) === jsonStable2(right.staleCheck.sourceRef)) && (textTargetLengthDrift || jsonStable2(left.sourceRef) === jsonStable2(right.sourceRef)) && jsonStable2(left.table) === jsonStable2(right.table) && jsonStable2(left.editableOwner) === jsonStable2(right.editableOwner);
|
|
66720
67000
|
}
|
|
66721
67001
|
function sameTextTargetStaleCheck(left, right) {
|
|
66722
67002
|
if (left.staleCheck.paragraphTextHash === right.staleCheck.paragraphTextHash && left.staleCheck.paragraphTextLength === right.staleCheck.paragraphTextLength) {
|
|
@@ -66724,6 +67004,9 @@ function sameTextTargetStaleCheck(left, right) {
|
|
|
66724
67004
|
}
|
|
66725
67005
|
return left.commandFamily === "text-leaf" && left.staleCheck.paragraphTextLength !== void 0 && right.staleCheck.paragraphTextLength !== void 0 && left.staleCheck.paragraphTextLength !== right.staleCheck.paragraphTextLength;
|
|
66726
67006
|
}
|
|
67007
|
+
function hasTextTargetLengthDrift(left, right) {
|
|
67008
|
+
return left.commandFamily === "text-leaf" && left.staleCheck.paragraphTextLength !== void 0 && right.staleCheck.paragraphTextLength !== void 0 && left.staleCheck.paragraphTextLength !== right.staleCheck.paragraphTextLength;
|
|
67009
|
+
}
|
|
66727
67010
|
function locateTargetRange(document2, surface, target) {
|
|
66728
67011
|
if (target.kind === "hyperlink-text") {
|
|
66729
67012
|
return locateHyperlinkDisplayRange(document2, surface, target);
|
|
@@ -67015,7 +67298,7 @@ function resolveBlockPathInSurfaceBlocks2(blocks, tokens, tokenIndex, hasVertica
|
|
|
67015
67298
|
hasVerticalMergeContinuation || cell.verticalMerge === "continue"
|
|
67016
67299
|
);
|
|
67017
67300
|
}
|
|
67018
|
-
function
|
|
67301
|
+
function jsonStable2(value) {
|
|
67019
67302
|
return value === void 0 ? "" : JSON.stringify(value);
|
|
67020
67303
|
}
|
|
67021
67304
|
|
|
@@ -67152,20 +67435,20 @@ function tableAnchorCell(table) {
|
|
|
67152
67435
|
};
|
|
67153
67436
|
}
|
|
67154
67437
|
function sameResolvedTableStructureTarget(left, right) {
|
|
67155
|
-
return left.kind === right.kind && left.storyKey === right.storyKey && left.blockPath === right.blockPath && left.leafPath === right.leafPath && left.commandFamily === right.commandFamily && left.editability === right.editability && left.staleCheck.targetHash === right.staleCheck.targetHash && left.staleCheck.childCount === right.staleCheck.childCount && left.staleCheck.blockType === right.staleCheck.blockType &&
|
|
67438
|
+
return left.kind === right.kind && left.storyKey === right.storyKey && left.blockPath === right.blockPath && left.leafPath === right.leafPath && left.commandFamily === right.commandFamily && left.editability === right.editability && left.staleCheck.targetHash === right.staleCheck.targetHash && left.staleCheck.childCount === right.staleCheck.childCount && left.staleCheck.blockType === right.staleCheck.blockType && jsonStable3(left.staleCheck.sourceRef) === jsonStable3(right.staleCheck.sourceRef) && jsonStable3(left.sourceRef) === jsonStable3(right.sourceRef) && jsonStable3(left.table) === jsonStable3(right.table);
|
|
67156
67439
|
}
|
|
67157
|
-
function
|
|
67158
|
-
return JSON.stringify(
|
|
67440
|
+
function jsonStable3(value) {
|
|
67441
|
+
return JSON.stringify(sortJson2(value));
|
|
67159
67442
|
}
|
|
67160
|
-
function
|
|
67443
|
+
function sortJson2(value) {
|
|
67161
67444
|
if (Array.isArray(value)) {
|
|
67162
|
-
return value.map(
|
|
67445
|
+
return value.map(sortJson2);
|
|
67163
67446
|
}
|
|
67164
67447
|
if (value && typeof value === "object") {
|
|
67165
67448
|
const record = value;
|
|
67166
67449
|
const sorted = {};
|
|
67167
67450
|
for (const key of Object.keys(record).sort()) {
|
|
67168
|
-
sorted[key] =
|
|
67451
|
+
sorted[key] = sortJson2(record[key]);
|
|
67169
67452
|
}
|
|
67170
67453
|
return sorted;
|
|
67171
67454
|
}
|
|
@@ -69247,6 +69530,8 @@ function createDocumentRuntime(options) {
|
|
|
69247
69530
|
documentMode: workflowCoordinator.getEffectiveDocumentMode(commandSelection),
|
|
69248
69531
|
defaultAuthorId: defaultAuthorId ?? void 0,
|
|
69249
69532
|
renderSnapshot: cachedRenderSnapshot,
|
|
69533
|
+
activeStoryKey: canonicalEditableTargetStoryKey(activeStory),
|
|
69534
|
+
editableTargetCache: editableTargetBlockCache,
|
|
69250
69535
|
...resolvedFragmentTextTarget ? { textTarget: resolvedFragmentTextTarget } : {}
|
|
69251
69536
|
};
|
|
69252
69537
|
const preSelection = commandSelection;
|
|
@@ -71846,6 +72131,8 @@ function createDocumentRuntime(options) {
|
|
|
71846
72131
|
documentMode: textOptions.documentModeOverride ?? workflowCoordinator.getEffectiveDocumentMode(selection),
|
|
71847
72132
|
defaultAuthorId: defaultAuthorId ?? void 0,
|
|
71848
72133
|
renderSnapshot: cachedRenderSnapshot,
|
|
72134
|
+
activeStoryKey: canonicalEditableTargetStoryKey(activeStory),
|
|
72135
|
+
editableTargetCache: editableTargetBlockCache,
|
|
71849
72136
|
activeStorySize: cachedRenderSnapshot.surface?.storySize,
|
|
71850
72137
|
textTarget,
|
|
71851
72138
|
rejectTargetlessTableStructureInsert: true
|
|
@@ -72146,7 +72433,9 @@ function createDocumentRuntime(options) {
|
|
|
72146
72433
|
timestamp: clock(),
|
|
72147
72434
|
documentMode: workflowCoordinator.getEffectiveDocumentMode(state.selection),
|
|
72148
72435
|
defaultAuthorId: defaultAuthorId ?? void 0,
|
|
72149
|
-
renderSnapshot: cachedRenderSnapshot
|
|
72436
|
+
renderSnapshot: cachedRenderSnapshot,
|
|
72437
|
+
activeStoryKey: canonicalEditableTargetStoryKey(activeStory),
|
|
72438
|
+
editableTargetCache: editableTargetBlockCache
|
|
72150
72439
|
};
|
|
72151
72440
|
try {
|
|
72152
72441
|
const transaction = executeEditorCommand(
|
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-BP3vqJR5.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-BP3vqJR5.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-Cq-fzx3B.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-Bg7D-GD3.cjs';
|
|
6
6
|
import { Awareness } from 'y-protocols/awareness';
|
|
7
7
|
import { C as CanonicalDocument } from './canonical-document-CXCFCbAz.cjs';
|
|
8
8
|
import 'yjs';
|