@beyondwork/docx-react-component 1.0.128 → 1.0.130
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 +809 -78
- package/dist/api/public-types.d.cts +2 -2
- package/dist/api/public-types.d.ts +2 -2
- package/dist/api/public-types.js +4 -4
- package/dist/api/v3.cjs +2059 -402
- package/dist/api/v3.d.cts +3 -3
- package/dist/api/v3.d.ts +3 -3
- package/dist/api/v3.js +13 -13
- package/dist/{canonical-document-CXCFCbAz.d.cts → canonical-document-BMtONpgf.d.cts} +6 -0
- package/dist/{canonical-document-CXCFCbAz.d.ts → canonical-document-BMtONpgf.d.ts} +6 -0
- package/dist/{chunk-MWSBGJQO.js → chunk-35RHOE6I.js} +105 -4
- package/dist/{chunk-2QL5DAKF.js → chunk-3YCQM2RV.js} +6 -6
- package/dist/{chunk-ESJ2MES5.js → chunk-4YCWECLZ.js} +1 -1
- package/dist/{chunk-4EENH4FG.js → chunk-6TBLDBCL.js} +1 -1
- package/dist/{chunk-XRACP43Q.js → chunk-7G5GR3VV.js} +469 -32
- package/dist/{chunk-CXSYRB37.js → chunk-A3GSNB4G.js} +183 -55
- package/dist/{chunk-5DGKFNQT.js → chunk-A66ZVUAT.js} +150 -1
- package/dist/{chunk-YIYM4ZAP.js → chunk-CI2TD3T4.js} +1 -1
- package/dist/{chunk-TQDQU2E3.js → chunk-DGA7M77X.js} +2 -2
- package/dist/{chunk-EB6M3GE6.js → chunk-FM4K4XFJ.js} +100 -97
- package/dist/{chunk-D5HYZQTG.js → chunk-HYHCRMR7.js} +1 -1
- package/dist/{chunk-6F5QW44A.js → chunk-KNHMXKC6.js} +2 -2
- package/dist/{chunk-4YJVRIUB.js → chunk-M7YRJX6V.js} +61 -29
- package/dist/{chunk-KFCQYZXR.js → chunk-OVLZQ6FZ.js} +61 -0
- package/dist/{chunk-BYSRJ4FE.js → chunk-PHMWH23E.js} +1 -1
- package/dist/{chunk-ZDOAUP3V.js → chunk-Q7Y57KOK.js} +2 -2
- package/dist/{chunk-LZVBNDGU.js → chunk-QXKQPUOM.js} +3 -3
- package/dist/{chunk-CX42VC67.js → chunk-SYQWQ6FE.js} +1 -1
- package/dist/{chunk-KV435YXO.js → chunk-T5YYFDZB.js} +1 -1
- package/dist/{chunk-YHZHPXDB.js → chunk-THVM6EP5.js} +419 -24
- package/dist/{chunk-V6XVZFFH.js → chunk-VRKK2CSZ.js} +111 -90
- package/dist/{chunk-OL2UEHRP.js → chunk-WUDSNHWF.js} +1 -1
- package/dist/{chunk-LCYYR57Q.js → chunk-WZDKNF37.js} +666 -107
- package/dist/{chunk-6EROGFUF.js → chunk-YLL7MF5C.js} +444 -131
- package/dist/{chunk-YD2JE54B.js → chunk-ZVC23LKV.js} +1 -1
- package/dist/compare.cjs +100 -97
- package/dist/compare.d.cts +1 -1
- package/dist/compare.d.ts +1 -1
- package/dist/compare.js +3 -3
- 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 +182 -54
- 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 +182 -54
- 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 +182 -54
- 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 +2765 -557
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +52 -28
- package/dist/io/docx-session.cjs +267 -211
- package/dist/io/docx-session.d.cts +4 -4
- package/dist/io/docx-session.d.ts +4 -4
- package/dist/io/docx-session.js +6 -6
- package/dist/legal.cjs +9 -20
- package/dist/legal.d.cts +1 -1
- package/dist/legal.d.ts +1 -1
- package/dist/legal.js +3 -3
- package/dist/{loader-19ct2Be0.d.ts → loader-B-aL5HGD.d.ts} +3 -3
- package/dist/{loader-CoXQ2wGd.d.cts → loader-DiY_ZgKl.d.cts} +3 -3
- package/dist/{measurement-backend-canvas-Q3MJMEYX.js → measurement-backend-canvas-F7ZYDACK.js} +1 -1
- package/dist/{public-types-B-CskQen.d.cts → public-types-DyqnxxO9.d.ts} +252 -2
- package/dist/{public-types-7KZsNGE2.d.ts → public-types-gvubspUI.d.cts} +252 -2
- package/dist/public-types.cjs +809 -78
- package/dist/public-types.d.cts +2 -2
- package/dist/public-types.d.ts +2 -2
- package/dist/public-types.js +4 -4
- package/dist/runtime/collab.d.cts +3 -3
- package/dist/runtime/collab.d.ts +3 -3
- package/dist/runtime/document-runtime.cjs +1887 -313
- package/dist/runtime/document-runtime.d.cts +2 -2
- package/dist/runtime/document-runtime.d.ts +2 -2
- package/dist/runtime/document-runtime.js +17 -17
- package/dist/{session-B5015J4v.d.cts → session-BUN6B-Vj.d.cts} +3 -3
- package/dist/{session-C2i8-d6v.d.ts → session-CDB0hohT.d.ts} +3 -3
- package/dist/session.cjs +267 -211
- package/dist/session.d.cts +5 -5
- package/dist/session.d.ts +5 -5
- package/dist/session.js +7 -7
- package/dist/tailwind.cjs +809 -78
- package/dist/tailwind.d.cts +2 -2
- package/dist/tailwind.d.ts +2 -2
- package/dist/tailwind.js +8 -8
- package/dist/{types-DNhN0WeN.d.cts → types-C4bz3kDU.d.cts} +2 -2
- package/dist/{types-yvrQuGX9.d.ts → types-VWH6CRvG.d.ts} +2 -2
- package/dist/ui-tailwind/editor-surface/search-plugin.d.cts +3 -3
- package/dist/ui-tailwind/editor-surface/search-plugin.d.ts +3 -3
- package/dist/ui-tailwind/editor-surface/search-plugin.js +5 -5
- package/dist/ui-tailwind.cjs +809 -78
- package/dist/ui-tailwind.d.cts +3 -3
- package/dist/ui-tailwind.d.ts +3 -3
- package/dist/ui-tailwind.js +8 -8
- package/package.json +1 -1
|
@@ -3430,12 +3430,13 @@ function getLevelStartAt(level, levelDefinitions) {
|
|
|
3430
3430
|
return levelDefinitions.get(level)?.startAt ?? DEFAULT_NUMBERING_START_AT;
|
|
3431
3431
|
}
|
|
3432
3432
|
function getNumberingFormatPosture(format, value) {
|
|
3433
|
-
|
|
3433
|
+
const registryEntry = getNumberingFormatRegistryEntry(format);
|
|
3434
|
+
if (!registryEntry || registryEntry.renderSupport === "approximated") {
|
|
3434
3435
|
return {
|
|
3435
3436
|
status: "approximated",
|
|
3436
3437
|
requestedFormat: format,
|
|
3437
3438
|
renderedFormat: "decimal",
|
|
3438
|
-
reason: "unsupported-numbering-format-decimal-fallback"
|
|
3439
|
+
reason: registryEntry?.fallbackReason ?? "unsupported-numbering-format-decimal-fallback"
|
|
3439
3440
|
};
|
|
3440
3441
|
}
|
|
3441
3442
|
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)) {
|
|
@@ -3466,56 +3467,148 @@ function renderLevelText(text, counters, levelDefinitions) {
|
|
|
3466
3467
|
});
|
|
3467
3468
|
return rendered.trim().length > 0 ? rendered : null;
|
|
3468
3469
|
}
|
|
3469
|
-
var SUPPORTED_NUMBERING_FORMATS = /* @__PURE__ */ new Set([
|
|
3470
|
-
"decimal",
|
|
3471
|
-
"decimalZero",
|
|
3472
|
-
"upperLetter",
|
|
3473
|
-
"lowerLetter",
|
|
3474
|
-
"upperRoman",
|
|
3475
|
-
"lowerRoman",
|
|
3476
|
-
"hex",
|
|
3477
|
-
"ordinal",
|
|
3478
|
-
"cardinalText",
|
|
3479
|
-
"ordinalText",
|
|
3480
|
-
"chicago",
|
|
3481
|
-
"bullet",
|
|
3482
|
-
"none"
|
|
3483
|
-
]);
|
|
3484
3470
|
function isSupportedNumberingFormat(format) {
|
|
3485
|
-
return
|
|
3471
|
+
return getNumberingFormatRegistryEntry(format)?.renderSupport === "supported";
|
|
3472
|
+
}
|
|
3473
|
+
function getNumberingFormatRegistryEntry(format) {
|
|
3474
|
+
return NUMBERING_FORMAT_REGISTRY.get(format);
|
|
3486
3475
|
}
|
|
3487
3476
|
function formatCounter(value, format) {
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3496
|
-
|
|
3497
|
-
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
|
|
3501
|
-
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
|
|
3477
|
+
return getNumberingFormatRegistryEntry(format)?.render(value) ?? String(value);
|
|
3478
|
+
}
|
|
3479
|
+
var exactNumberingFormatEntries = [
|
|
3480
|
+
{
|
|
3481
|
+
format: "decimal",
|
|
3482
|
+
renderSupport: "supported",
|
|
3483
|
+
renderedFormat: "decimal",
|
|
3484
|
+
supportsMutation: true,
|
|
3485
|
+
render: (value) => String(value)
|
|
3486
|
+
},
|
|
3487
|
+
{
|
|
3488
|
+
format: "decimalZero",
|
|
3489
|
+
renderSupport: "supported",
|
|
3490
|
+
renderedFormat: "decimalZero",
|
|
3491
|
+
supportsMutation: true,
|
|
3492
|
+
render: (value) => String(value).padStart(2, "0")
|
|
3493
|
+
},
|
|
3494
|
+
{
|
|
3495
|
+
format: "upperLetter",
|
|
3496
|
+
renderSupport: "supported",
|
|
3497
|
+
renderedFormat: "upperLetter",
|
|
3498
|
+
supportsMutation: true,
|
|
3499
|
+
render: (value) => toAlphabetic2(value).toUpperCase()
|
|
3500
|
+
},
|
|
3501
|
+
{
|
|
3502
|
+
format: "lowerLetter",
|
|
3503
|
+
renderSupport: "supported",
|
|
3504
|
+
renderedFormat: "lowerLetter",
|
|
3505
|
+
supportsMutation: true,
|
|
3506
|
+
render: (value) => toAlphabetic2(value).toLowerCase()
|
|
3507
|
+
},
|
|
3508
|
+
{
|
|
3509
|
+
format: "upperRoman",
|
|
3510
|
+
renderSupport: "supported",
|
|
3511
|
+
renderedFormat: "upperRoman",
|
|
3512
|
+
supportsMutation: true,
|
|
3513
|
+
render: (value) => toRoman2(value).toUpperCase()
|
|
3514
|
+
},
|
|
3515
|
+
{
|
|
3516
|
+
format: "lowerRoman",
|
|
3517
|
+
renderSupport: "supported",
|
|
3518
|
+
renderedFormat: "lowerRoman",
|
|
3519
|
+
supportsMutation: true,
|
|
3520
|
+
render: (value) => toRoman2(value).toLowerCase()
|
|
3521
|
+
},
|
|
3522
|
+
{
|
|
3523
|
+
format: "hex",
|
|
3524
|
+
renderSupport: "supported",
|
|
3525
|
+
renderedFormat: "hex",
|
|
3526
|
+
supportsMutation: true,
|
|
3527
|
+
render: (value) => value >= 0 ? value.toString(16).toUpperCase() : String(value)
|
|
3528
|
+
},
|
|
3529
|
+
{
|
|
3530
|
+
format: "ordinal",
|
|
3531
|
+
renderSupport: "supported",
|
|
3532
|
+
renderedFormat: "ordinal",
|
|
3533
|
+
supportsMutation: true,
|
|
3534
|
+
render: toOrdinal2
|
|
3535
|
+
},
|
|
3536
|
+
{
|
|
3537
|
+
format: "cardinalText",
|
|
3538
|
+
renderSupport: "supported",
|
|
3539
|
+
renderedFormat: "cardinalText",
|
|
3540
|
+
supportsMutation: true,
|
|
3541
|
+
render: toCardinalText2
|
|
3542
|
+
},
|
|
3543
|
+
{
|
|
3544
|
+
format: "ordinalText",
|
|
3545
|
+
renderSupport: "supported",
|
|
3546
|
+
renderedFormat: "ordinalText",
|
|
3547
|
+
supportsMutation: true,
|
|
3548
|
+
render: toOrdinalText2
|
|
3549
|
+
},
|
|
3550
|
+
{
|
|
3551
|
+
format: "chicago",
|
|
3552
|
+
renderSupport: "supported",
|
|
3553
|
+
renderedFormat: "chicago",
|
|
3554
|
+
supportsMutation: true,
|
|
3555
|
+
render: toChicago2
|
|
3556
|
+
},
|
|
3557
|
+
{
|
|
3558
|
+
format: "bullet",
|
|
3559
|
+
renderSupport: "supported",
|
|
3560
|
+
renderedFormat: "bullet",
|
|
3561
|
+
supportsMutation: true,
|
|
3562
|
+
render: () => ""
|
|
3563
|
+
},
|
|
3564
|
+
{
|
|
3565
|
+
format: "none",
|
|
3566
|
+
renderSupport: "supported",
|
|
3567
|
+
renderedFormat: "none",
|
|
3568
|
+
supportsMutation: true,
|
|
3569
|
+
render: () => ""
|
|
3517
3570
|
}
|
|
3518
|
-
|
|
3571
|
+
];
|
|
3572
|
+
var approximatedDecimalFormats = [
|
|
3573
|
+
"decimalEnclosedCircle",
|
|
3574
|
+
"decimalEnclosedFullstop",
|
|
3575
|
+
"decimalEnclosedParen",
|
|
3576
|
+
"decimalFullWidth",
|
|
3577
|
+
"decimalHalfWidth",
|
|
3578
|
+
"aiueo",
|
|
3579
|
+
"iroha",
|
|
3580
|
+
"ganada",
|
|
3581
|
+
"chosung",
|
|
3582
|
+
"russianLower",
|
|
3583
|
+
"russianUpper",
|
|
3584
|
+
"hebrew1",
|
|
3585
|
+
"hebrew2",
|
|
3586
|
+
"arabicAlpha",
|
|
3587
|
+
"arabicAbjad",
|
|
3588
|
+
"thaiLetters",
|
|
3589
|
+
"thaiNumbers",
|
|
3590
|
+
"hindiLetters",
|
|
3591
|
+
"hindiNumbers",
|
|
3592
|
+
"ideographDigital",
|
|
3593
|
+
"ideographTraditional",
|
|
3594
|
+
"chineseCounting",
|
|
3595
|
+
"japaneseCounting",
|
|
3596
|
+
"japaneseLegal"
|
|
3597
|
+
];
|
|
3598
|
+
var approximatedNumberingFormatEntries = approximatedDecimalFormats.map((format) => ({
|
|
3599
|
+
format,
|
|
3600
|
+
renderSupport: "approximated",
|
|
3601
|
+
renderedFormat: "decimal",
|
|
3602
|
+
supportsMutation: false,
|
|
3603
|
+
fallbackReason: "unsupported-numbering-format-decimal-fallback",
|
|
3604
|
+
render: (value) => String(value)
|
|
3605
|
+
}));
|
|
3606
|
+
var NUMBERING_FORMAT_REGISTRY = new Map(
|
|
3607
|
+
[...exactNumberingFormatEntries, ...approximatedNumberingFormatEntries].map((entry) => [
|
|
3608
|
+
entry.format,
|
|
3609
|
+
entry
|
|
3610
|
+
])
|
|
3611
|
+
);
|
|
3519
3612
|
function toOrdinal2(value) {
|
|
3520
3613
|
if (value <= 0) return String(value);
|
|
3521
3614
|
const lastTwo = value % 100;
|
|
@@ -4169,12 +4262,36 @@ var DEFAULT_HYPERLINK_COLOR_HEX = "0563C1";
|
|
|
4169
4262
|
function resolveHyperlinkRunFormatting(input, catalog, resolver) {
|
|
4170
4263
|
const augmentedInput = input.characterStyleId === void 0 ? { ...input, characterStyleId: HYPERLINK_CHARACTER_STYLE_ID } : input;
|
|
4171
4264
|
const cascade = resolveEffectiveRunFormatting(augmentedInput, catalog);
|
|
4172
|
-
const resolvedColor = resolveHyperlinkColorHex(
|
|
4265
|
+
const resolvedColor = resolveHyperlinkColorHex(
|
|
4266
|
+
stripInheritedColorHexForImplicitHyperlink(input, catalog, cascade),
|
|
4267
|
+
resolver
|
|
4268
|
+
);
|
|
4173
4269
|
if (resolvedColor && resolvedColor !== cascade.colorHex) {
|
|
4174
4270
|
return { ...cascade, colorHex: resolvedColor };
|
|
4175
4271
|
}
|
|
4176
4272
|
return cascade;
|
|
4177
4273
|
}
|
|
4274
|
+
function hasDirectNonAutoColor(input) {
|
|
4275
|
+
return Boolean(input.direct?.colorHex && input.direct.colorHex !== "auto");
|
|
4276
|
+
}
|
|
4277
|
+
function characterStyleDeclaresColorHex(styleId, catalog) {
|
|
4278
|
+
if (!catalog) return false;
|
|
4279
|
+
const chain = resolveCharacterStyleChain(styleId, catalog);
|
|
4280
|
+
return chain.some((chainStyleId) => {
|
|
4281
|
+
const colorHex = catalog.characters[chainStyleId]?.runProperties?.colorHex;
|
|
4282
|
+
return Boolean(colorHex && colorHex !== "auto");
|
|
4283
|
+
});
|
|
4284
|
+
}
|
|
4285
|
+
function stripInheritedColorHexForImplicitHyperlink(originalInput, catalog, cascade) {
|
|
4286
|
+
if (originalInput.characterStyleId !== void 0 || hasDirectNonAutoColor(originalInput) || !cascade.colorHex || cascade.colorHex === "auto" || characterStyleDeclaresColorHex(HYPERLINK_CHARACTER_STYLE_ID, catalog)) {
|
|
4287
|
+
return cascade;
|
|
4288
|
+
}
|
|
4289
|
+
const inheritedCascade = resolveEffectiveRunFormatting(originalInput, catalog);
|
|
4290
|
+
if (inheritedCascade.colorHex !== cascade.colorHex) {
|
|
4291
|
+
return cascade;
|
|
4292
|
+
}
|
|
4293
|
+
return { ...cascade, colorHex: void 0 };
|
|
4294
|
+
}
|
|
4178
4295
|
function resolveHyperlinkColorHex(cascade, resolver) {
|
|
4179
4296
|
if (cascade.colorHex && cascade.colorHex !== "auto") {
|
|
4180
4297
|
return cascade.colorHex;
|
|
@@ -4932,6 +5049,7 @@ function createEditorSurfaceSnapshot(document, _selection, activeStory = { kind:
|
|
|
4932
5049
|
...options.authorColorPalette ? { authorColorPalette: options.authorColorPalette } : {}
|
|
4933
5050
|
});
|
|
4934
5051
|
const editableTargetsByBlockPath = options.editableTargetsByBlockPath ?? indexEditableTargetsByBlockPath(document);
|
|
5052
|
+
const layoutIdentitiesByBlockPath = options.layoutIdentitiesByBlockPath;
|
|
4935
5053
|
const activeStoryBlockPathBase = getActiveStoryBlockPathBase(document, activeStory);
|
|
4936
5054
|
chartModelStore.beginBuildPass(document);
|
|
4937
5055
|
const unsupportedNumberingFormatsSeen = options.emitFormattingTelemetry ? /* @__PURE__ */ new Set() : null;
|
|
@@ -4955,6 +5073,7 @@ function createEditorSurfaceSnapshot(document, _selection, activeStory = { kind:
|
|
|
4955
5073
|
activeStory.kind !== "main",
|
|
4956
5074
|
!isInViewport,
|
|
4957
5075
|
editableTargetsByBlockPath,
|
|
5076
|
+
layoutIdentitiesByBlockPath,
|
|
4958
5077
|
`${activeStoryBlockPathBase}/block[${index}]`
|
|
4959
5078
|
);
|
|
4960
5079
|
if (isInViewport) {
|
|
@@ -5021,7 +5140,7 @@ function isIndexInAnyRange(index, ranges) {
|
|
|
5021
5140
|
}
|
|
5022
5141
|
return false;
|
|
5023
5142
|
}
|
|
5024
|
-
function createSurfaceBlock(block, document, cursor, counters, formattingContext, promoteSecondaryStoryTextBoxes, cullBuild = false, editableTargetsByBlockPath = EMPTY_EDITABLE_TARGETS_BY_BLOCK_PATH, blockPath) {
|
|
5143
|
+
function createSurfaceBlock(block, document, cursor, counters, formattingContext, promoteSecondaryStoryTextBoxes, cullBuild = false, editableTargetsByBlockPath = EMPTY_EDITABLE_TARGETS_BY_BLOCK_PATH, layoutIdentitiesByBlockPath, blockPath) {
|
|
5025
5144
|
if (block.type === "opaque_block") {
|
|
5026
5145
|
const fragment = getOpaqueFragment(document.preservation, block.fragmentId);
|
|
5027
5146
|
const descriptor = fragment ? describeOpaqueFragment(fragment) : null;
|
|
@@ -5058,6 +5177,7 @@ function createSurfaceBlock(block, document, cursor, counters, formattingContext
|
|
|
5058
5177
|
promoteSecondaryStoryTextBoxes,
|
|
5059
5178
|
cullBuild,
|
|
5060
5179
|
editableTargetsByBlockPath,
|
|
5180
|
+
layoutIdentitiesByBlockPath,
|
|
5061
5181
|
blockPath
|
|
5062
5182
|
);
|
|
5063
5183
|
}
|
|
@@ -5098,6 +5218,7 @@ function createSurfaceBlock(block, document, cursor, counters, formattingContext
|
|
|
5098
5218
|
promoteSecondaryStoryTextBoxes,
|
|
5099
5219
|
cullBuild,
|
|
5100
5220
|
editableTargetsByBlockPath,
|
|
5221
|
+
layoutIdentitiesByBlockPath,
|
|
5101
5222
|
blockPath
|
|
5102
5223
|
);
|
|
5103
5224
|
}
|
|
@@ -5180,10 +5301,11 @@ function createSurfaceBlock(block, document, cursor, counters, formattingContext
|
|
|
5180
5301
|
cullBuild,
|
|
5181
5302
|
editableTargetsByBlockPath,
|
|
5182
5303
|
blockPath,
|
|
5183
|
-
blockPath !== void 0 ? editableTargetsByBlockPath.get(blockPath) : void 0
|
|
5304
|
+
blockPath !== void 0 ? editableTargetsByBlockPath.get(blockPath) : void 0,
|
|
5305
|
+
blockPath !== void 0 ? layoutIdentitiesByBlockPath?.get(blockPath) : void 0
|
|
5184
5306
|
);
|
|
5185
5307
|
}
|
|
5186
|
-
function createTableBlock(tableIndex, table, document, cursor, counters, formattingContext, promoteSecondaryStoryTextBoxes, cullBuild = false, editableTargetsByBlockPath = EMPTY_EDITABLE_TARGETS_BY_BLOCK_PATH, tablePath) {
|
|
5308
|
+
function createTableBlock(tableIndex, table, document, cursor, counters, formattingContext, promoteSecondaryStoryTextBoxes, cullBuild = false, editableTargetsByBlockPath = EMPTY_EDITABLE_TARGETS_BY_BLOCK_PATH, layoutIdentitiesByBlockPath, tablePath) {
|
|
5187
5309
|
const lockedFragmentIds = [];
|
|
5188
5310
|
let innerCursor = cursor;
|
|
5189
5311
|
if (cullBuild) {
|
|
@@ -5200,6 +5322,7 @@ function createTableBlock(tableIndex, table, document, cursor, counters, formatt
|
|
|
5200
5322
|
promoteSecondaryStoryTextBoxes,
|
|
5201
5323
|
true,
|
|
5202
5324
|
editableTargetsByBlockPath,
|
|
5325
|
+
layoutIdentitiesByBlockPath,
|
|
5203
5326
|
tablePath !== void 0 ? `${tablePath}/row[${rowIndex}]/cell[${cellIndex}]/block[${childIndex}]` : void 0
|
|
5204
5327
|
);
|
|
5205
5328
|
lockedFragmentIds.push(...result.lockedFragmentIds);
|
|
@@ -5215,6 +5338,7 @@ function createTableBlock(tableIndex, table, document, cursor, counters, formatt
|
|
|
5215
5338
|
to: innerCursor,
|
|
5216
5339
|
styleId: table.styleId,
|
|
5217
5340
|
...table.sourceRef !== void 0 ? { sourceRef: table.sourceRef } : {},
|
|
5341
|
+
...tablePath !== void 0 && layoutIdentitiesByBlockPath?.get(tablePath) !== void 0 ? { layoutIdentity: layoutIdentitiesByBlockPath.get(tablePath) } : {},
|
|
5218
5342
|
gridColumns: table.gridColumns,
|
|
5219
5343
|
rows: []
|
|
5220
5344
|
},
|
|
@@ -5252,6 +5376,7 @@ function createTableBlock(tableIndex, table, document, cursor, counters, formatt
|
|
|
5252
5376
|
promoteSecondaryStoryTextBoxes,
|
|
5253
5377
|
cullBuild,
|
|
5254
5378
|
editableTargetsByBlockPath,
|
|
5379
|
+
layoutIdentitiesByBlockPath,
|
|
5255
5380
|
tablePath !== void 0 ? `${tablePath}/row[${rowIndex}]/cell[${cellIndex}]/block[${childIndex}]` : void 0
|
|
5256
5381
|
);
|
|
5257
5382
|
cellContent.push(result.block);
|
|
@@ -5340,6 +5465,7 @@ function createTableBlock(tableIndex, table, document, cursor, counters, formatt
|
|
|
5340
5465
|
to: innerCursor,
|
|
5341
5466
|
styleId: table.styleId,
|
|
5342
5467
|
...table.sourceRef !== void 0 ? { sourceRef: table.sourceRef } : {},
|
|
5468
|
+
...tablePath !== void 0 && layoutIdentitiesByBlockPath?.get(tablePath) !== void 0 ? { layoutIdentity: layoutIdentitiesByBlockPath.get(tablePath) } : {},
|
|
5343
5469
|
gridColumns: table.gridColumns,
|
|
5344
5470
|
...gridColumnsRelative ? { gridColumnsRelative } : {},
|
|
5345
5471
|
...resolvedTable.table?.alignment ? { alignment: resolvedTable.table.alignment } : {},
|
|
@@ -5527,7 +5653,7 @@ function resolveCellBorderStyles(borders, tableBorders, position) {
|
|
|
5527
5653
|
if (left) result.borderLeft = left;
|
|
5528
5654
|
return result;
|
|
5529
5655
|
}
|
|
5530
|
-
function createSdtBlock(sdtIndex, block, document, cursor, counters, formattingContext, promoteSecondaryStoryTextBoxes, cullBuild = false, editableTargetsByBlockPath = EMPTY_EDITABLE_TARGETS_BY_BLOCK_PATH, sdtPath) {
|
|
5656
|
+
function createSdtBlock(sdtIndex, block, document, cursor, counters, formattingContext, promoteSecondaryStoryTextBoxes, cullBuild = false, editableTargetsByBlockPath = EMPTY_EDITABLE_TARGETS_BY_BLOCK_PATH, layoutIdentitiesByBlockPath, sdtPath) {
|
|
5531
5657
|
const children = [];
|
|
5532
5658
|
const lockedFragmentIds = [];
|
|
5533
5659
|
let innerCursor = cursor;
|
|
@@ -5544,6 +5670,7 @@ function createSdtBlock(sdtIndex, block, document, cursor, counters, formattingC
|
|
|
5544
5670
|
promoteSecondaryStoryTextBoxes,
|
|
5545
5671
|
cullBuild,
|
|
5546
5672
|
editableTargetsByBlockPath,
|
|
5673
|
+
layoutIdentitiesByBlockPath,
|
|
5547
5674
|
sdtPath !== void 0 ? `${sdtPath}/block[${childIndex}]` : void 0
|
|
5548
5675
|
);
|
|
5549
5676
|
children.push(result.block);
|
|
@@ -5586,7 +5713,7 @@ function getRecursableSdtBlockedReasonCode(block) {
|
|
|
5586
5713
|
].filter(Boolean).join(" ").toLowerCase();
|
|
5587
5714
|
return searchText.includes("table of contents") || /\btoc\b/u.test(searchText) ? "workflow_preserve_only" : null;
|
|
5588
5715
|
}
|
|
5589
|
-
function createParagraphBlock(paragraphIndex, paragraph, document, start, formattingContext, promoteSecondaryStoryTextBoxes, cullBuild = false, editableTargetsByBlockPath = EMPTY_EDITABLE_TARGETS_BY_BLOCK_PATH, blockPath, editableTarget) {
|
|
5716
|
+
function createParagraphBlock(paragraphIndex, paragraph, document, start, formattingContext, promoteSecondaryStoryTextBoxes, cullBuild = false, editableTargetsByBlockPath = EMPTY_EDITABLE_TARGETS_BY_BLOCK_PATH, blockPath, editableTarget, layoutIdentity) {
|
|
5590
5717
|
const themeResolver = formattingContext.theme;
|
|
5591
5718
|
const effectiveNumbering = formattingContext.resolveEffectiveParagraphNumbering(paragraph);
|
|
5592
5719
|
let resolvedNumbering = null;
|
|
@@ -5609,6 +5736,7 @@ function createParagraphBlock(paragraphIndex, paragraph, document, start, format
|
|
|
5609
5736
|
from: start,
|
|
5610
5737
|
to: start,
|
|
5611
5738
|
...editableTarget !== void 0 ? { editableTarget } : {},
|
|
5739
|
+
...layoutIdentity !== void 0 ? { layoutIdentity } : {},
|
|
5612
5740
|
...paragraph.styleId ? { styleId: paragraph.styleId } : {},
|
|
5613
5741
|
...effectiveNumbering ? { numbering: effectiveNumbering } : {},
|
|
5614
5742
|
...resolvedNumbering ? {
|
|
@@ -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-gvubspUI.cjs';
|
|
2
|
+
import '../../canonical-document-BMtONpgf.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-DyqnxxO9.js';
|
|
2
|
+
import '../../canonical-document-BMtONpgf.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-Q7Y57KOK.js";
|
|
9
|
+
import "../../chunk-PHMWH23E.js";
|
|
10
|
+
import "../../chunk-A3GSNB4G.js";
|
|
11
11
|
import "../../chunk-OYGMRRR7.js";
|
|
12
|
-
import "../../chunk-
|
|
12
|
+
import "../../chunk-A66ZVUAT.js";
|
|
13
13
|
import "../../chunk-UFVDIR2C.js";
|
|
14
14
|
import "../../chunk-PGGPPZ65.js";
|
|
15
15
|
import "../../chunk-DNXYUIIS.js";
|