@beyondwork/docx-react-component 1.0.129 → 1.0.131
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 +595 -18
- package/dist/api/public-types.d.cts +1 -1
- package/dist/api/public-types.d.ts +1 -1
- package/dist/api/public-types.js +4 -4
- package/dist/api/v3.cjs +1164 -332
- package/dist/api/v3.d.cts +2 -2
- package/dist/api/v3.d.ts +2 -2
- package/dist/api/v3.js +13 -13
- package/dist/{chunk-OTQIW2TC.js → chunk-35RHOE6I.js} +105 -4
- package/dist/{chunk-PGKUJZXV.js → chunk-3YCQM2RV.js} +6 -6
- package/dist/{chunk-JJGVE5J7.js → chunk-4YCWECLZ.js} +1 -1
- package/dist/{chunk-EZKJXIPH.js → chunk-6TBLDBCL.js} +1 -1
- package/dist/{chunk-SKPTKQHF.js → chunk-7G5GR3VV.js} +122 -23
- package/dist/{chunk-HUIHBBAQ.js → chunk-A3GSNB4G.js} +17 -6
- package/dist/{chunk-5DGKFNQT.js → chunk-A66ZVUAT.js} +150 -1
- package/dist/{chunk-YIYM4ZAP.js → chunk-CI2TD3T4.js} +1 -1
- package/dist/{chunk-63FYIGCT.js → chunk-DGA7M77X.js} +2 -2
- package/dist/{chunk-EB6M3GE6.js → chunk-FM4K4XFJ.js} +100 -97
- package/dist/{chunk-VNLDQJ47.js → chunk-HYHCRMR7.js} +1 -1
- package/dist/{chunk-DJU2W4E4.js → chunk-KNHMXKC6.js} +2 -2
- package/dist/{chunk-Q3QYGKFE.js → chunk-M7YRJX6V.js} +10 -21
- package/dist/{chunk-KFCQYZXR.js → chunk-OVLZQ6FZ.js} +61 -0
- package/dist/{chunk-W34X3KBR.js → chunk-PHMWH23E.js} +1 -1
- package/dist/{chunk-DDN2AIGE.js → chunk-Q7Y57KOK.js} +2 -2
- package/dist/{chunk-LJH64PV3.js → chunk-QXKQPUOM.js} +3 -3
- package/dist/{chunk-CX42VC67.js → chunk-SYQWQ6FE.js} +1 -1
- package/dist/{chunk-5DSHUYSY.js → chunk-T5YYFDZB.js} +1 -1
- package/dist/{chunk-RMRTQGW3.js → chunk-THVM6EP5.js} +371 -13
- package/dist/{chunk-XMHSGPLN.js → chunk-VRKK2CSZ.js} +111 -90
- package/dist/{chunk-OL2UEHRP.js → chunk-WUDSNHWF.js} +1 -1
- package/dist/{chunk-XQCAMKIQ.js → chunk-WZDKNF37.js} +250 -106
- package/dist/{chunk-PRAZBHNF.js → chunk-YLL7MF5C.js} +15 -15
- package/dist/{chunk-YZDZ4FGR.js → chunk-ZVC23LKV.js} +1 -1
- package/dist/compare.cjs +100 -97
- package/dist/compare.js +3 -3
- 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.cjs +16 -5
- package/dist/core/commands/image-commands.d.cts +1 -1
- package/dist/core/commands/image-commands.d.ts +1 -1
- package/dist/core/commands/image-commands.js +5 -5
- 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.cjs +16 -5
- 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/table-structure-commands.js +4 -4
- package/dist/core/commands/text-commands.cjs +16 -5
- package/dist/core/commands/text-commands.d.cts +1 -1
- package/dist/core/commands/text-commands.d.ts +1 -1
- package/dist/core/commands/text-commands.js +5 -5
- 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 +1280 -347
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +24 -24
- package/dist/io/docx-session.cjs +216 -203
- package/dist/io/docx-session.d.cts +3 -3
- package/dist/io/docx-session.d.ts +3 -3
- package/dist/io/docx-session.js +6 -6
- package/dist/legal.cjs +9 -20
- package/dist/legal.js +3 -3
- package/dist/{loader-4qsw4eIU.d.ts → loader-B-aL5HGD.d.ts} +2 -2
- package/dist/{loader-B8TKhmQi.d.cts → loader-DiY_ZgKl.d.cts} +2 -2
- package/dist/{measurement-backend-canvas-Q3MJMEYX.js → measurement-backend-canvas-F7ZYDACK.js} +1 -1
- package/dist/{public-types-p9b8rfy8.d.ts → public-types-DyqnxxO9.d.ts} +124 -1
- package/dist/{public-types-B5CRoR6f.d.cts → public-types-gvubspUI.d.cts} +124 -1
- package/dist/public-types.cjs +595 -18
- package/dist/public-types.d.cts +1 -1
- package/dist/public-types.d.ts +1 -1
- package/dist/public-types.js +4 -4
- package/dist/runtime/collab.d.cts +2 -2
- package/dist/runtime/collab.d.ts +2 -2
- package/dist/runtime/document-runtime.cjs +908 -129
- package/dist/runtime/document-runtime.d.cts +1 -1
- package/dist/runtime/document-runtime.d.ts +1 -1
- package/dist/runtime/document-runtime.js +17 -17
- package/dist/{session-BnGIjaex.d.cts → session-BUN6B-Vj.d.cts} +2 -2
- package/dist/{session-vEYKf-w3.d.ts → session-CDB0hohT.d.ts} +2 -2
- package/dist/session.cjs +216 -203
- package/dist/session.d.cts +4 -4
- package/dist/session.d.ts +4 -4
- package/dist/session.js +7 -7
- package/dist/tailwind.cjs +595 -18
- package/dist/tailwind.d.cts +1 -1
- package/dist/tailwind.d.ts +1 -1
- package/dist/tailwind.js +8 -8
- package/dist/{types-BLuvZ6cQ.d.cts → types-C4bz3kDU.d.cts} +1 -1
- package/dist/{types-Dutlyj0T.d.ts → types-VWH6CRvG.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/editor-surface/search-plugin.js +5 -5
- package/dist/ui-tailwind.cjs +595 -18
- package/dist/ui-tailwind.d.cts +2 -2
- package/dist/ui-tailwind.d.ts +2 -2
- package/dist/ui-tailwind.js +8 -8
- package/package.json +4 -1
package/dist/compare.cjs
CHANGED
|
@@ -3987,26 +3987,35 @@ function buildParagraphPropertiesXml(paragraph) {
|
|
|
3987
3987
|
if (frameXml) children.push(frameXml);
|
|
3988
3988
|
}
|
|
3989
3989
|
pushOnOffParagraphProperty(children, "widowControl", paragraph.widowControl);
|
|
3990
|
-
if (paragraph.outlineLevel !== void 0) {
|
|
3991
|
-
children.push(`<w:outlineLvl w:val="${paragraph.outlineLevel}"/>`);
|
|
3992
|
-
}
|
|
3993
3990
|
if (paragraph.numbering) {
|
|
3994
3991
|
children.push(serializeParagraphNumberingProperties(paragraph.numbering));
|
|
3995
3992
|
}
|
|
3993
|
+
pushOnOffParagraphProperty(children, "suppressLineNumbers", paragraph.suppressLineNumbers);
|
|
3994
|
+
if (paragraph.borders) {
|
|
3995
|
+
const bordersXml = serializeParagraphBorders(paragraph.borders);
|
|
3996
|
+
if (bordersXml) children.push(bordersXml);
|
|
3997
|
+
}
|
|
3998
|
+
if (paragraph.shading) {
|
|
3999
|
+
const shadingXml = serializeParagraphShading(paragraph.shading);
|
|
4000
|
+
if (shadingXml) children.push(shadingXml);
|
|
4001
|
+
}
|
|
4002
|
+
if (paragraph.tabStops && paragraph.tabStops.length > 0) {
|
|
4003
|
+
const tabsXml = paragraph.tabStops.map((tab) => {
|
|
4004
|
+
const leaderAttr = tab.leader ? ` w:leader="${escapeXmlAttribute2(tab.leader)}"` : "";
|
|
4005
|
+
return `<w:tab w:val="${escapeXmlAttribute2(tab.align)}" w:pos="${twip(tab.position)}"${leaderAttr}/>`;
|
|
4006
|
+
}).join("");
|
|
4007
|
+
children.push(`<w:tabs>${tabsXml}</w:tabs>`);
|
|
4008
|
+
}
|
|
4009
|
+
pushOnOffParagraphProperty(children, "bidi", paragraph.bidi);
|
|
3996
4010
|
if (paragraph.spacing) {
|
|
3997
4011
|
const s = paragraph.spacing;
|
|
3998
4012
|
const attrs = [];
|
|
3999
4013
|
if (s.before !== void 0) attrs.push(`w:before="${twip(s.before)}"`);
|
|
4000
4014
|
if (s.after !== void 0) attrs.push(`w:after="${twip(s.after)}"`);
|
|
4001
4015
|
if (s.line !== void 0) attrs.push(`w:line="${twip(s.line)}"`);
|
|
4002
|
-
if (s.lineRule !== void 0) attrs.push(`w:lineRule="${s.lineRule}"`);
|
|
4016
|
+
if (s.lineRule !== void 0) attrs.push(`w:lineRule="${escapeXmlAttribute2(s.lineRule)}"`);
|
|
4003
4017
|
if (attrs.length > 0) children.push(`<w:spacing ${attrs.join(" ")}/>`);
|
|
4004
4018
|
}
|
|
4005
|
-
if (paragraph.contextualSpacing === true) {
|
|
4006
|
-
children.push("<w:contextualSpacing/>");
|
|
4007
|
-
} else if (paragraph.contextualSpacing === false) {
|
|
4008
|
-
children.push(`<w:contextualSpacing w:val="false"/>`);
|
|
4009
|
-
}
|
|
4010
4019
|
if (paragraph.indentation) {
|
|
4011
4020
|
const ind = paragraph.indentation;
|
|
4012
4021
|
const attrs = [];
|
|
@@ -4016,33 +4025,20 @@ function buildParagraphPropertiesXml(paragraph) {
|
|
|
4016
4025
|
if (ind.hanging !== void 0) attrs.push(`w:hanging="${twip(ind.hanging)}"`);
|
|
4017
4026
|
if (attrs.length > 0) children.push(`<w:ind ${attrs.join(" ")}/>`);
|
|
4018
4027
|
}
|
|
4019
|
-
if (paragraph.
|
|
4020
|
-
children.push(
|
|
4028
|
+
if (paragraph.contextualSpacing === true) {
|
|
4029
|
+
children.push("<w:contextualSpacing/>");
|
|
4030
|
+
} else if (paragraph.contextualSpacing === false) {
|
|
4031
|
+
children.push(`<w:contextualSpacing w:val="false"/>`);
|
|
4021
4032
|
}
|
|
4022
|
-
if (paragraph.
|
|
4023
|
-
|
|
4024
|
-
if (bordersXml) {
|
|
4025
|
-
children.push(bordersXml);
|
|
4026
|
-
}
|
|
4033
|
+
if (paragraph.alignment) {
|
|
4034
|
+
children.push(`<w:jc w:val="${escapeXmlAttribute2(paragraph.alignment)}"/>`);
|
|
4027
4035
|
}
|
|
4028
|
-
if (paragraph.
|
|
4029
|
-
|
|
4030
|
-
if (shadingXml) {
|
|
4031
|
-
children.push(shadingXml);
|
|
4032
|
-
}
|
|
4036
|
+
if (paragraph.outlineLevel !== void 0) {
|
|
4037
|
+
children.push(`<w:outlineLvl w:val="${paragraph.outlineLevel}"/>`);
|
|
4033
4038
|
}
|
|
4034
|
-
pushOnOffParagraphProperty(children, "bidi", paragraph.bidi);
|
|
4035
|
-
pushOnOffParagraphProperty(children, "suppressLineNumbers", paragraph.suppressLineNumbers);
|
|
4036
4039
|
if (paragraph.cnfStyle) {
|
|
4037
4040
|
children.push(`<w:cnfStyle w:val="${escapeXmlAttribute2(paragraph.cnfStyle)}"/>`);
|
|
4038
4041
|
}
|
|
4039
|
-
if (paragraph.tabStops && paragraph.tabStops.length > 0) {
|
|
4040
|
-
const tabsXml = paragraph.tabStops.map((tab) => {
|
|
4041
|
-
const leaderAttr = tab.leader ? ` w:leader="${tab.leader}"` : "";
|
|
4042
|
-
return `<w:tab w:val="${tab.align}" w:pos="${twip(tab.position)}"${leaderAttr}/>`;
|
|
4043
|
-
}).join("");
|
|
4044
|
-
children.push(`<w:tabs>${tabsXml}</w:tabs>`);
|
|
4045
|
-
}
|
|
4046
4042
|
if (children.length === 0) return "";
|
|
4047
4043
|
return `<w:pPr>${children.join("")}</w:pPr>`;
|
|
4048
4044
|
}
|
|
@@ -4607,79 +4603,86 @@ function serializeRunProperties(marks) {
|
|
|
4607
4603
|
if (!marks || marks.length === 0) {
|
|
4608
4604
|
return "";
|
|
4609
4605
|
}
|
|
4606
|
+
const orderedTypes = [
|
|
4607
|
+
"fontFamily",
|
|
4608
|
+
"bold",
|
|
4609
|
+
"italic",
|
|
4610
|
+
"allCaps",
|
|
4611
|
+
"smallCaps",
|
|
4612
|
+
"strikethrough",
|
|
4613
|
+
"doubleStrikethrough",
|
|
4614
|
+
"shadow",
|
|
4615
|
+
"emboss",
|
|
4616
|
+
"imprint",
|
|
4617
|
+
"vanish",
|
|
4618
|
+
"textColor",
|
|
4619
|
+
"charSpacing",
|
|
4620
|
+
"kerning",
|
|
4621
|
+
"position",
|
|
4622
|
+
"fontSize",
|
|
4623
|
+
"highlight",
|
|
4624
|
+
"underline",
|
|
4625
|
+
"backgroundColor",
|
|
4626
|
+
"lang",
|
|
4627
|
+
"textFill"
|
|
4628
|
+
];
|
|
4610
4629
|
const markParts = [];
|
|
4611
|
-
for (const
|
|
4612
|
-
|
|
4613
|
-
|
|
4614
|
-
|
|
4615
|
-
|
|
4616
|
-
case "italic":
|
|
4617
|
-
markParts.push("<w:i/>");
|
|
4618
|
-
break;
|
|
4619
|
-
case "underline":
|
|
4620
|
-
markParts.push(`<w:u w:val="single"/>`);
|
|
4621
|
-
break;
|
|
4622
|
-
case "strikethrough":
|
|
4623
|
-
markParts.push("<w:strike/>");
|
|
4624
|
-
break;
|
|
4625
|
-
case "doubleStrikethrough":
|
|
4626
|
-
markParts.push("<w:dstrike/>");
|
|
4627
|
-
break;
|
|
4628
|
-
case "vanish":
|
|
4629
|
-
markParts.push("<w:vanish/>");
|
|
4630
|
-
break;
|
|
4631
|
-
case "lang":
|
|
4632
|
-
markParts.push(`<w:lang w:val="${escapeXmlAttribute2(mark.val)}"/>`);
|
|
4633
|
-
break;
|
|
4634
|
-
case "highlight":
|
|
4635
|
-
markParts.push(`<w:highlight w:val="${escapeXmlAttribute2(mark.val)}"/>`);
|
|
4636
|
-
break;
|
|
4637
|
-
case "backgroundColor":
|
|
4638
|
-
markParts.push(
|
|
4639
|
-
`<w:shd w:val="clear" w:color="auto" w:fill="${escapeXmlAttribute2(mark.color)}"/>`
|
|
4640
|
-
);
|
|
4641
|
-
break;
|
|
4642
|
-
case "charSpacing":
|
|
4643
|
-
markParts.push(`<w:spacing w:val="${mark.val}"/>`);
|
|
4644
|
-
break;
|
|
4645
|
-
case "kerning":
|
|
4646
|
-
markParts.push(`<w:kern w:val="${mark.val}"/>`);
|
|
4647
|
-
break;
|
|
4648
|
-
case "emboss":
|
|
4649
|
-
markParts.push("<w:emboss/>");
|
|
4650
|
-
break;
|
|
4651
|
-
case "imprint":
|
|
4652
|
-
markParts.push("<w:imprint/>");
|
|
4653
|
-
break;
|
|
4654
|
-
case "shadow":
|
|
4655
|
-
markParts.push("<w:shadow/>");
|
|
4656
|
-
break;
|
|
4657
|
-
case "position":
|
|
4658
|
-
markParts.push(`<w:position w:val="${mark.val}"/>`);
|
|
4659
|
-
break;
|
|
4660
|
-
case "textFill":
|
|
4661
|
-
markParts.push(mark.xml);
|
|
4662
|
-
break;
|
|
4663
|
-
case "fontFamily":
|
|
4664
|
-
markParts.push(`<w:rFonts w:ascii="${escapeXmlAttribute2(mark.val)}" w:hAnsi="${escapeXmlAttribute2(mark.val)}"/>`);
|
|
4665
|
-
break;
|
|
4666
|
-
case "fontSize":
|
|
4667
|
-
markParts.push(`<w:sz w:val="${mark.val}"/>`);
|
|
4668
|
-
break;
|
|
4669
|
-
case "textColor":
|
|
4670
|
-
markParts.push(`<w:color w:val="${escapeXmlAttribute2(mark.color)}"/>`);
|
|
4671
|
-
break;
|
|
4672
|
-
case "smallCaps":
|
|
4673
|
-
markParts.push("<w:smallCaps/>");
|
|
4674
|
-
break;
|
|
4675
|
-
case "allCaps":
|
|
4676
|
-
markParts.push("<w:caps/>");
|
|
4677
|
-
break;
|
|
4630
|
+
for (const type of orderedTypes) {
|
|
4631
|
+
for (const mark of marks) {
|
|
4632
|
+
if (mark.type !== type) continue;
|
|
4633
|
+
const xml = serializeRunPropertyMark(mark);
|
|
4634
|
+
if (xml) markParts.push(xml);
|
|
4678
4635
|
}
|
|
4679
4636
|
}
|
|
4680
4637
|
const children = markParts.join("");
|
|
4681
4638
|
return children.length > 0 ? `<w:rPr>${children}</w:rPr>` : "";
|
|
4682
4639
|
}
|
|
4640
|
+
function serializeRunPropertyMark(mark) {
|
|
4641
|
+
switch (mark.type) {
|
|
4642
|
+
case "bold":
|
|
4643
|
+
return "<w:b/>";
|
|
4644
|
+
case "italic":
|
|
4645
|
+
return "<w:i/>";
|
|
4646
|
+
case "underline":
|
|
4647
|
+
return `<w:u w:val="single"/>`;
|
|
4648
|
+
case "strikethrough":
|
|
4649
|
+
return "<w:strike/>";
|
|
4650
|
+
case "doubleStrikethrough":
|
|
4651
|
+
return "<w:dstrike/>";
|
|
4652
|
+
case "vanish":
|
|
4653
|
+
return "<w:vanish/>";
|
|
4654
|
+
case "lang":
|
|
4655
|
+
return `<w:lang w:val="${escapeXmlAttribute2(mark.val)}"/>`;
|
|
4656
|
+
case "highlight":
|
|
4657
|
+
return `<w:highlight w:val="${escapeXmlAttribute2(mark.val)}"/>`;
|
|
4658
|
+
case "backgroundColor":
|
|
4659
|
+
return `<w:shd w:val="clear" w:color="auto" w:fill="${escapeXmlAttribute2(mark.color)}"/>`;
|
|
4660
|
+
case "charSpacing":
|
|
4661
|
+
return `<w:spacing w:val="${mark.val}"/>`;
|
|
4662
|
+
case "kerning":
|
|
4663
|
+
return `<w:kern w:val="${mark.val}"/>`;
|
|
4664
|
+
case "emboss":
|
|
4665
|
+
return "<w:emboss/>";
|
|
4666
|
+
case "imprint":
|
|
4667
|
+
return "<w:imprint/>";
|
|
4668
|
+
case "shadow":
|
|
4669
|
+
return "<w:shadow/>";
|
|
4670
|
+
case "position":
|
|
4671
|
+
return `<w:position w:val="${mark.val}"/>`;
|
|
4672
|
+
case "textFill":
|
|
4673
|
+
return mark.xml;
|
|
4674
|
+
case "fontFamily":
|
|
4675
|
+
return `<w:rFonts w:ascii="${escapeXmlAttribute2(mark.val)}" w:hAnsi="${escapeXmlAttribute2(mark.val)}"/>`;
|
|
4676
|
+
case "fontSize":
|
|
4677
|
+
return `<w:sz w:val="${mark.val}"/>`;
|
|
4678
|
+
case "textColor":
|
|
4679
|
+
return `<w:color w:val="${escapeXmlAttribute2(mark.color)}"/>`;
|
|
4680
|
+
case "smallCaps":
|
|
4681
|
+
return "<w:smallCaps/>";
|
|
4682
|
+
case "allCaps":
|
|
4683
|
+
return "<w:caps/>";
|
|
4684
|
+
}
|
|
4685
|
+
}
|
|
4683
4686
|
function requiresPreservedSpace(text) {
|
|
4684
4687
|
return /^\s/.test(text) || /\s$/.test(text) || text.includes(" ");
|
|
4685
4688
|
}
|
package/dist/compare.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCommentStoreFromRuntimeComments
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SYQWQ6FE.js";
|
|
4
4
|
import "./chunk-OYGMRRR7.js";
|
|
5
5
|
import {
|
|
6
6
|
createCommentExportIdMap,
|
|
@@ -10,12 +10,12 @@ import {
|
|
|
10
10
|
serializeMergedCommentsXml,
|
|
11
11
|
serializeRuntimeRevisionsIntoDocumentXml,
|
|
12
12
|
splitDocumentAtReviewBoundaries
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-WUDSNHWF.js";
|
|
14
14
|
import {
|
|
15
15
|
WORD_NUMBERING_CONTENT_TYPE,
|
|
16
16
|
serializeMainDocument,
|
|
17
17
|
serializeNumberingXml
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-FM4K4XFJ.js";
|
|
19
19
|
import "./chunk-IHE7YOAY.js";
|
|
20
20
|
import {
|
|
21
21
|
DOCX_DOCUMENT_CONTENT_TYPE,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import 'prosemirror-state';
|
|
2
2
|
import 'prosemirror-model';
|
|
3
|
-
export { g4 as Alignment, g5 as FormattingMutationResult, g6 as FormattingOperation, g7 as TextMarkClearTarget, g8 as TextMarkRangeOperation, g9 as applyFormattingOperationToDocument, ga as applyIndentation, gb as applyTextMarkOperationToDocumentRange, gc as getFormattingStateFromRenderSnapshot, gd as isMarkActive, ge as makeSetAlignment, gf as makeSetFontFamily, gg as makeSetFontSize, gh as makeSetHighlight, gi as makeSetTextColor, gj as makeToggleAllCaps, gk as makeToggleBold, gl as makeToggleItalic, gm as makeToggleSmallCaps, gn as makeToggleStrikethrough, go as makeToggleSubscript, gp as makeToggleSuperscript, gq as makeToggleUnderline } from '../../public-types-
|
|
3
|
+
export { g4 as Alignment, g5 as FormattingMutationResult, g6 as FormattingOperation, g7 as TextMarkClearTarget, g8 as TextMarkRangeOperation, g9 as applyFormattingOperationToDocument, ga as applyIndentation, gb as applyTextMarkOperationToDocumentRange, gc as getFormattingStateFromRenderSnapshot, gd as isMarkActive, ge as makeSetAlignment, gf as makeSetFontFamily, gg as makeSetFontSize, gh as makeSetHighlight, gi as makeSetTextColor, gj as makeToggleAllCaps, gk as makeToggleBold, gl as makeToggleItalic, gm as makeToggleSmallCaps, gn as makeToggleStrikethrough, go as makeToggleSubscript, gp as makeToggleSuperscript, gq as makeToggleUnderline } from '../../public-types-gvubspUI.cjs';
|
|
4
4
|
import '../../canonical-document-BMtONpgf.cjs';
|
|
5
5
|
import 'react';
|
|
6
6
|
import 'yjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import 'prosemirror-state';
|
|
2
2
|
import 'prosemirror-model';
|
|
3
|
-
export { g4 as Alignment, g5 as FormattingMutationResult, g6 as FormattingOperation, g7 as TextMarkClearTarget, g8 as TextMarkRangeOperation, g9 as applyFormattingOperationToDocument, ga as applyIndentation, gb as applyTextMarkOperationToDocumentRange, gc as getFormattingStateFromRenderSnapshot, gd as isMarkActive, ge as makeSetAlignment, gf as makeSetFontFamily, gg as makeSetFontSize, gh as makeSetHighlight, gi as makeSetTextColor, gj as makeToggleAllCaps, gk as makeToggleBold, gl as makeToggleItalic, gm as makeToggleSmallCaps, gn as makeToggleStrikethrough, go as makeToggleSubscript, gp as makeToggleSuperscript, gq as makeToggleUnderline } from '../../public-types-
|
|
3
|
+
export { g4 as Alignment, g5 as FormattingMutationResult, g6 as FormattingOperation, g7 as TextMarkClearTarget, g8 as TextMarkRangeOperation, g9 as applyFormattingOperationToDocument, ga as applyIndentation, gb as applyTextMarkOperationToDocumentRange, gc as getFormattingStateFromRenderSnapshot, gd as isMarkActive, ge as makeSetAlignment, gf as makeSetFontFamily, gg as makeSetFontSize, gh as makeSetHighlight, gi as makeSetTextColor, gj as makeToggleAllCaps, gk as makeToggleBold, gl as makeToggleItalic, gm as makeToggleSmallCaps, gn as makeToggleStrikethrough, go as makeToggleSubscript, gp as makeToggleSuperscript, gq as makeToggleUnderline } from '../../public-types-DyqnxxO9.js';
|
|
4
4
|
import '../../canonical-document-BMtONpgf.js';
|
|
5
5
|
import 'react';
|
|
6
6
|
import 'yjs';
|
|
@@ -5485,6 +5485,7 @@ function createEditorSurfaceSnapshot(document, _selection, activeStory = { kind:
|
|
|
5485
5485
|
...options.authorColorPalette ? { authorColorPalette: options.authorColorPalette } : {}
|
|
5486
5486
|
});
|
|
5487
5487
|
const editableTargetsByBlockPath = options.editableTargetsByBlockPath ?? indexEditableTargetsByBlockPath(document);
|
|
5488
|
+
const layoutIdentitiesByBlockPath = options.layoutIdentitiesByBlockPath;
|
|
5488
5489
|
const activeStoryBlockPathBase = getActiveStoryBlockPathBase(document, activeStory);
|
|
5489
5490
|
chartModelStore.beginBuildPass(document);
|
|
5490
5491
|
const unsupportedNumberingFormatsSeen = options.emitFormattingTelemetry ? /* @__PURE__ */ new Set() : null;
|
|
@@ -5508,6 +5509,7 @@ function createEditorSurfaceSnapshot(document, _selection, activeStory = { kind:
|
|
|
5508
5509
|
activeStory.kind !== "main",
|
|
5509
5510
|
!isInViewport,
|
|
5510
5511
|
editableTargetsByBlockPath,
|
|
5512
|
+
layoutIdentitiesByBlockPath,
|
|
5511
5513
|
`${activeStoryBlockPathBase}/block[${index}]`
|
|
5512
5514
|
);
|
|
5513
5515
|
if (isInViewport) {
|
|
@@ -5574,7 +5576,7 @@ function isIndexInAnyRange(index, ranges) {
|
|
|
5574
5576
|
}
|
|
5575
5577
|
return false;
|
|
5576
5578
|
}
|
|
5577
|
-
function createSurfaceBlock(block, document, cursor, counters, formattingContext, promoteSecondaryStoryTextBoxes, cullBuild = false, editableTargetsByBlockPath = EMPTY_EDITABLE_TARGETS_BY_BLOCK_PATH, blockPath) {
|
|
5579
|
+
function createSurfaceBlock(block, document, cursor, counters, formattingContext, promoteSecondaryStoryTextBoxes, cullBuild = false, editableTargetsByBlockPath = EMPTY_EDITABLE_TARGETS_BY_BLOCK_PATH, layoutIdentitiesByBlockPath, blockPath) {
|
|
5578
5580
|
if (block.type === "opaque_block") {
|
|
5579
5581
|
const fragment = getOpaqueFragment(document.preservation, block.fragmentId);
|
|
5580
5582
|
const descriptor = fragment ? describeOpaqueFragment(fragment) : null;
|
|
@@ -5611,6 +5613,7 @@ function createSurfaceBlock(block, document, cursor, counters, formattingContext
|
|
|
5611
5613
|
promoteSecondaryStoryTextBoxes,
|
|
5612
5614
|
cullBuild,
|
|
5613
5615
|
editableTargetsByBlockPath,
|
|
5616
|
+
layoutIdentitiesByBlockPath,
|
|
5614
5617
|
blockPath
|
|
5615
5618
|
);
|
|
5616
5619
|
}
|
|
@@ -5651,6 +5654,7 @@ function createSurfaceBlock(block, document, cursor, counters, formattingContext
|
|
|
5651
5654
|
promoteSecondaryStoryTextBoxes,
|
|
5652
5655
|
cullBuild,
|
|
5653
5656
|
editableTargetsByBlockPath,
|
|
5657
|
+
layoutIdentitiesByBlockPath,
|
|
5654
5658
|
blockPath
|
|
5655
5659
|
);
|
|
5656
5660
|
}
|
|
@@ -5733,10 +5737,11 @@ function createSurfaceBlock(block, document, cursor, counters, formattingContext
|
|
|
5733
5737
|
cullBuild,
|
|
5734
5738
|
editableTargetsByBlockPath,
|
|
5735
5739
|
blockPath,
|
|
5736
|
-
blockPath !== void 0 ? editableTargetsByBlockPath.get(blockPath) : void 0
|
|
5740
|
+
blockPath !== void 0 ? editableTargetsByBlockPath.get(blockPath) : void 0,
|
|
5741
|
+
blockPath !== void 0 ? layoutIdentitiesByBlockPath?.get(blockPath) : void 0
|
|
5737
5742
|
);
|
|
5738
5743
|
}
|
|
5739
|
-
function createTableBlock(tableIndex, table, document, cursor, counters, formattingContext, promoteSecondaryStoryTextBoxes, cullBuild = false, editableTargetsByBlockPath = EMPTY_EDITABLE_TARGETS_BY_BLOCK_PATH, tablePath) {
|
|
5744
|
+
function createTableBlock(tableIndex, table, document, cursor, counters, formattingContext, promoteSecondaryStoryTextBoxes, cullBuild = false, editableTargetsByBlockPath = EMPTY_EDITABLE_TARGETS_BY_BLOCK_PATH, layoutIdentitiesByBlockPath, tablePath) {
|
|
5740
5745
|
const lockedFragmentIds = [];
|
|
5741
5746
|
let innerCursor = cursor;
|
|
5742
5747
|
if (cullBuild) {
|
|
@@ -5753,6 +5758,7 @@ function createTableBlock(tableIndex, table, document, cursor, counters, formatt
|
|
|
5753
5758
|
promoteSecondaryStoryTextBoxes,
|
|
5754
5759
|
true,
|
|
5755
5760
|
editableTargetsByBlockPath,
|
|
5761
|
+
layoutIdentitiesByBlockPath,
|
|
5756
5762
|
tablePath !== void 0 ? `${tablePath}/row[${rowIndex}]/cell[${cellIndex}]/block[${childIndex}]` : void 0
|
|
5757
5763
|
);
|
|
5758
5764
|
lockedFragmentIds.push(...result.lockedFragmentIds);
|
|
@@ -5768,6 +5774,7 @@ function createTableBlock(tableIndex, table, document, cursor, counters, formatt
|
|
|
5768
5774
|
to: innerCursor,
|
|
5769
5775
|
styleId: table.styleId,
|
|
5770
5776
|
...table.sourceRef !== void 0 ? { sourceRef: table.sourceRef } : {},
|
|
5777
|
+
...tablePath !== void 0 && layoutIdentitiesByBlockPath?.get(tablePath) !== void 0 ? { layoutIdentity: layoutIdentitiesByBlockPath.get(tablePath) } : {},
|
|
5771
5778
|
gridColumns: table.gridColumns,
|
|
5772
5779
|
rows: []
|
|
5773
5780
|
},
|
|
@@ -5805,6 +5812,7 @@ function createTableBlock(tableIndex, table, document, cursor, counters, formatt
|
|
|
5805
5812
|
promoteSecondaryStoryTextBoxes,
|
|
5806
5813
|
cullBuild,
|
|
5807
5814
|
editableTargetsByBlockPath,
|
|
5815
|
+
layoutIdentitiesByBlockPath,
|
|
5808
5816
|
tablePath !== void 0 ? `${tablePath}/row[${rowIndex}]/cell[${cellIndex}]/block[${childIndex}]` : void 0
|
|
5809
5817
|
);
|
|
5810
5818
|
cellContent.push(result.block);
|
|
@@ -5893,6 +5901,7 @@ function createTableBlock(tableIndex, table, document, cursor, counters, formatt
|
|
|
5893
5901
|
to: innerCursor,
|
|
5894
5902
|
styleId: table.styleId,
|
|
5895
5903
|
...table.sourceRef !== void 0 ? { sourceRef: table.sourceRef } : {},
|
|
5904
|
+
...tablePath !== void 0 && layoutIdentitiesByBlockPath?.get(tablePath) !== void 0 ? { layoutIdentity: layoutIdentitiesByBlockPath.get(tablePath) } : {},
|
|
5896
5905
|
gridColumns: table.gridColumns,
|
|
5897
5906
|
...gridColumnsRelative ? { gridColumnsRelative } : {},
|
|
5898
5907
|
...resolvedTable.table?.alignment ? { alignment: resolvedTable.table.alignment } : {},
|
|
@@ -6080,7 +6089,7 @@ function resolveCellBorderStyles(borders, tableBorders, position) {
|
|
|
6080
6089
|
if (left) result.borderLeft = left;
|
|
6081
6090
|
return result;
|
|
6082
6091
|
}
|
|
6083
|
-
function createSdtBlock(sdtIndex, block, document, cursor, counters, formattingContext, promoteSecondaryStoryTextBoxes, cullBuild = false, editableTargetsByBlockPath = EMPTY_EDITABLE_TARGETS_BY_BLOCK_PATH, sdtPath) {
|
|
6092
|
+
function createSdtBlock(sdtIndex, block, document, cursor, counters, formattingContext, promoteSecondaryStoryTextBoxes, cullBuild = false, editableTargetsByBlockPath = EMPTY_EDITABLE_TARGETS_BY_BLOCK_PATH, layoutIdentitiesByBlockPath, sdtPath) {
|
|
6084
6093
|
const children = [];
|
|
6085
6094
|
const lockedFragmentIds = [];
|
|
6086
6095
|
let innerCursor = cursor;
|
|
@@ -6097,6 +6106,7 @@ function createSdtBlock(sdtIndex, block, document, cursor, counters, formattingC
|
|
|
6097
6106
|
promoteSecondaryStoryTextBoxes,
|
|
6098
6107
|
cullBuild,
|
|
6099
6108
|
editableTargetsByBlockPath,
|
|
6109
|
+
layoutIdentitiesByBlockPath,
|
|
6100
6110
|
sdtPath !== void 0 ? `${sdtPath}/block[${childIndex}]` : void 0
|
|
6101
6111
|
);
|
|
6102
6112
|
children.push(result.block);
|
|
@@ -6139,7 +6149,7 @@ function getRecursableSdtBlockedReasonCode(block) {
|
|
|
6139
6149
|
].filter(Boolean).join(" ").toLowerCase();
|
|
6140
6150
|
return searchText.includes("table of contents") || /\btoc\b/u.test(searchText) ? "workflow_preserve_only" : null;
|
|
6141
6151
|
}
|
|
6142
|
-
function createParagraphBlock(paragraphIndex, paragraph, document, start, formattingContext, promoteSecondaryStoryTextBoxes, cullBuild = false, editableTargetsByBlockPath = EMPTY_EDITABLE_TARGETS_BY_BLOCK_PATH, blockPath, editableTarget) {
|
|
6152
|
+
function createParagraphBlock(paragraphIndex, paragraph, document, start, formattingContext, promoteSecondaryStoryTextBoxes, cullBuild = false, editableTargetsByBlockPath = EMPTY_EDITABLE_TARGETS_BY_BLOCK_PATH, blockPath, editableTarget, layoutIdentity) {
|
|
6143
6153
|
const themeResolver = formattingContext.theme;
|
|
6144
6154
|
const effectiveNumbering = formattingContext.resolveEffectiveParagraphNumbering(paragraph);
|
|
6145
6155
|
let resolvedNumbering = null;
|
|
@@ -6162,6 +6172,7 @@ function createParagraphBlock(paragraphIndex, paragraph, document, start, format
|
|
|
6162
6172
|
from: start,
|
|
6163
6173
|
to: start,
|
|
6164
6174
|
...editableTarget !== void 0 ? { editableTarget } : {},
|
|
6175
|
+
...layoutIdentity !== void 0 ? { layoutIdentity } : {},
|
|
6165
6176
|
...paragraph.styleId ? { styleId: paragraph.styleId } : {},
|
|
6166
6177
|
...effectiveNumbering ? { numbering: effectiveNumbering } : {},
|
|
6167
6178
|
...resolvedNumbering ? {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as CanonicalDocumentEnvelope, S as SelectionSnapshot, g as TransactionMapping } from '../../public-types-
|
|
1
|
+
import { C as CanonicalDocumentEnvelope, S as SelectionSnapshot, g as TransactionMapping } from '../../public-types-gvubspUI.cjs';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'yjs';
|
|
4
4
|
import 'y-protocols/awareness';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as CanonicalDocumentEnvelope, S as SelectionSnapshot, g as TransactionMapping } from '../../public-types-
|
|
1
|
+
import { C as CanonicalDocumentEnvelope, S as SelectionSnapshot, g as TransactionMapping } from '../../public-types-DyqnxxO9.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'yjs';
|
|
4
4
|
import 'y-protocols/awareness';
|
|
@@ -2,13 +2,13 @@ import {
|
|
|
2
2
|
insertImage,
|
|
3
3
|
repositionFloatingImage,
|
|
4
4
|
resizeImage
|
|
5
|
-
} from "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
7
|
-
import "../../chunk-
|
|
5
|
+
} from "../../chunk-KNHMXKC6.js";
|
|
6
|
+
import "../../chunk-T5YYFDZB.js";
|
|
7
|
+
import "../../chunk-PHMWH23E.js";
|
|
8
8
|
import "../../chunk-QIO6V46H.js";
|
|
9
|
-
import "../../chunk-
|
|
9
|
+
import "../../chunk-A3GSNB4G.js";
|
|
10
10
|
import "../../chunk-OYGMRRR7.js";
|
|
11
|
-
import "../../chunk-
|
|
11
|
+
import "../../chunk-A66ZVUAT.js";
|
|
12
12
|
import "../../chunk-UFVDIR2C.js";
|
|
13
13
|
import "../../chunk-PGGPPZ65.js";
|
|
14
14
|
import "../../chunk-DNXYUIIS.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as SelectionSnapshot, M as MarginPresetDefinition, i as PageFormatDefinition, R as RuntimeRenderSnapshot } from '../../public-types-
|
|
1
|
+
import { h as SelectionSnapshot, M as MarginPresetDefinition, i as PageFormatDefinition, R as RuntimeRenderSnapshot } from '../../public-types-gvubspUI.cjs';
|
|
2
2
|
import { C as CanonicalDocument, P as PageSize, a as PageMargins, b as ColumnProperties, c as PageNumbering } from '../../canonical-document-BMtONpgf.cjs';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'yjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as SelectionSnapshot, M as MarginPresetDefinition, i as PageFormatDefinition, R as RuntimeRenderSnapshot } from '../../public-types-
|
|
1
|
+
import { h as SelectionSnapshot, M as MarginPresetDefinition, i as PageFormatDefinition, R as RuntimeRenderSnapshot } from '../../public-types-DyqnxxO9.js';
|
|
2
2
|
import { C as CanonicalDocument, P as PageSize, a as PageMargins, b as ColumnProperties, c as PageNumbering } from '../../canonical-document-BMtONpgf.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'yjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PersistedEditorSnapshot, R as RuntimeRenderSnapshot } from '../../public-types-
|
|
1
|
+
import { P as PersistedEditorSnapshot, R as RuntimeRenderSnapshot } from '../../public-types-gvubspUI.cjs';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'yjs';
|
|
4
4
|
import 'y-protocols/awareness';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PersistedEditorSnapshot, R as RuntimeRenderSnapshot } from '../../public-types-
|
|
1
|
+
import { P as PersistedEditorSnapshot, R as RuntimeRenderSnapshot } from '../../public-types-DyqnxxO9.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'yjs';
|
|
4
4
|
import 'y-protocols/awareness';
|
|
@@ -5049,6 +5049,7 @@ function createEditorSurfaceSnapshot(document, _selection, activeStory = { kind:
|
|
|
5049
5049
|
...options.authorColorPalette ? { authorColorPalette: options.authorColorPalette } : {}
|
|
5050
5050
|
});
|
|
5051
5051
|
const editableTargetsByBlockPath = options.editableTargetsByBlockPath ?? indexEditableTargetsByBlockPath(document);
|
|
5052
|
+
const layoutIdentitiesByBlockPath = options.layoutIdentitiesByBlockPath;
|
|
5052
5053
|
const activeStoryBlockPathBase = getActiveStoryBlockPathBase(document, activeStory);
|
|
5053
5054
|
chartModelStore.beginBuildPass(document);
|
|
5054
5055
|
const unsupportedNumberingFormatsSeen = options.emitFormattingTelemetry ? /* @__PURE__ */ new Set() : null;
|
|
@@ -5072,6 +5073,7 @@ function createEditorSurfaceSnapshot(document, _selection, activeStory = { kind:
|
|
|
5072
5073
|
activeStory.kind !== "main",
|
|
5073
5074
|
!isInViewport,
|
|
5074
5075
|
editableTargetsByBlockPath,
|
|
5076
|
+
layoutIdentitiesByBlockPath,
|
|
5075
5077
|
`${activeStoryBlockPathBase}/block[${index}]`
|
|
5076
5078
|
);
|
|
5077
5079
|
if (isInViewport) {
|
|
@@ -5138,7 +5140,7 @@ function isIndexInAnyRange(index, ranges) {
|
|
|
5138
5140
|
}
|
|
5139
5141
|
return false;
|
|
5140
5142
|
}
|
|
5141
|
-
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) {
|
|
5142
5144
|
if (block.type === "opaque_block") {
|
|
5143
5145
|
const fragment = getOpaqueFragment(document.preservation, block.fragmentId);
|
|
5144
5146
|
const descriptor = fragment ? describeOpaqueFragment(fragment) : null;
|
|
@@ -5175,6 +5177,7 @@ function createSurfaceBlock(block, document, cursor, counters, formattingContext
|
|
|
5175
5177
|
promoteSecondaryStoryTextBoxes,
|
|
5176
5178
|
cullBuild,
|
|
5177
5179
|
editableTargetsByBlockPath,
|
|
5180
|
+
layoutIdentitiesByBlockPath,
|
|
5178
5181
|
blockPath
|
|
5179
5182
|
);
|
|
5180
5183
|
}
|
|
@@ -5215,6 +5218,7 @@ function createSurfaceBlock(block, document, cursor, counters, formattingContext
|
|
|
5215
5218
|
promoteSecondaryStoryTextBoxes,
|
|
5216
5219
|
cullBuild,
|
|
5217
5220
|
editableTargetsByBlockPath,
|
|
5221
|
+
layoutIdentitiesByBlockPath,
|
|
5218
5222
|
blockPath
|
|
5219
5223
|
);
|
|
5220
5224
|
}
|
|
@@ -5297,10 +5301,11 @@ function createSurfaceBlock(block, document, cursor, counters, formattingContext
|
|
|
5297
5301
|
cullBuild,
|
|
5298
5302
|
editableTargetsByBlockPath,
|
|
5299
5303
|
blockPath,
|
|
5300
|
-
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
|
|
5301
5306
|
);
|
|
5302
5307
|
}
|
|
5303
|
-
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) {
|
|
5304
5309
|
const lockedFragmentIds = [];
|
|
5305
5310
|
let innerCursor = cursor;
|
|
5306
5311
|
if (cullBuild) {
|
|
@@ -5317,6 +5322,7 @@ function createTableBlock(tableIndex, table, document, cursor, counters, formatt
|
|
|
5317
5322
|
promoteSecondaryStoryTextBoxes,
|
|
5318
5323
|
true,
|
|
5319
5324
|
editableTargetsByBlockPath,
|
|
5325
|
+
layoutIdentitiesByBlockPath,
|
|
5320
5326
|
tablePath !== void 0 ? `${tablePath}/row[${rowIndex}]/cell[${cellIndex}]/block[${childIndex}]` : void 0
|
|
5321
5327
|
);
|
|
5322
5328
|
lockedFragmentIds.push(...result.lockedFragmentIds);
|
|
@@ -5332,6 +5338,7 @@ function createTableBlock(tableIndex, table, document, cursor, counters, formatt
|
|
|
5332
5338
|
to: innerCursor,
|
|
5333
5339
|
styleId: table.styleId,
|
|
5334
5340
|
...table.sourceRef !== void 0 ? { sourceRef: table.sourceRef } : {},
|
|
5341
|
+
...tablePath !== void 0 && layoutIdentitiesByBlockPath?.get(tablePath) !== void 0 ? { layoutIdentity: layoutIdentitiesByBlockPath.get(tablePath) } : {},
|
|
5335
5342
|
gridColumns: table.gridColumns,
|
|
5336
5343
|
rows: []
|
|
5337
5344
|
},
|
|
@@ -5369,6 +5376,7 @@ function createTableBlock(tableIndex, table, document, cursor, counters, formatt
|
|
|
5369
5376
|
promoteSecondaryStoryTextBoxes,
|
|
5370
5377
|
cullBuild,
|
|
5371
5378
|
editableTargetsByBlockPath,
|
|
5379
|
+
layoutIdentitiesByBlockPath,
|
|
5372
5380
|
tablePath !== void 0 ? `${tablePath}/row[${rowIndex}]/cell[${cellIndex}]/block[${childIndex}]` : void 0
|
|
5373
5381
|
);
|
|
5374
5382
|
cellContent.push(result.block);
|
|
@@ -5457,6 +5465,7 @@ function createTableBlock(tableIndex, table, document, cursor, counters, formatt
|
|
|
5457
5465
|
to: innerCursor,
|
|
5458
5466
|
styleId: table.styleId,
|
|
5459
5467
|
...table.sourceRef !== void 0 ? { sourceRef: table.sourceRef } : {},
|
|
5468
|
+
...tablePath !== void 0 && layoutIdentitiesByBlockPath?.get(tablePath) !== void 0 ? { layoutIdentity: layoutIdentitiesByBlockPath.get(tablePath) } : {},
|
|
5460
5469
|
gridColumns: table.gridColumns,
|
|
5461
5470
|
...gridColumnsRelative ? { gridColumnsRelative } : {},
|
|
5462
5471
|
...resolvedTable.table?.alignment ? { alignment: resolvedTable.table.alignment } : {},
|
|
@@ -5644,7 +5653,7 @@ function resolveCellBorderStyles(borders, tableBorders, position) {
|
|
|
5644
5653
|
if (left) result.borderLeft = left;
|
|
5645
5654
|
return result;
|
|
5646
5655
|
}
|
|
5647
|
-
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) {
|
|
5648
5657
|
const children = [];
|
|
5649
5658
|
const lockedFragmentIds = [];
|
|
5650
5659
|
let innerCursor = cursor;
|
|
@@ -5661,6 +5670,7 @@ function createSdtBlock(sdtIndex, block, document, cursor, counters, formattingC
|
|
|
5661
5670
|
promoteSecondaryStoryTextBoxes,
|
|
5662
5671
|
cullBuild,
|
|
5663
5672
|
editableTargetsByBlockPath,
|
|
5673
|
+
layoutIdentitiesByBlockPath,
|
|
5664
5674
|
sdtPath !== void 0 ? `${sdtPath}/block[${childIndex}]` : void 0
|
|
5665
5675
|
);
|
|
5666
5676
|
children.push(result.block);
|
|
@@ -5703,7 +5713,7 @@ function getRecursableSdtBlockedReasonCode(block) {
|
|
|
5703
5713
|
].filter(Boolean).join(" ").toLowerCase();
|
|
5704
5714
|
return searchText.includes("table of contents") || /\btoc\b/u.test(searchText) ? "workflow_preserve_only" : null;
|
|
5705
5715
|
}
|
|
5706
|
-
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) {
|
|
5707
5717
|
const themeResolver = formattingContext.theme;
|
|
5708
5718
|
const effectiveNumbering = formattingContext.resolveEffectiveParagraphNumbering(paragraph);
|
|
5709
5719
|
let resolvedNumbering = null;
|
|
@@ -5726,6 +5736,7 @@ function createParagraphBlock(paragraphIndex, paragraph, document, start, format
|
|
|
5726
5736
|
from: start,
|
|
5727
5737
|
to: start,
|
|
5728
5738
|
...editableTarget !== void 0 ? { editableTarget } : {},
|
|
5739
|
+
...layoutIdentity !== void 0 ? { layoutIdentity } : {},
|
|
5729
5740
|
...paragraph.styleId ? { styleId: paragraph.styleId } : {},
|
|
5730
5741
|
...effectiveNumbering ? { numbering: effectiveNumbering } : {},
|
|
5731
5742
|
...resolvedNumbering ? {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { gr as CellLocator, gs as TableStructureOperation, gt as applyTableStructureOperation, gu as applyTableStructureOperationForEditableTarget, gv as getTableStructureContext, gw as removeCellFromRow, gx as removeTableRowPure, gy as tableStructureActionHandleForTarget } from '../../public-types-
|
|
1
|
+
export { gr as CellLocator, gs as TableStructureOperation, gt as applyTableStructureOperation, gu as applyTableStructureOperationForEditableTarget, gv as getTableStructureContext, gw as removeCellFromRow, gx as removeTableRowPure, gy as tableStructureActionHandleForTarget } from '../../public-types-gvubspUI.cjs';
|
|
2
2
|
import '../../canonical-document-BMtONpgf.cjs';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'yjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { gr as CellLocator, gs as TableStructureOperation, gt as applyTableStructureOperation, gu as applyTableStructureOperationForEditableTarget, gv as getTableStructureContext, gw as removeCellFromRow, gx as removeTableRowPure, gy as tableStructureActionHandleForTarget } from '../../public-types-
|
|
1
|
+
export { gr as CellLocator, gs as TableStructureOperation, gt as applyTableStructureOperation, gu as applyTableStructureOperationForEditableTarget, gv as getTableStructureContext, gw as removeCellFromRow, gx as removeTableRowPure, gy as tableStructureActionHandleForTarget } from '../../public-types-DyqnxxO9.js';
|
|
2
2
|
import '../../canonical-document-BMtONpgf.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'yjs';
|
|
@@ -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";
|