Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
93 changes: 32 additions & 61 deletions packages/xl-docx-exporter/src/docx/__snapshots__/basic/document.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@
<w:document mc:Ignorable="w14 w15 wp14" xmlns:wpc="http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:wp14="http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:wpg="http://schemas.microsoft.com/office/word/2010/wordprocessingGroup" xmlns:wpi="http://schemas.microsoft.com/office/word/2010/wordprocessingInk" xmlns:wne="http://schemas.microsoft.com/office/word/2006/wordml" xmlns:wps="http://schemas.microsoft.com/office/word/2010/wordprocessingShape" xmlns:cx="http://schemas.microsoft.com/office/drawing/2014/chartex" xmlns:cx1="http://schemas.microsoft.com/office/drawing/2015/9/8/chartex" xmlns:cx2="http://schemas.microsoft.com/office/drawing/2015/10/21/chartex" xmlns:cx3="http://schemas.microsoft.com/office/drawing/2016/5/9/chartex" xmlns:cx4="http://schemas.microsoft.com/office/drawing/2016/5/10/chartex" xmlns:cx5="http://schemas.microsoft.com/office/drawing/2016/5/11/chartex" xmlns:cx6="http://schemas.microsoft.com/office/drawing/2016/5/12/chartex" xmlns:cx7="http://schemas.microsoft.com/office/drawing/2016/5/13/chartex" xmlns:cx8="http://schemas.microsoft.com/office/drawing/2016/5/14/chartex" xmlns:aink="http://schemas.microsoft.com/office/drawing/2016/ink" xmlns:am3d="http://schemas.microsoft.com/office/drawing/2017/model3d" xmlns:w16cex="http://schemas.microsoft.com/office/word/2018/wordml/cex" xmlns:w16cid="http://schemas.microsoft.com/office/word/2016/wordml/cid" xmlns:w16="http://schemas.microsoft.com/office/word/2018/wordml" xmlns:w16sdtdh="http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash" xmlns:w16se="http://schemas.microsoft.com/office/word/2015/wordml/symex">
<w:body>
<w:p>
<w:pPr>
<w:pStyle w:val="Normal"/>
<w:rPr>
<w:rFonts w:ascii="Inter" w:cs="Inter" w:eastAsia="Inter" w:hAnsi="Inter"/>
</w:rPr>
</w:pPr>
<w:r>
<w:rPr>
<w:i/>
Expand All @@ -26,12 +20,6 @@
</w:r>
</w:p>
<w:p>
<w:pPr>
<w:pStyle w:val="Normal"/>
<w:rPr>
<w:rFonts w:ascii="Inter" w:cs="Inter" w:eastAsia="Inter" w:hAnsi="Inter"/>
</w:rPr>
</w:pPr>
<w:r>
<w:tab/>
</w:r>
Expand All @@ -40,12 +28,6 @@
</w:r>
</w:p>
<w:p>
<w:pPr>
<w:pStyle w:val="Normal"/>
<w:rPr>
<w:rFonts w:ascii="Inter" w:cs="Inter" w:eastAsia="Inter" w:hAnsi="Inter"/>
</w:rPr>
</w:pPr>
<w:r>
<w:tab/>
</w:r>
Expand All @@ -58,11 +40,7 @@
</w:p>
<w:p>
<w:pPr>
<w:pStyle w:val="Normal"/>
<w:shd w:color="fbe4e4" w:val="solid"/>
<w:rPr>
<w:rFonts w:ascii="Inter" w:cs="Inter" w:eastAsia="Inter" w:hAnsi="Inter"/>
</w:rPr>
<w:shd w:fill="fbe4e4" w:val="clear"/>
</w:pPr>
<w:r>
<w:rPr>
Expand All @@ -73,12 +51,6 @@
</w:r>
</w:p>
<w:p>
<w:pPr>
<w:pStyle w:val="Normal"/>
<w:rPr>
<w:rFonts w:ascii="Inter" w:cs="Inter" w:eastAsia="Inter" w:hAnsi="Inter"/>
</w:rPr>
</w:pPr>
<w:r>
<w:t xml:space="preserve">Paragraph</w:t>
</w:r>
Expand All @@ -102,11 +74,7 @@
</w:p>
<w:p>
<w:pPr>
<w:pStyle w:val="Normal"/>
<w:jc w:val="distribute"/>
<w:rPr>
<w:rFonts w:ascii="Inter" w:cs="Inter" w:eastAsia="Inter" w:hAnsi="Inter"/>
</w:rPr>
</w:pPr>
<w:r>
<w:t xml:space="preserve">justified paragraph. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</w:t>
Expand Down Expand Up @@ -209,7 +177,7 @@
<w:ilvl w:val="2"/>
<w:numId w:val="3"/>
</w:numPr>
<w:shd w:color="fbe4e4" w:val="solid"/>
<w:shd w:fill="fbe4e4" w:val="clear"/>
<w:jc w:val="right"/>
<w:rPr>
<w:color w:val="0b6e99"/>
Expand All @@ -226,7 +194,7 @@
<w:ilvl w:val="2"/>
<w:numId w:val="3"/>
</w:numPr>
<w:shd w:color="fbe4e4" w:val="solid"/>
<w:shd w:fill="fbe4e4" w:val="clear"/>
<w:jc w:val="center"/>
<w:rPr>
<w:color w:val="0b6e99"/>
Expand Down Expand Up @@ -291,7 +259,7 @@
<w:tr>
<w:tc>
<w:tcPr>
<w:tcW w:type="dxa" w:w="150pt"/>
<w:tcW w:type="dxa" w:w="3000"/>
<w:gridSpan w:val="1"/>
</w:tcPr>
<w:p>
Expand Down Expand Up @@ -324,7 +292,7 @@
<w:tr>
<w:tc>
<w:tcPr>
<w:tcW w:type="dxa" w:w="150pt"/>
<w:tcW w:type="dxa" w:w="3000"/>
<w:gridSpan w:val="1"/>
</w:tcPr>
<w:p>
Expand Down Expand Up @@ -357,7 +325,7 @@
<w:tr>
<w:tc>
<w:tcPr>
<w:tcW w:type="dxa" w:w="150pt"/>
<w:tcW w:type="dxa" w:w="3000"/>
<w:gridSpan w:val="1"/>
</w:tcPr>
<w:p>
Expand Down Expand Up @@ -529,14 +497,7 @@
<w:t xml:space="preserve">From https://interactive-examples.mdn.mozilla.net/media/cc0-audio/t-rex-roar.mp3</w:t>
</w:r>
</w:p>
<w:p>
<w:pPr>
<w:pStyle w:val="Normal"/>
<w:rPr>
<w:rFonts w:ascii="Inter" w:cs="Inter" w:eastAsia="Inter" w:hAnsi="Inter"/>
</w:rPr>
</w:pPr>
</w:p>
<w:p/>
<w:p>
<w:hyperlink w:history="1" r:id="FAKE-ID">
<w:r>
Expand All @@ -556,12 +517,6 @@
</w:r>
</w:p>
<w:p>
<w:pPr>
<w:pStyle w:val="Normal"/>
<w:rPr>
<w:rFonts w:ascii="Inter" w:cs="Inter" w:eastAsia="Inter" w:hAnsi="Inter"/>
</w:rPr>
</w:pPr>
<w:r>
<w:rPr>
<w:b/>
Expand All @@ -571,20 +526,14 @@
</w:r>
</w:p>
<w:p>
<w:pPr>
<w:pStyle w:val="Normal"/>
<w:rPr>
<w:rFonts w:ascii="Inter" w:cs="Inter" w:eastAsia="Inter" w:hAnsi="Inter"/>
</w:rPr>
</w:pPr>
<w:r>
<w:rPr>
<w:b/>
<w:bCs/>
<w:i/>
<w:iCs/>
<w:color w:val="e03e3e"/>
<w:shd w:fill="ddebf1"/>
<w:shd w:fill="ddebf1" w:val="clear"/>
</w:rPr>
<w:t xml:space="preserve">Styled Text</w:t>
</w:r>
Expand Down Expand Up @@ -721,8 +670,7 @@
</w:tbl>
<w:p>
<w:pPr>
<w:pStyle w:val="Codeblock"/>
<w:shd w:fill="161616" w:color="161616" w:val="solid"/>
<w:pStyle w:val="SourceCode"/>
</w:pPr>
<w:r>
<w:t xml:space="preserve">const helloWorld = (message) =&gt; {</w:t>
Expand All @@ -736,13 +684,36 @@
<w:t xml:space="preserve">};</w:t>
</w:r>
</w:p>
<w:p>
<w:r>
<w:rPr>
<w:b/>
<w:bCs/>
</w:rPr>
<w:t xml:space="preserve">Some inline code: </w:t>
</w:r>
<w:r>
<w:rPr>
<w:rStyle w:val="VerbatimChar"/>
</w:rPr>
<w:t xml:space="preserve">var foo = &apos;bar&apos;;</w:t>
</w:r>
</w:p>
<w:p>
<w:pPr>
<w:pBdr>
<w:top w:val="single" w:color="auto" w:sz="1" w:space="1"/>
</w:pBdr>
</w:pPr>
</w:p>
<w:p>
<w:pPr>
<w:pStyle w:val="BlockQuote"/>
</w:pPr>
<w:r>
<w:t xml:space="preserve">All those moments will be lost in time, like tears in rain.</w:t>
</w:r>
</w:p>
<w:sectPr>
<w:pgSz w:w="11906" w:h="16838" w:orient="portrait"/>
<w:pgMar w:top="1440" w:right="1440" w:bottom="1440" w:left="1440" w:header="708" w:footer="708" w:gutter="0"/>
Expand Down
31 changes: 28 additions & 3 deletions packages/xl-docx-exporter/src/docx/__snapshots__/basic/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@
<w:spacing w:before="45" w:after="45" w:line="360" w:lineRule="auto"/>
</w:pPr>
<w:rPr>
<w:rFonts w:ascii="Inter" w:hAnsi="Inter" w:cs="Times New Roman (Body CS)"/>
<w:rFonts w:ascii="Inter" w:cs="Inter" w:eastAsia="Inter" w:hAnsi="Inter"/>
</w:rPr>
</w:style>
<w:style w:type="paragraph" w:styleId="Heading1">
Expand Down Expand Up @@ -597,6 +597,13 @@
<w:uiPriority w:val="1"/>
<w:unhideWhenUsed/>
</w:style>
<w:style w:type="character" w:customStyle="1" w:styleId="VerbatimChar">
<w:name w:val="Verbatim Char"/>
<w:basedOn w:val="DefaultParagraphFont"/>
<w:rPr>
<w:rFonts w:ascii="GeistMono" w:cs="GeistMono" w:eastAsia="GeistMono" w:hAnsi="GeistMono"/>
</w:rPr>
</w:style>
<w:style w:type="table" w:default="1" w:styleId="TableNormal">
<w:name w:val="Normal Table"/>
<w:uiPriority w:val="99"/>
Expand Down Expand Up @@ -948,13 +955,31 @@
<w:szCs w:val="18"/>
</w:rPr>
</w:style>
<w:style w:type="paragraph" w:styleId="Codeblock">
<w:name w:val="Codeblock"/>
<w:style w:type="paragraph" w:customStyle="1" w:styleId="SourceCode">
<w:name w:val="Source Code"/>
<w:basedOn w:val="Normal"/>
<w:link w:val="VerbatimChar"/>
<w:pPr>
<w:shd w:val="solid" w:color="161616" w:fill="161616"/>
</w:pPr>
<w:rPr>
<w:noProof/>
<w:wordWrap w:val="off"/>
<w:color w:val="ffffff"/>
<w:rFonts w:ascii="GeistMono" w:cs="GeistMono" w:eastAsia="GeistMono" w:hAnsi="GeistMono"/>
</w:rPr>
</w:style>
<w:style w:type="paragraph" w:styleId="BlockQuote">
<w:name w:val="Block Quote"/>
<w:basedOn w:val="Normal"/>
<w:next w:val="Normal"/>
<w:uiPriority w:val="9"/>
<w:unhideWhenUsed/>
<w:qFormat/>
<w:pPr>
<w:pBdr>
<w:left w:val="single" w:color="7D797A" w:sz="8" w:space="100"/>
</w:pBdr>
</w:pPr>
</w:style>
</w:styles>
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,6 @@
<w:tcW w:type="pct" w:w="26.666666666666668%"/>
</w:tcPr>
<w:p>
<w:pPr>
<w:pStyle w:val="Normal"/>
<w:rPr>
<w:rFonts w:ascii="Inter" w:cs="Inter" w:eastAsia="Inter" w:hAnsi="Inter"/>
</w:rPr>
</w:pPr>
<w:r>
<w:t xml:space="preserve">This paragraph is in a column!</w:t>
</w:r>
Expand All @@ -54,12 +48,6 @@
<w:tcW w:type="pct" w:w="26.666666666666668%"/>
</w:tcPr>
<w:p>
<w:pPr>
<w:pStyle w:val="Normal"/>
<w:rPr>
<w:rFonts w:ascii="Inter" w:cs="Inter" w:eastAsia="Inter" w:hAnsi="Inter"/>
</w:rPr>
</w:pPr>
<w:r>
<w:t xml:space="preserve">You can have multiple blocks in a column too</w:t>
</w:r>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@
<w:spacing w:before="45" w:after="45" w:line="360" w:lineRule="auto"/>
</w:pPr>
<w:rPr>
<w:rFonts w:ascii="Inter" w:hAnsi="Inter" w:cs="Times New Roman (Body CS)"/>
<w:rFonts w:ascii="Inter" w:cs="Inter" w:eastAsia="Inter" w:hAnsi="Inter"/>
</w:rPr>
</w:style>
<w:style w:type="paragraph" w:styleId="Heading1">
Expand Down Expand Up @@ -597,6 +597,13 @@
<w:uiPriority w:val="1"/>
<w:unhideWhenUsed/>
</w:style>
<w:style w:type="character" w:customStyle="1" w:styleId="VerbatimChar">
<w:name w:val="Verbatim Char"/>
<w:basedOn w:val="DefaultParagraphFont"/>
<w:rPr>
<w:rFonts w:ascii="GeistMono" w:cs="GeistMono" w:eastAsia="GeistMono" w:hAnsi="GeistMono"/>
</w:rPr>
</w:style>
<w:style w:type="table" w:default="1" w:styleId="TableNormal">
<w:name w:val="Normal Table"/>
<w:uiPriority w:val="99"/>
Expand Down Expand Up @@ -948,13 +955,31 @@
<w:szCs w:val="18"/>
</w:rPr>
</w:style>
<w:style w:type="paragraph" w:styleId="Codeblock">
<w:name w:val="Codeblock"/>
<w:style w:type="paragraph" w:customStyle="1" w:styleId="SourceCode">
<w:name w:val="Source Code"/>
<w:basedOn w:val="Normal"/>
<w:link w:val="VerbatimChar"/>
<w:pPr>
<w:shd w:val="solid" w:color="161616" w:fill="161616"/>
</w:pPr>
<w:rPr>
<w:noProof/>
<w:wordWrap w:val="off"/>
<w:color w:val="ffffff"/>
<w:rFonts w:ascii="GeistMono" w:cs="GeistMono" w:eastAsia="GeistMono" w:hAnsi="GeistMono"/>
</w:rPr>
</w:style>
<w:style w:type="paragraph" w:styleId="BlockQuote">
<w:name w:val="Block Quote"/>
<w:basedOn w:val="Normal"/>
<w:next w:val="Normal"/>
<w:uiPriority w:val="9"/>
<w:unhideWhenUsed/>
<w:qFormat/>
<w:pPr>
<w:pBdr>
<w:left w:val="single" w:color="7D797A" w:sz="8" w:space="100"/>
</w:pBdr>
</w:pPr>
</w:style>
</w:styles>
Loading
Loading