@beyondwork/docx-react-component 1.0.124 → 1.0.125
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/public-types.cjs +147 -35
- package/dist/api/public-types.d.cts +2 -2
- package/dist/api/public-types.d.ts +2 -2
- package/dist/api/public-types.js +3 -3
- package/dist/api/v3.cjs +791 -101
- package/dist/api/v3.d.cts +3 -3
- package/dist/api/v3.d.ts +3 -3
- package/dist/api/v3.js +10 -10
- package/dist/{canonical-document-CG2TgAzj.d.cts → canonical-document-CXCFCbAz.d.cts} +2 -0
- package/dist/{canonical-document-CG2TgAzj.d.ts → canonical-document-CXCFCbAz.d.ts} +2 -0
- package/dist/{chunk-PFYUJU3Q.js → chunk-2QL5DAKF.js} +98 -43
- package/dist/{chunk-4IPEZYQX.js → chunk-4EENH4FG.js} +1 -1
- package/dist/{chunk-BOHHIVQ2.js → chunk-4G3OS2H6.js} +3 -3
- package/dist/{chunk-A74Y5NE4.js → chunk-4YJVRIUB.js} +52 -21
- package/dist/{chunk-FNWKE74J.js → chunk-5DGKFNQT.js} +5 -1
- package/dist/{chunk-RSYN6FTS.js → chunk-6F5QW44A.js} +2 -2
- package/dist/{chunk-KOHQFZMM.js → chunk-BYSRJ4FE.js} +1 -1
- package/dist/{chunk-H6IL5ABU.js → chunk-CXSYRB37.js} +64 -20
- package/dist/{chunk-32ZAOQ54.js → chunk-D5HYZQTG.js} +1 -1
- package/dist/{chunk-TY4DIJO3.js → chunk-ESJ2MES5.js} +1 -1
- package/dist/{chunk-ZMRO6P3A.js → chunk-JN444Z5S.js} +505 -44
- package/dist/{chunk-IR7QV2BX.js → chunk-KV435YXO.js} +2 -2
- package/dist/{chunk-N4VIXI2Z.js → chunk-MWSBGJQO.js} +137 -18
- package/dist/{chunk-Q76XPPTA.js → chunk-OHTK7F3F.js} +96 -13
- package/dist/{chunk-MPH4ZQS4.js → chunk-QT3LX4FA.js} +321 -51
- package/dist/{chunk-7PC6XUNO.js → chunk-TQDQU2E3.js} +2 -2
- package/dist/{chunk-4B74ETJI.js → chunk-V6XVZFFH.js} +2 -2
- package/dist/{chunk-NAMAWCXN.js → chunk-YD2JE54B.js} +1 -1
- package/dist/{chunk-ZRHLLPSJ.js → chunk-YHZHPXDB.js} +85 -18
- package/dist/{chunk-HXHQA4BU.js → chunk-YIYM4ZAP.js} +1 -1
- package/dist/{chunk-LGWNN3L2.js → chunk-ZDOAUP3V.js} +2 -2
- package/dist/compare.d.cts +1 -1
- package/dist/compare.d.ts +1 -1
- package/dist/core/commands/formatting-commands.d.cts +2 -2
- package/dist/core/commands/formatting-commands.d.ts +2 -2
- package/dist/core/commands/image-commands.cjs +65 -20
- package/dist/core/commands/image-commands.d.cts +2 -2
- package/dist/core/commands/image-commands.d.ts +2 -2
- package/dist/core/commands/image-commands.js +5 -5
- package/dist/core/commands/section-layout-commands.d.cts +2 -2
- package/dist/core/commands/section-layout-commands.d.ts +2 -2
- package/dist/core/commands/style-commands.d.cts +2 -2
- package/dist/core/commands/style-commands.d.ts +2 -2
- package/dist/core/commands/table-structure-commands.cjs +65 -20
- package/dist/core/commands/table-structure-commands.d.cts +2 -2
- package/dist/core/commands/table-structure-commands.d.ts +2 -2
- package/dist/core/commands/table-structure-commands.js +4 -4
- package/dist/core/commands/text-commands.cjs +66 -21
- package/dist/core/commands/text-commands.d.cts +2 -2
- package/dist/core/commands/text-commands.d.ts +2 -2
- package/dist/core/commands/text-commands.js +5 -5
- package/dist/core/selection/mapping.d.cts +2 -2
- package/dist/core/selection/mapping.d.ts +2 -2
- package/dist/core/state/editor-state.d.cts +2 -2
- package/dist/core/state/editor-state.d.ts +2 -2
- package/dist/index.cjs +1341 -193
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +39 -21
- package/dist/io/docx-session.cjs +51 -20
- package/dist/io/docx-session.d.cts +4 -4
- package/dist/io/docx-session.d.ts +4 -4
- package/dist/io/docx-session.js +4 -4
- package/dist/legal.cjs +36 -12
- package/dist/legal.d.cts +1 -1
- package/dist/legal.d.ts +1 -1
- package/dist/legal.js +3 -3
- package/dist/{loader-D9y4ZRjj.d.ts → loader-B1MxvbeV.d.ts} +3 -3
- package/dist/{loader-D9KCtj4m.d.cts → loader-CJXsswcd.d.cts} +3 -3
- package/dist/{public-types-CNnMHZM9.d.ts → public-types-BEGhv2YR.d.ts} +108 -6
- package/dist/{public-types-DajNGKV4.d.cts → public-types-DrhlQ5Zy.d.cts} +108 -6
- package/dist/public-types.cjs +147 -35
- package/dist/public-types.d.cts +2 -2
- package/dist/public-types.d.ts +2 -2
- package/dist/public-types.js +3 -3
- package/dist/runtime/collab.d.cts +3 -3
- package/dist/runtime/collab.d.ts +3 -3
- package/dist/runtime/document-runtime.cjs +685 -98
- package/dist/runtime/document-runtime.d.cts +2 -2
- package/dist/runtime/document-runtime.d.ts +2 -2
- package/dist/runtime/document-runtime.js +14 -14
- package/dist/{session-DyQGlryH.d.cts → session-Bp3zqnkS.d.cts} +3 -3
- package/dist/{session-DEmaOEjA.d.ts → session-xMOU_NtL.d.ts} +3 -3
- package/dist/session.cjs +51 -20
- package/dist/session.d.cts +5 -5
- package/dist/session.d.ts +5 -5
- package/dist/session.js +5 -5
- package/dist/tailwind.cjs +238 -73
- package/dist/tailwind.d.cts +2 -2
- package/dist/tailwind.d.ts +2 -2
- package/dist/tailwind.js +7 -7
- package/dist/{types-DjJNaE9c.d.ts → types-BFT8536T.d.ts} +2 -2
- package/dist/{types-CxE1aZiv.d.cts → types-DDPxEygX.d.cts} +2 -2
- package/dist/ui-tailwind/editor-surface/search-plugin.d.cts +3 -3
- package/dist/ui-tailwind/editor-surface/search-plugin.d.ts +3 -3
- package/dist/ui-tailwind/editor-surface/search-plugin.js +4 -4
- package/dist/ui-tailwind.cjs +238 -73
- package/dist/ui-tailwind.d.cts +3 -3
- package/dist/ui-tailwind.d.ts +3 -3
- package/dist/ui-tailwind.js +7 -7
- package/package.json +1 -1
|
@@ -870,7 +870,7 @@ function createParagraphEditableTarget(paragraph, kind, storyKey, blockPath, tar
|
|
|
870
870
|
context: { storyKey, insideSdt: contentControl !== void 0 },
|
|
871
871
|
...tableTarget
|
|
872
872
|
}) : void 0;
|
|
873
|
-
const listAddress =
|
|
873
|
+
const listAddress = paragraph.numbering !== void 0 ? createCanonicalAddress({
|
|
874
874
|
addressKind: "list-item-text",
|
|
875
875
|
storyKey,
|
|
876
876
|
staleCheckKind: "paragraph",
|
|
@@ -904,6 +904,7 @@ function createParagraphEditableTarget(paragraph, kind, storyKey, blockPath, tar
|
|
|
904
904
|
...contentControl !== void 0 ? { contentControl } : {},
|
|
905
905
|
...tableIdentity !== void 0 ? { table: tableIdentity } : {},
|
|
906
906
|
...editableOwner !== void 0 ? { editableOwner } : {},
|
|
907
|
+
...listAddress !== void 0 ? { listAddress } : {},
|
|
907
908
|
...tableIdentity !== void 0 ? {
|
|
908
909
|
canonicalAddress: createTableTargetCanonicalAddress(
|
|
909
910
|
tableIdentity,
|
|
@@ -3163,6 +3164,7 @@ function mergeLevelDefinition(base, override, startOverride, fallbackLevel) {
|
|
|
3163
3164
|
);
|
|
3164
3165
|
const runProperties = override?.runProperties ?? base?.runProperties;
|
|
3165
3166
|
const restartAfterLevel = override?.restartAfterLevel ?? base?.restartAfterLevel;
|
|
3167
|
+
const picBulletId = override?.picBulletId ?? base?.picBulletId;
|
|
3166
3168
|
return {
|
|
3167
3169
|
level,
|
|
3168
3170
|
format,
|
|
@@ -3173,7 +3175,8 @@ function mergeLevelDefinition(base, override, startOverride, fallbackLevel) {
|
|
|
3173
3175
|
...override?.suffix ?? base?.suffix ? { suffix: override?.suffix ?? base?.suffix } : {},
|
|
3174
3176
|
...paragraphGeometry ? { paragraphGeometry } : {},
|
|
3175
3177
|
...runProperties ? { runProperties } : {},
|
|
3176
|
-
...restartAfterLevel !== void 0 ? { restartAfterLevel } : {}
|
|
3178
|
+
...restartAfterLevel !== void 0 ? { restartAfterLevel } : {},
|
|
3179
|
+
...picBulletId !== void 0 ? { picBulletId } : {}
|
|
3177
3180
|
};
|
|
3178
3181
|
}
|
|
3179
3182
|
function withDefaultStartAt(level) {
|
|
@@ -3301,7 +3304,7 @@ function resolveHangingWidth(indentation) {
|
|
|
3301
3304
|
// src/runtime/formatting/numbering/prefix.ts
|
|
3302
3305
|
function createNumberingPrefixResolver(catalog) {
|
|
3303
3306
|
const sequenceStates = /* @__PURE__ */ new Map();
|
|
3304
|
-
function resolveInternal(numbering, paragraph) {
|
|
3307
|
+
function resolveInternal(numbering, paragraph, options = {}) {
|
|
3305
3308
|
const resolved = resolveNumberingDefinitionSet(
|
|
3306
3309
|
catalog,
|
|
3307
3310
|
paragraph?.numbering ?? numbering,
|
|
@@ -3314,29 +3317,44 @@ function createNumberingPrefixResolver(catalog) {
|
|
|
3314
3317
|
if (!resolvedNumbering) {
|
|
3315
3318
|
return null;
|
|
3316
3319
|
}
|
|
3317
|
-
const
|
|
3318
|
-
|
|
3320
|
+
const advance = options.advance !== false;
|
|
3321
|
+
const sequenceState = getSequenceState(
|
|
3322
|
+
sequenceStates,
|
|
3323
|
+
resolvedNumbering.numberingInstanceId,
|
|
3324
|
+
{ create: advance }
|
|
3325
|
+
);
|
|
3326
|
+
if (!sequenceState) {
|
|
3327
|
+
return null;
|
|
3328
|
+
}
|
|
3329
|
+
const workingState = advance ? sequenceState : cloneSequenceState(sequenceState);
|
|
3330
|
+
advanceSequence(workingState, resolved.effectiveLevel.level, resolved.effectiveLevels);
|
|
3331
|
+
const currentCounter = workingState.counters[resolved.effectiveLevel.level];
|
|
3319
3332
|
const effectiveLevelDefs = resolved.effectiveLevel.isLegalNumbering ? new Map(
|
|
3320
3333
|
Array.from(resolved.effectiveLevels.entries()).map(([level, definition]) => [
|
|
3321
3334
|
level,
|
|
3322
3335
|
{ ...definition, format: "decimal" }
|
|
3323
3336
|
])
|
|
3324
3337
|
) : resolved.effectiveLevels;
|
|
3338
|
+
const picBulletId = resolved.effectiveLevel.picBulletId;
|
|
3325
3339
|
const text = renderLevelText(
|
|
3326
3340
|
resolved.effectiveLevel.text,
|
|
3327
|
-
|
|
3341
|
+
workingState.counters,
|
|
3328
3342
|
effectiveLevelDefs
|
|
3329
3343
|
);
|
|
3330
|
-
if (resolved.effectiveLevel.format !== "none" && text === null) {
|
|
3344
|
+
if (picBulletId == null && resolved.effectiveLevel.format !== "none" && text === null) {
|
|
3331
3345
|
return null;
|
|
3332
3346
|
}
|
|
3333
3347
|
const visibleText = resolved.effectiveLevel.format === "none" ? null : text;
|
|
3334
|
-
const
|
|
3348
|
+
const formatPosture = getNumberingFormatPosture(
|
|
3349
|
+
resolved.effectiveLevel.format,
|
|
3350
|
+
currentCounter
|
|
3351
|
+
);
|
|
3335
3352
|
const picBulletMediaId = picBulletId != null ? catalog.numPicBullets?.[picBulletId]?.mediaId : void 0;
|
|
3336
3353
|
return {
|
|
3337
3354
|
text: visibleText,
|
|
3338
3355
|
level: resolved.effectiveLevel.level,
|
|
3339
3356
|
format: resolved.effectiveLevel.format,
|
|
3357
|
+
...formatPosture !== void 0 ? { formatPosture } : {},
|
|
3340
3358
|
startAt: resolved.effectiveLevel.startAt ?? DEFAULT_NUMBERING_START_AT,
|
|
3341
3359
|
...resolved.effectiveLevel.suffix ? { suffix: resolved.effectiveLevel.suffix } : {},
|
|
3342
3360
|
...resolved.effectiveLevel.paragraphStyleId ? { paragraphStyleId: resolved.effectiveLevel.paragraphStyleId } : {},
|
|
@@ -3347,23 +3365,26 @@ function createNumberingPrefixResolver(catalog) {
|
|
|
3347
3365
|
};
|
|
3348
3366
|
}
|
|
3349
3367
|
return {
|
|
3350
|
-
resolve(numbering) {
|
|
3351
|
-
const result = resolveInternal(numbering);
|
|
3368
|
+
resolve(numbering, options) {
|
|
3369
|
+
const result = resolveInternal(numbering, void 0, options);
|
|
3352
3370
|
return result?.text ?? null;
|
|
3353
3371
|
},
|
|
3354
|
-
resolveDetailed(numbering, paragraph) {
|
|
3355
|
-
return resolveInternal(numbering, paragraph);
|
|
3372
|
+
resolveDetailed(numbering, paragraph, options) {
|
|
3373
|
+
return resolveInternal(numbering, paragraph, options);
|
|
3356
3374
|
},
|
|
3357
|
-
resolveParagraph(paragraph) {
|
|
3358
|
-
return resolveInternal(paragraph.numbering, paragraph);
|
|
3375
|
+
resolveParagraph(paragraph, options) {
|
|
3376
|
+
return resolveInternal(paragraph.numbering, paragraph, options);
|
|
3359
3377
|
}
|
|
3360
3378
|
};
|
|
3361
3379
|
}
|
|
3362
|
-
function getSequenceState(states, numberingInstanceId) {
|
|
3380
|
+
function getSequenceState(states, numberingInstanceId, options = { create: true }) {
|
|
3363
3381
|
const existing = states.get(numberingInstanceId);
|
|
3364
3382
|
if (existing) {
|
|
3365
3383
|
return existing;
|
|
3366
3384
|
}
|
|
3385
|
+
if (options.create === false) {
|
|
3386
|
+
return { counters: [], lastLevel: null };
|
|
3387
|
+
}
|
|
3367
3388
|
const created = {
|
|
3368
3389
|
counters: [],
|
|
3369
3390
|
lastLevel: null
|
|
@@ -3371,6 +3392,12 @@ function getSequenceState(states, numberingInstanceId) {
|
|
|
3371
3392
|
states.set(numberingInstanceId, created);
|
|
3372
3393
|
return created;
|
|
3373
3394
|
}
|
|
3395
|
+
function cloneSequenceState(state) {
|
|
3396
|
+
return {
|
|
3397
|
+
counters: [...state.counters],
|
|
3398
|
+
lastLevel: state.lastLevel
|
|
3399
|
+
};
|
|
3400
|
+
}
|
|
3374
3401
|
function advanceSequence(state, currentLevel, levelDefinitions) {
|
|
3375
3402
|
for (let level = currentLevel + 1; level < state.counters.length; level += 1) {
|
|
3376
3403
|
if (shouldResetDeeperLevel(level, currentLevel, levelDefinitions)) {
|
|
@@ -3402,6 +3429,25 @@ function shouldResetDeeperLevel(level, triggeringLevel, levelDefinitions) {
|
|
|
3402
3429
|
function getLevelStartAt(level, levelDefinitions) {
|
|
3403
3430
|
return levelDefinitions.get(level)?.startAt ?? DEFAULT_NUMBERING_START_AT;
|
|
3404
3431
|
}
|
|
3432
|
+
function getNumberingFormatPosture(format, value) {
|
|
3433
|
+
if (!isSupportedNumberingFormat(format)) {
|
|
3434
|
+
return {
|
|
3435
|
+
status: "approximated",
|
|
3436
|
+
requestedFormat: format,
|
|
3437
|
+
renderedFormat: "decimal",
|
|
3438
|
+
reason: "unsupported-numbering-format-decimal-fallback"
|
|
3439
|
+
};
|
|
3440
|
+
}
|
|
3441
|
+
if (value !== void 0 && ((format === "upperRoman" || format === "lowerRoman") && (value <= 0 || value >= 4e3) || (format === "cardinalText" || format === "ordinalText") && (!Number.isInteger(value) || value < 1 || value > 999) || (format === "upperLetter" || format === "lowerLetter" || format === "chicago") && value < 1)) {
|
|
3442
|
+
return {
|
|
3443
|
+
status: "approximated",
|
|
3444
|
+
requestedFormat: format,
|
|
3445
|
+
renderedFormat: "decimal",
|
|
3446
|
+
reason: "numbering-format-range-decimal-fallback"
|
|
3447
|
+
};
|
|
3448
|
+
}
|
|
3449
|
+
return void 0;
|
|
3450
|
+
}
|
|
3405
3451
|
function renderLevelText(text, counters, levelDefinitions) {
|
|
3406
3452
|
if (!text) {
|
|
3407
3453
|
return null;
|
|
@@ -4244,6 +4290,7 @@ function toNumberingLayoutInput(numbering) {
|
|
|
4244
4290
|
associatedTabStops: toLayoutTabStops(numbering.geometry.tabStops, "numbering"),
|
|
4245
4291
|
level: numbering.level,
|
|
4246
4292
|
format: numbering.format,
|
|
4293
|
+
...numbering.formatPosture !== void 0 ? { formatPosture: { ...numbering.formatPosture } } : {},
|
|
4247
4294
|
startAt: numbering.startAt,
|
|
4248
4295
|
...numbering.isLegalNumbering ? { isLegalNumbering: true } : {},
|
|
4249
4296
|
...numbering.picBulletMediaId ? { pictureBulletMediaId: numbering.picBulletMediaId } : {}
|
|
@@ -4473,13 +4520,10 @@ var FormattingContextImpl = class {
|
|
|
4473
4520
|
const effectiveNumbering = this.resolveEffectiveParagraphNumbering(para);
|
|
4474
4521
|
if (!effectiveNumbering) return null;
|
|
4475
4522
|
if (!emitGeometry) {
|
|
4476
|
-
|
|
4523
|
+
this.numbering.resolve(effectiveNumbering, { advance });
|
|
4477
4524
|
return null;
|
|
4478
4525
|
}
|
|
4479
|
-
|
|
4480
|
-
console.warn("[formatting-context] resolveParagraphNumbering({advance:false}) is not supported; counter always advances");
|
|
4481
|
-
}
|
|
4482
|
-
return this.numbering.resolveDetailed(effectiveNumbering, para);
|
|
4526
|
+
return this.numbering.resolveDetailed(effectiveNumbering, para, { advance });
|
|
4483
4527
|
}
|
|
4484
4528
|
resolveNumberingLayoutInput(para, options = {}) {
|
|
4485
4529
|
return toNumberingLayoutInput(this.resolveParagraphNumbering(para, options));
|
|
@@ -6673,6 +6717,7 @@ function toSurfaceResolvedNumbering(numbering) {
|
|
|
6673
6717
|
return {
|
|
6674
6718
|
level: numbering.level,
|
|
6675
6719
|
format: numbering.format,
|
|
6720
|
+
...numbering.formatPosture !== void 0 ? { formatPosture: { ...numbering.formatPosture } } : {},
|
|
6676
6721
|
...numbering.text !== null ? { text: numbering.text } : {},
|
|
6677
6722
|
startAt: numbering.startAt,
|
|
6678
6723
|
...numbering.paragraphStyleId ? { paragraphStyleId: numbering.paragraphStyleId } : {},
|
|
@@ -1,5 +1,5 @@
|
|
|
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-
|
|
2
|
-
import '../../canonical-document-
|
|
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-DrhlQ5Zy.cjs';
|
|
2
|
+
import '../../canonical-document-CXCFCbAz.cjs';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'yjs';
|
|
5
5
|
import 'y-protocols/awareness';
|
|
@@ -1,5 +1,5 @@
|
|
|
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-
|
|
2
|
-
import '../../canonical-document-
|
|
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-BEGhv2YR.js';
|
|
2
|
+
import '../../canonical-document-CXCFCbAz.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'yjs';
|
|
5
5
|
import 'y-protocols/awareness';
|
|
@@ -5,11 +5,11 @@ import {
|
|
|
5
5
|
removeCellFromRow,
|
|
6
6
|
removeTableRowPure,
|
|
7
7
|
tableStructureActionHandleForTarget
|
|
8
|
-
} from "../../chunk-
|
|
9
|
-
import "../../chunk-
|
|
10
|
-
import "../../chunk-
|
|
8
|
+
} from "../../chunk-ZDOAUP3V.js";
|
|
9
|
+
import "../../chunk-BYSRJ4FE.js";
|
|
10
|
+
import "../../chunk-CXSYRB37.js";
|
|
11
11
|
import "../../chunk-OYGMRRR7.js";
|
|
12
|
-
import "../../chunk-
|
|
12
|
+
import "../../chunk-5DGKFNQT.js";
|
|
13
13
|
import "../../chunk-UFVDIR2C.js";
|
|
14
14
|
import "../../chunk-PGGPPZ65.js";
|
|
15
15
|
import "../../chunk-DNXYUIIS.js";
|
|
@@ -1540,7 +1540,7 @@ function createParagraphEditableTarget(paragraph, kind, storyKey, blockPath, tar
|
|
|
1540
1540
|
context: { storyKey, insideSdt: contentControl !== void 0 },
|
|
1541
1541
|
...tableTarget
|
|
1542
1542
|
}) : void 0;
|
|
1543
|
-
const listAddress =
|
|
1543
|
+
const listAddress = paragraph.numbering !== void 0 ? createCanonicalAddress({
|
|
1544
1544
|
addressKind: "list-item-text",
|
|
1545
1545
|
storyKey,
|
|
1546
1546
|
staleCheckKind: "paragraph",
|
|
@@ -1574,6 +1574,7 @@ function createParagraphEditableTarget(paragraph, kind, storyKey, blockPath, tar
|
|
|
1574
1574
|
...contentControl !== void 0 ? { contentControl } : {},
|
|
1575
1575
|
...tableIdentity !== void 0 ? { table: tableIdentity } : {},
|
|
1576
1576
|
...editableOwner !== void 0 ? { editableOwner } : {},
|
|
1577
|
+
...listAddress !== void 0 ? { listAddress } : {},
|
|
1577
1578
|
...tableIdentity !== void 0 ? {
|
|
1578
1579
|
canonicalAddress: createTableTargetCanonicalAddress(
|
|
1579
1580
|
tableIdentity,
|
|
@@ -3673,6 +3674,7 @@ function mergeLevelDefinition(base, override, startOverride, fallbackLevel) {
|
|
|
3673
3674
|
);
|
|
3674
3675
|
const runProperties = override?.runProperties ?? base?.runProperties;
|
|
3675
3676
|
const restartAfterLevel = override?.restartAfterLevel ?? base?.restartAfterLevel;
|
|
3677
|
+
const picBulletId = override?.picBulletId ?? base?.picBulletId;
|
|
3676
3678
|
return {
|
|
3677
3679
|
level,
|
|
3678
3680
|
format,
|
|
@@ -3683,7 +3685,8 @@ function mergeLevelDefinition(base, override, startOverride, fallbackLevel) {
|
|
|
3683
3685
|
...override?.suffix ?? base?.suffix ? { suffix: override?.suffix ?? base?.suffix } : {},
|
|
3684
3686
|
...paragraphGeometry ? { paragraphGeometry } : {},
|
|
3685
3687
|
...runProperties ? { runProperties } : {},
|
|
3686
|
-
...restartAfterLevel !== void 0 ? { restartAfterLevel } : {}
|
|
3688
|
+
...restartAfterLevel !== void 0 ? { restartAfterLevel } : {},
|
|
3689
|
+
...picBulletId !== void 0 ? { picBulletId } : {}
|
|
3687
3690
|
};
|
|
3688
3691
|
}
|
|
3689
3692
|
function withDefaultStartAt(level) {
|
|
@@ -3811,7 +3814,7 @@ function resolveHangingWidth(indentation) {
|
|
|
3811
3814
|
// src/runtime/formatting/numbering/prefix.ts
|
|
3812
3815
|
function createNumberingPrefixResolver(catalog) {
|
|
3813
3816
|
const sequenceStates = /* @__PURE__ */ new Map();
|
|
3814
|
-
function resolveInternal(numbering, paragraph) {
|
|
3817
|
+
function resolveInternal(numbering, paragraph, options = {}) {
|
|
3815
3818
|
const resolved = resolveNumberingDefinitionSet(
|
|
3816
3819
|
catalog,
|
|
3817
3820
|
paragraph?.numbering ?? numbering,
|
|
@@ -3824,29 +3827,44 @@ function createNumberingPrefixResolver(catalog) {
|
|
|
3824
3827
|
if (!resolvedNumbering) {
|
|
3825
3828
|
return null;
|
|
3826
3829
|
}
|
|
3827
|
-
const
|
|
3828
|
-
|
|
3830
|
+
const advance = options.advance !== false;
|
|
3831
|
+
const sequenceState = getSequenceState(
|
|
3832
|
+
sequenceStates,
|
|
3833
|
+
resolvedNumbering.numberingInstanceId,
|
|
3834
|
+
{ create: advance }
|
|
3835
|
+
);
|
|
3836
|
+
if (!sequenceState) {
|
|
3837
|
+
return null;
|
|
3838
|
+
}
|
|
3839
|
+
const workingState = advance ? sequenceState : cloneSequenceState(sequenceState);
|
|
3840
|
+
advanceSequence(workingState, resolved.effectiveLevel.level, resolved.effectiveLevels);
|
|
3841
|
+
const currentCounter = workingState.counters[resolved.effectiveLevel.level];
|
|
3829
3842
|
const effectiveLevelDefs = resolved.effectiveLevel.isLegalNumbering ? new Map(
|
|
3830
3843
|
Array.from(resolved.effectiveLevels.entries()).map(([level, definition]) => [
|
|
3831
3844
|
level,
|
|
3832
3845
|
{ ...definition, format: "decimal" }
|
|
3833
3846
|
])
|
|
3834
3847
|
) : resolved.effectiveLevels;
|
|
3848
|
+
const picBulletId = resolved.effectiveLevel.picBulletId;
|
|
3835
3849
|
const text = renderLevelText(
|
|
3836
3850
|
resolved.effectiveLevel.text,
|
|
3837
|
-
|
|
3851
|
+
workingState.counters,
|
|
3838
3852
|
effectiveLevelDefs
|
|
3839
3853
|
);
|
|
3840
|
-
if (resolved.effectiveLevel.format !== "none" && text === null) {
|
|
3854
|
+
if (picBulletId == null && resolved.effectiveLevel.format !== "none" && text === null) {
|
|
3841
3855
|
return null;
|
|
3842
3856
|
}
|
|
3843
3857
|
const visibleText = resolved.effectiveLevel.format === "none" ? null : text;
|
|
3844
|
-
const
|
|
3858
|
+
const formatPosture = getNumberingFormatPosture(
|
|
3859
|
+
resolved.effectiveLevel.format,
|
|
3860
|
+
currentCounter
|
|
3861
|
+
);
|
|
3845
3862
|
const picBulletMediaId = picBulletId != null ? catalog.numPicBullets?.[picBulletId]?.mediaId : void 0;
|
|
3846
3863
|
return {
|
|
3847
3864
|
text: visibleText,
|
|
3848
3865
|
level: resolved.effectiveLevel.level,
|
|
3849
3866
|
format: resolved.effectiveLevel.format,
|
|
3867
|
+
...formatPosture !== void 0 ? { formatPosture } : {},
|
|
3850
3868
|
startAt: resolved.effectiveLevel.startAt ?? DEFAULT_NUMBERING_START_AT,
|
|
3851
3869
|
...resolved.effectiveLevel.suffix ? { suffix: resolved.effectiveLevel.suffix } : {},
|
|
3852
3870
|
...resolved.effectiveLevel.paragraphStyleId ? { paragraphStyleId: resolved.effectiveLevel.paragraphStyleId } : {},
|
|
@@ -3857,23 +3875,26 @@ function createNumberingPrefixResolver(catalog) {
|
|
|
3857
3875
|
};
|
|
3858
3876
|
}
|
|
3859
3877
|
return {
|
|
3860
|
-
resolve(numbering) {
|
|
3861
|
-
const result = resolveInternal(numbering);
|
|
3878
|
+
resolve(numbering, options) {
|
|
3879
|
+
const result = resolveInternal(numbering, void 0, options);
|
|
3862
3880
|
return result?.text ?? null;
|
|
3863
3881
|
},
|
|
3864
|
-
resolveDetailed(numbering, paragraph) {
|
|
3865
|
-
return resolveInternal(numbering, paragraph);
|
|
3882
|
+
resolveDetailed(numbering, paragraph, options) {
|
|
3883
|
+
return resolveInternal(numbering, paragraph, options);
|
|
3866
3884
|
},
|
|
3867
|
-
resolveParagraph(paragraph) {
|
|
3868
|
-
return resolveInternal(paragraph.numbering, paragraph);
|
|
3885
|
+
resolveParagraph(paragraph, options) {
|
|
3886
|
+
return resolveInternal(paragraph.numbering, paragraph, options);
|
|
3869
3887
|
}
|
|
3870
3888
|
};
|
|
3871
3889
|
}
|
|
3872
|
-
function getSequenceState(states, numberingInstanceId) {
|
|
3890
|
+
function getSequenceState(states, numberingInstanceId, options = { create: true }) {
|
|
3873
3891
|
const existing = states.get(numberingInstanceId);
|
|
3874
3892
|
if (existing) {
|
|
3875
3893
|
return existing;
|
|
3876
3894
|
}
|
|
3895
|
+
if (options.create === false) {
|
|
3896
|
+
return { counters: [], lastLevel: null };
|
|
3897
|
+
}
|
|
3877
3898
|
const created = {
|
|
3878
3899
|
counters: [],
|
|
3879
3900
|
lastLevel: null
|
|
@@ -3881,6 +3902,12 @@ function getSequenceState(states, numberingInstanceId) {
|
|
|
3881
3902
|
states.set(numberingInstanceId, created);
|
|
3882
3903
|
return created;
|
|
3883
3904
|
}
|
|
3905
|
+
function cloneSequenceState(state) {
|
|
3906
|
+
return {
|
|
3907
|
+
counters: [...state.counters],
|
|
3908
|
+
lastLevel: state.lastLevel
|
|
3909
|
+
};
|
|
3910
|
+
}
|
|
3884
3911
|
function advanceSequence(state, currentLevel, levelDefinitions) {
|
|
3885
3912
|
for (let level = currentLevel + 1; level < state.counters.length; level += 1) {
|
|
3886
3913
|
if (shouldResetDeeperLevel(level, currentLevel, levelDefinitions)) {
|
|
@@ -3912,6 +3939,25 @@ function shouldResetDeeperLevel(level, triggeringLevel, levelDefinitions) {
|
|
|
3912
3939
|
function getLevelStartAt(level, levelDefinitions) {
|
|
3913
3940
|
return levelDefinitions.get(level)?.startAt ?? DEFAULT_NUMBERING_START_AT;
|
|
3914
3941
|
}
|
|
3942
|
+
function getNumberingFormatPosture(format, value) {
|
|
3943
|
+
if (!isSupportedNumberingFormat(format)) {
|
|
3944
|
+
return {
|
|
3945
|
+
status: "approximated",
|
|
3946
|
+
requestedFormat: format,
|
|
3947
|
+
renderedFormat: "decimal",
|
|
3948
|
+
reason: "unsupported-numbering-format-decimal-fallback"
|
|
3949
|
+
};
|
|
3950
|
+
}
|
|
3951
|
+
if (value !== void 0 && ((format === "upperRoman" || format === "lowerRoman") && (value <= 0 || value >= 4e3) || (format === "cardinalText" || format === "ordinalText") && (!Number.isInteger(value) || value < 1 || value > 999) || (format === "upperLetter" || format === "lowerLetter" || format === "chicago") && value < 1)) {
|
|
3952
|
+
return {
|
|
3953
|
+
status: "approximated",
|
|
3954
|
+
requestedFormat: format,
|
|
3955
|
+
renderedFormat: "decimal",
|
|
3956
|
+
reason: "numbering-format-range-decimal-fallback"
|
|
3957
|
+
};
|
|
3958
|
+
}
|
|
3959
|
+
return void 0;
|
|
3960
|
+
}
|
|
3915
3961
|
function renderLevelText(text, counters, levelDefinitions) {
|
|
3916
3962
|
if (!text) {
|
|
3917
3963
|
return null;
|
|
@@ -4754,6 +4800,7 @@ function toNumberingLayoutInput(numbering) {
|
|
|
4754
4800
|
associatedTabStops: toLayoutTabStops(numbering.geometry.tabStops, "numbering"),
|
|
4755
4801
|
level: numbering.level,
|
|
4756
4802
|
format: numbering.format,
|
|
4803
|
+
...numbering.formatPosture !== void 0 ? { formatPosture: { ...numbering.formatPosture } } : {},
|
|
4757
4804
|
startAt: numbering.startAt,
|
|
4758
4805
|
...numbering.isLegalNumbering ? { isLegalNumbering: true } : {},
|
|
4759
4806
|
...numbering.picBulletMediaId ? { pictureBulletMediaId: numbering.picBulletMediaId } : {}
|
|
@@ -4983,13 +5030,10 @@ var FormattingContextImpl = class {
|
|
|
4983
5030
|
const effectiveNumbering = this.resolveEffectiveParagraphNumbering(para);
|
|
4984
5031
|
if (!effectiveNumbering) return null;
|
|
4985
5032
|
if (!emitGeometry) {
|
|
4986
|
-
|
|
5033
|
+
this.numbering.resolve(effectiveNumbering, { advance });
|
|
4987
5034
|
return null;
|
|
4988
5035
|
}
|
|
4989
|
-
|
|
4990
|
-
console.warn("[formatting-context] resolveParagraphNumbering({advance:false}) is not supported; counter always advances");
|
|
4991
|
-
}
|
|
4992
|
-
return this.numbering.resolveDetailed(effectiveNumbering, para);
|
|
5036
|
+
return this.numbering.resolveDetailed(effectiveNumbering, para, { advance });
|
|
4993
5037
|
}
|
|
4994
5038
|
resolveNumberingLayoutInput(para, options = {}) {
|
|
4995
5039
|
return toNumberingLayoutInput(this.resolveParagraphNumbering(para, options));
|
|
@@ -7184,6 +7228,7 @@ function toSurfaceResolvedNumbering(numbering) {
|
|
|
7184
7228
|
return {
|
|
7185
7229
|
level: numbering.level,
|
|
7186
7230
|
format: numbering.format,
|
|
7231
|
+
...numbering.formatPosture !== void 0 ? { formatPosture: { ...numbering.formatPosture } } : {},
|
|
7187
7232
|
...numbering.text !== null ? { text: numbering.text } : {},
|
|
7188
7233
|
startAt: numbering.startAt,
|
|
7189
7234
|
...numbering.paragraphStyleId ? { paragraphStyleId: numbering.paragraphStyleId } : {},
|
|
@@ -8198,7 +8243,7 @@ function parseCanonicalTextLeafPath(path) {
|
|
|
8198
8243
|
if (normalized[offset] !== "/") return null;
|
|
8199
8244
|
offset += 1;
|
|
8200
8245
|
}
|
|
8201
|
-
return tokens.
|
|
8246
|
+
return tokens.length > 0 ? tokens : null;
|
|
8202
8247
|
}
|
|
8203
8248
|
function parseCanonicalHyperlinkPath(path) {
|
|
8204
8249
|
const blockStart = path.indexOf("/block[");
|
|
@@ -1,8 +1,8 @@
|
|
|
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-DrhlQ5Zy.cjs';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'yjs';
|
|
4
4
|
import 'y-protocols/awareness';
|
|
5
|
-
import '../../canonical-document-
|
|
5
|
+
import '../../canonical-document-CXCFCbAz.cjs';
|
|
6
6
|
import 'prosemirror-state';
|
|
7
7
|
import 'prosemirror-model';
|
|
8
8
|
|
|
@@ -1,8 +1,8 @@
|
|
|
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-BEGhv2YR.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'yjs';
|
|
4
4
|
import 'y-protocols/awareness';
|
|
5
|
-
import '../../canonical-document-
|
|
5
|
+
import '../../canonical-document-CXCFCbAz.js';
|
|
6
6
|
import 'prosemirror-state';
|
|
7
7
|
import 'prosemirror-model';
|
|
8
8
|
|
|
@@ -8,14 +8,14 @@ import {
|
|
|
8
8
|
insertText,
|
|
9
9
|
outdentParagraphAtSelection,
|
|
10
10
|
splitParagraph
|
|
11
|
-
} from "../../chunk-
|
|
11
|
+
} from "../../chunk-4G3OS2H6.js";
|
|
12
12
|
import "../../chunk-Y4XZCMCS.js";
|
|
13
|
-
import "../../chunk-
|
|
14
|
-
import "../../chunk-
|
|
13
|
+
import "../../chunk-KV435YXO.js";
|
|
14
|
+
import "../../chunk-BYSRJ4FE.js";
|
|
15
15
|
import "../../chunk-QIO6V46H.js";
|
|
16
|
-
import "../../chunk-
|
|
16
|
+
import "../../chunk-CXSYRB37.js";
|
|
17
17
|
import "../../chunk-OYGMRRR7.js";
|
|
18
|
-
import "../../chunk-
|
|
18
|
+
import "../../chunk-5DGKFNQT.js";
|
|
19
19
|
import "../../chunk-UFVDIR2C.js";
|
|
20
20
|
import "../../chunk-PGGPPZ65.js";
|
|
21
21
|
import "../../chunk-DNXYUIIS.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
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-DrhlQ5Zy.cjs';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'yjs';
|
|
4
4
|
import 'y-protocols/awareness';
|
|
5
|
-
import '../../canonical-document-
|
|
5
|
+
import '../../canonical-document-CXCFCbAz.cjs';
|
|
6
6
|
import 'prosemirror-state';
|
|
7
7
|
import 'prosemirror-model';
|
|
@@ -1,7 +1,7 @@
|
|
|
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-BEGhv2YR.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'yjs';
|
|
4
4
|
import 'y-protocols/awareness';
|
|
5
|
-
import '../../canonical-document-
|
|
5
|
+
import '../../canonical-document-CXCFCbAz.js';
|
|
6
6
|
import 'prosemirror-state';
|
|
7
7
|
import 'prosemirror-model';
|
|
@@ -1,5 +1,5 @@
|
|
|
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-
|
|
2
|
-
export { o as createCanonicalDocumentId } from '../../canonical-document-
|
|
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-DrhlQ5Zy.cjs';
|
|
2
|
+
export { o as createCanonicalDocumentId } from '../../canonical-document-CXCFCbAz.cjs';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'yjs';
|
|
5
5
|
import 'y-protocols/awareness';
|
|
@@ -1,5 +1,5 @@
|
|
|
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-
|
|
2
|
-
export { o as createCanonicalDocumentId } from '../../canonical-document-
|
|
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-BEGhv2YR.js';
|
|
2
|
+
export { o as createCanonicalDocumentId } from '../../canonical-document-CXCFCbAz.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'yjs';
|
|
5
5
|
import 'y-protocols/awareness';
|