@adobe/helix-md2docx 1.0.1
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/CHANGELOG.md +6 -0
- package/CODE_OF_CONDUCT.md +74 -0
- package/CONTRIBUTING.md +74 -0
- package/LICENSE.txt +264 -0
- package/README.md +33 -0
- package/package.json +70 -0
- package/src/cli/convert2docx.js +96 -0
- package/src/index.d.ts +13 -0
- package/src/index.js +13 -0
- package/src/mdast2docx/all.js +31 -0
- package/src/mdast2docx/default-numbering.js +79 -0
- package/src/mdast2docx/handlers/break.js +22 -0
- package/src/mdast2docx/handlers/characterStyle.js +29 -0
- package/src/mdast2docx/handlers/code.js +27 -0
- package/src/mdast2docx/handlers/heading.js +32 -0
- package/src/mdast2docx/handlers/html.js +35 -0
- package/src/mdast2docx/handlers/image.js +90 -0
- package/src/mdast2docx/handlers/index.js +56 -0
- package/src/mdast2docx/handlers/inlineCode.js +21 -0
- package/src/mdast2docx/handlers/link.js +63 -0
- package/src/mdast2docx/handlers/list.js +39 -0
- package/src/mdast2docx/handlers/listItem.js +16 -0
- package/src/mdast2docx/handlers/paragraph.js +52 -0
- package/src/mdast2docx/handlers/paragraphStyle.js +21 -0
- package/src/mdast2docx/handlers/root.js +16 -0
- package/src/mdast2docx/handlers/table.js +54 -0
- package/src/mdast2docx/handlers/tableCell.js +51 -0
- package/src/mdast2docx/handlers/tableRow.js +28 -0
- package/src/mdast2docx/handlers/text.js +24 -0
- package/src/mdast2docx/handlers/thematicBreak.js +24 -0
- package/src/mdast2docx/hast-table-handler.js +145 -0
- package/src/mdast2docx/index.d.ts +21 -0
- package/src/mdast2docx/index.js +88 -0
- package/src/mdast2docx/mdast-download-images.js +92 -0
- package/src/mdast2docx/mdast-sanitize-html.js +112 -0
- package/src/mdast2docx/template/[Content_Types].xml +41 -0
- package/src/mdast2docx/template/docProps/app.xml +20 -0
- package/src/mdast2docx/template/docProps/core.xml +12 -0
- package/src/mdast2docx/template/word/_rels/document.xml.rels +51 -0
- package/src/mdast2docx/template/word/_rels/settings.xml.rels +7 -0
- package/src/mdast2docx/template/word/document.xml +1116 -0
- package/src/mdast2docx/template/word/endnotes.xml +56 -0
- package/src/mdast2docx/template/word/fontTable.xml +58 -0
- package/src/mdast2docx/template/word/footer1.xml +39 -0
- package/src/mdast2docx/template/word/footer2.xml +39 -0
- package/src/mdast2docx/template/word/footer3.xml +39 -0
- package/src/mdast2docx/template/word/footnotes.xml +56 -0
- package/src/mdast2docx/template/word/header1.xml +39 -0
- package/src/mdast2docx/template/word/header2.xml +39 -0
- package/src/mdast2docx/template/word/header3.xml +39 -0
- package/src/mdast2docx/template/word/media/image1.png +0 -0
- package/src/mdast2docx/template/word/numbering.xml +277 -0
- package/src/mdast2docx/template/word/settings.xml +91 -0
- package/src/mdast2docx/template/word/styles.xml +1084 -0
- package/src/mdast2docx/template/word/theme/theme1.xml +296 -0
- package/src/mdast2docx/template/word/webSettings.xml +40 -0
- package/src/mdast2docx/template.docx +0 -0
- package/src/mdast2docx/utils.js +22 -0
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
2
|
+
<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme">
|
|
3
|
+
<a:themeElements>
|
|
4
|
+
<a:clrScheme name="Office">
|
|
5
|
+
<a:dk1>
|
|
6
|
+
<a:sysClr val="windowText" lastClr="000000"/>
|
|
7
|
+
</a:dk1>
|
|
8
|
+
<a:lt1>
|
|
9
|
+
<a:sysClr val="window" lastClr="FFFFFF"/>
|
|
10
|
+
</a:lt1>
|
|
11
|
+
<a:dk2>
|
|
12
|
+
<a:srgbClr val="44546A"/>
|
|
13
|
+
</a:dk2>
|
|
14
|
+
<a:lt2>
|
|
15
|
+
<a:srgbClr val="E7E6E6"/>
|
|
16
|
+
</a:lt2>
|
|
17
|
+
<a:accent1>
|
|
18
|
+
<a:srgbClr val="4472C4"/>
|
|
19
|
+
</a:accent1>
|
|
20
|
+
<a:accent2>
|
|
21
|
+
<a:srgbClr val="ED7D31"/>
|
|
22
|
+
</a:accent2>
|
|
23
|
+
<a:accent3>
|
|
24
|
+
<a:srgbClr val="A5A5A5"/>
|
|
25
|
+
</a:accent3>
|
|
26
|
+
<a:accent4>
|
|
27
|
+
<a:srgbClr val="FFC000"/>
|
|
28
|
+
</a:accent4>
|
|
29
|
+
<a:accent5>
|
|
30
|
+
<a:srgbClr val="5B9BD5"/>
|
|
31
|
+
</a:accent5>
|
|
32
|
+
<a:accent6>
|
|
33
|
+
<a:srgbClr val="70AD47"/>
|
|
34
|
+
</a:accent6>
|
|
35
|
+
<a:hlink>
|
|
36
|
+
<a:srgbClr val="0563C1"/>
|
|
37
|
+
</a:hlink>
|
|
38
|
+
<a:folHlink>
|
|
39
|
+
<a:srgbClr val="954F72"/>
|
|
40
|
+
</a:folHlink>
|
|
41
|
+
</a:clrScheme>
|
|
42
|
+
<a:fontScheme name="Office">
|
|
43
|
+
<a:majorFont>
|
|
44
|
+
<a:latin typeface="Calibri Light" panose="020F0302020204030204"/>
|
|
45
|
+
<a:ea typeface=""/>
|
|
46
|
+
<a:cs typeface=""/>
|
|
47
|
+
<a:font script="Jpan" typeface="游ゴシック Light"/>
|
|
48
|
+
<a:font script="Hang" typeface="맑은 고딕"/>
|
|
49
|
+
<a:font script="Hans" typeface="等线 Light"/>
|
|
50
|
+
<a:font script="Hant" typeface="新細明體"/>
|
|
51
|
+
<a:font script="Arab" typeface="Times New Roman"/>
|
|
52
|
+
<a:font script="Hebr" typeface="Times New Roman"/>
|
|
53
|
+
<a:font script="Thai" typeface="Angsana New"/>
|
|
54
|
+
<a:font script="Ethi" typeface="Nyala"/>
|
|
55
|
+
<a:font script="Beng" typeface="Vrinda"/>
|
|
56
|
+
<a:font script="Gujr" typeface="Shruti"/>
|
|
57
|
+
<a:font script="Khmr" typeface="MoolBoran"/>
|
|
58
|
+
<a:font script="Knda" typeface="Tunga"/>
|
|
59
|
+
<a:font script="Guru" typeface="Raavi"/>
|
|
60
|
+
<a:font script="Cans" typeface="Euphemia"/>
|
|
61
|
+
<a:font script="Cher" typeface="Plantagenet Cherokee"/>
|
|
62
|
+
<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>
|
|
63
|
+
<a:font script="Tibt" typeface="Microsoft Himalaya"/>
|
|
64
|
+
<a:font script="Thaa" typeface="MV Boli"/>
|
|
65
|
+
<a:font script="Deva" typeface="Mangal"/>
|
|
66
|
+
<a:font script="Telu" typeface="Gautami"/>
|
|
67
|
+
<a:font script="Taml" typeface="Latha"/>
|
|
68
|
+
<a:font script="Syrc" typeface="Estrangelo Edessa"/>
|
|
69
|
+
<a:font script="Orya" typeface="Kalinga"/>
|
|
70
|
+
<a:font script="Mlym" typeface="Kartika"/>
|
|
71
|
+
<a:font script="Laoo" typeface="DokChampa"/>
|
|
72
|
+
<a:font script="Sinh" typeface="Iskoola Pota"/>
|
|
73
|
+
<a:font script="Mong" typeface="Mongolian Baiti"/>
|
|
74
|
+
<a:font script="Viet" typeface="Times New Roman"/>
|
|
75
|
+
<a:font script="Uigh" typeface="Microsoft Uighur"/>
|
|
76
|
+
<a:font script="Geor" typeface="Sylfaen"/>
|
|
77
|
+
<a:font script="Armn" typeface="Arial"/>
|
|
78
|
+
<a:font script="Bugi" typeface="Leelawadee UI"/>
|
|
79
|
+
<a:font script="Bopo" typeface="Microsoft JhengHei"/>
|
|
80
|
+
<a:font script="Java" typeface="Javanese Text"/>
|
|
81
|
+
<a:font script="Lisu" typeface="Segoe UI"/>
|
|
82
|
+
<a:font script="Mymr" typeface="Myanmar Text"/>
|
|
83
|
+
<a:font script="Nkoo" typeface="Ebrima"/>
|
|
84
|
+
<a:font script="Olck" typeface="Nirmala UI"/>
|
|
85
|
+
<a:font script="Osma" typeface="Ebrima"/>
|
|
86
|
+
<a:font script="Phag" typeface="Phagspa"/>
|
|
87
|
+
<a:font script="Syrn" typeface="Estrangelo Edessa"/>
|
|
88
|
+
<a:font script="Syrj" typeface="Estrangelo Edessa"/>
|
|
89
|
+
<a:font script="Syre" typeface="Estrangelo Edessa"/>
|
|
90
|
+
<a:font script="Sora" typeface="Nirmala UI"/>
|
|
91
|
+
<a:font script="Tale" typeface="Microsoft Tai Le"/>
|
|
92
|
+
<a:font script="Talu" typeface="Microsoft New Tai Lue"/>
|
|
93
|
+
<a:font script="Tfng" typeface="Ebrima"/>
|
|
94
|
+
</a:majorFont>
|
|
95
|
+
<a:minorFont>
|
|
96
|
+
<a:latin typeface="Calibri" panose="020F0502020204030204"/>
|
|
97
|
+
<a:ea typeface=""/>
|
|
98
|
+
<a:cs typeface=""/>
|
|
99
|
+
<a:font script="Jpan" typeface="游明朝"/>
|
|
100
|
+
<a:font script="Hang" typeface="맑은 고딕"/>
|
|
101
|
+
<a:font script="Hans" typeface="等线"/>
|
|
102
|
+
<a:font script="Hant" typeface="新細明體"/>
|
|
103
|
+
<a:font script="Arab" typeface="Arial"/>
|
|
104
|
+
<a:font script="Hebr" typeface="Arial"/>
|
|
105
|
+
<a:font script="Thai" typeface="Cordia New"/>
|
|
106
|
+
<a:font script="Ethi" typeface="Nyala"/>
|
|
107
|
+
<a:font script="Beng" typeface="Vrinda"/>
|
|
108
|
+
<a:font script="Gujr" typeface="Shruti"/>
|
|
109
|
+
<a:font script="Khmr" typeface="DaunPenh"/>
|
|
110
|
+
<a:font script="Knda" typeface="Tunga"/>
|
|
111
|
+
<a:font script="Guru" typeface="Raavi"/>
|
|
112
|
+
<a:font script="Cans" typeface="Euphemia"/>
|
|
113
|
+
<a:font script="Cher" typeface="Plantagenet Cherokee"/>
|
|
114
|
+
<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>
|
|
115
|
+
<a:font script="Tibt" typeface="Microsoft Himalaya"/>
|
|
116
|
+
<a:font script="Thaa" typeface="MV Boli"/>
|
|
117
|
+
<a:font script="Deva" typeface="Mangal"/>
|
|
118
|
+
<a:font script="Telu" typeface="Gautami"/>
|
|
119
|
+
<a:font script="Taml" typeface="Latha"/>
|
|
120
|
+
<a:font script="Syrc" typeface="Estrangelo Edessa"/>
|
|
121
|
+
<a:font script="Orya" typeface="Kalinga"/>
|
|
122
|
+
<a:font script="Mlym" typeface="Kartika"/>
|
|
123
|
+
<a:font script="Laoo" typeface="DokChampa"/>
|
|
124
|
+
<a:font script="Sinh" typeface="Iskoola Pota"/>
|
|
125
|
+
<a:font script="Mong" typeface="Mongolian Baiti"/>
|
|
126
|
+
<a:font script="Viet" typeface="Arial"/>
|
|
127
|
+
<a:font script="Uigh" typeface="Microsoft Uighur"/>
|
|
128
|
+
<a:font script="Geor" typeface="Sylfaen"/>
|
|
129
|
+
<a:font script="Armn" typeface="Arial"/>
|
|
130
|
+
<a:font script="Bugi" typeface="Leelawadee UI"/>
|
|
131
|
+
<a:font script="Bopo" typeface="Microsoft JhengHei"/>
|
|
132
|
+
<a:font script="Java" typeface="Javanese Text"/>
|
|
133
|
+
<a:font script="Lisu" typeface="Segoe UI"/>
|
|
134
|
+
<a:font script="Mymr" typeface="Myanmar Text"/>
|
|
135
|
+
<a:font script="Nkoo" typeface="Ebrima"/>
|
|
136
|
+
<a:font script="Olck" typeface="Nirmala UI"/>
|
|
137
|
+
<a:font script="Osma" typeface="Ebrima"/>
|
|
138
|
+
<a:font script="Phag" typeface="Phagspa"/>
|
|
139
|
+
<a:font script="Syrn" typeface="Estrangelo Edessa"/>
|
|
140
|
+
<a:font script="Syrj" typeface="Estrangelo Edessa"/>
|
|
141
|
+
<a:font script="Syre" typeface="Estrangelo Edessa"/>
|
|
142
|
+
<a:font script="Sora" typeface="Nirmala UI"/>
|
|
143
|
+
<a:font script="Tale" typeface="Microsoft Tai Le"/>
|
|
144
|
+
<a:font script="Talu" typeface="Microsoft New Tai Lue"/>
|
|
145
|
+
<a:font script="Tfng" typeface="Ebrima"/>
|
|
146
|
+
</a:minorFont>
|
|
147
|
+
</a:fontScheme>
|
|
148
|
+
<a:fmtScheme name="Office">
|
|
149
|
+
<a:fillStyleLst>
|
|
150
|
+
<a:solidFill>
|
|
151
|
+
<a:schemeClr val="phClr"/>
|
|
152
|
+
</a:solidFill>
|
|
153
|
+
<a:gradFill rotWithShape="1">
|
|
154
|
+
<a:gsLst>
|
|
155
|
+
<a:gs pos="0">
|
|
156
|
+
<a:schemeClr val="phClr">
|
|
157
|
+
<a:lumMod val="110000"/>
|
|
158
|
+
<a:satMod val="105000"/>
|
|
159
|
+
<a:tint val="67000"/>
|
|
160
|
+
</a:schemeClr>
|
|
161
|
+
</a:gs>
|
|
162
|
+
<a:gs pos="50000">
|
|
163
|
+
<a:schemeClr val="phClr">
|
|
164
|
+
<a:lumMod val="105000"/>
|
|
165
|
+
<a:satMod val="103000"/>
|
|
166
|
+
<a:tint val="73000"/>
|
|
167
|
+
</a:schemeClr>
|
|
168
|
+
</a:gs>
|
|
169
|
+
<a:gs pos="100000">
|
|
170
|
+
<a:schemeClr val="phClr">
|
|
171
|
+
<a:lumMod val="105000"/>
|
|
172
|
+
<a:satMod val="109000"/>
|
|
173
|
+
<a:tint val="81000"/>
|
|
174
|
+
</a:schemeClr>
|
|
175
|
+
</a:gs>
|
|
176
|
+
</a:gsLst>
|
|
177
|
+
<a:lin ang="5400000" scaled="0"/>
|
|
178
|
+
</a:gradFill>
|
|
179
|
+
<a:gradFill rotWithShape="1">
|
|
180
|
+
<a:gsLst>
|
|
181
|
+
<a:gs pos="0">
|
|
182
|
+
<a:schemeClr val="phClr">
|
|
183
|
+
<a:satMod val="103000"/>
|
|
184
|
+
<a:lumMod val="102000"/>
|
|
185
|
+
<a:tint val="94000"/>
|
|
186
|
+
</a:schemeClr>
|
|
187
|
+
</a:gs>
|
|
188
|
+
<a:gs pos="50000">
|
|
189
|
+
<a:schemeClr val="phClr">
|
|
190
|
+
<a:satMod val="110000"/>
|
|
191
|
+
<a:lumMod val="100000"/>
|
|
192
|
+
<a:shade val="100000"/>
|
|
193
|
+
</a:schemeClr>
|
|
194
|
+
</a:gs>
|
|
195
|
+
<a:gs pos="100000">
|
|
196
|
+
<a:schemeClr val="phClr">
|
|
197
|
+
<a:lumMod val="99000"/>
|
|
198
|
+
<a:satMod val="120000"/>
|
|
199
|
+
<a:shade val="78000"/>
|
|
200
|
+
</a:schemeClr>
|
|
201
|
+
</a:gs>
|
|
202
|
+
</a:gsLst>
|
|
203
|
+
<a:lin ang="5400000" scaled="0"/>
|
|
204
|
+
</a:gradFill>
|
|
205
|
+
</a:fillStyleLst>
|
|
206
|
+
<a:lnStyleLst>
|
|
207
|
+
<a:ln w="6350" cap="flat" cmpd="sng" algn="ctr">
|
|
208
|
+
<a:solidFill>
|
|
209
|
+
<a:schemeClr val="phClr"/>
|
|
210
|
+
</a:solidFill>
|
|
211
|
+
<a:prstDash val="solid"/>
|
|
212
|
+
<a:miter lim="800000"/>
|
|
213
|
+
</a:ln>
|
|
214
|
+
<a:ln w="12700" cap="flat" cmpd="sng" algn="ctr">
|
|
215
|
+
<a:solidFill>
|
|
216
|
+
<a:schemeClr val="phClr"/>
|
|
217
|
+
</a:solidFill>
|
|
218
|
+
<a:prstDash val="solid"/>
|
|
219
|
+
<a:miter lim="800000"/>
|
|
220
|
+
</a:ln>
|
|
221
|
+
<a:ln w="19050" cap="flat" cmpd="sng" algn="ctr">
|
|
222
|
+
<a:solidFill>
|
|
223
|
+
<a:schemeClr val="phClr"/>
|
|
224
|
+
</a:solidFill>
|
|
225
|
+
<a:prstDash val="solid"/>
|
|
226
|
+
<a:miter lim="800000"/>
|
|
227
|
+
</a:ln>
|
|
228
|
+
</a:lnStyleLst>
|
|
229
|
+
<a:effectStyleLst>
|
|
230
|
+
<a:effectStyle>
|
|
231
|
+
<a:effectLst/>
|
|
232
|
+
</a:effectStyle>
|
|
233
|
+
<a:effectStyle>
|
|
234
|
+
<a:effectLst/>
|
|
235
|
+
</a:effectStyle>
|
|
236
|
+
<a:effectStyle>
|
|
237
|
+
<a:effectLst>
|
|
238
|
+
<a:outerShdw blurRad="57150" dist="19050" dir="5400000" algn="ctr"
|
|
239
|
+
rotWithShape="0">
|
|
240
|
+
<a:srgbClr val="000000">
|
|
241
|
+
<a:alpha val="63000"/>
|
|
242
|
+
</a:srgbClr>
|
|
243
|
+
</a:outerShdw>
|
|
244
|
+
</a:effectLst>
|
|
245
|
+
</a:effectStyle>
|
|
246
|
+
</a:effectStyleLst>
|
|
247
|
+
<a:bgFillStyleLst>
|
|
248
|
+
<a:solidFill>
|
|
249
|
+
<a:schemeClr val="phClr"/>
|
|
250
|
+
</a:solidFill>
|
|
251
|
+
<a:solidFill>
|
|
252
|
+
<a:schemeClr val="phClr">
|
|
253
|
+
<a:tint val="95000"/>
|
|
254
|
+
<a:satMod val="170000"/>
|
|
255
|
+
</a:schemeClr>
|
|
256
|
+
</a:solidFill>
|
|
257
|
+
<a:gradFill rotWithShape="1">
|
|
258
|
+
<a:gsLst>
|
|
259
|
+
<a:gs pos="0">
|
|
260
|
+
<a:schemeClr val="phClr">
|
|
261
|
+
<a:tint val="93000"/>
|
|
262
|
+
<a:satMod val="150000"/>
|
|
263
|
+
<a:shade val="98000"/>
|
|
264
|
+
<a:lumMod val="102000"/>
|
|
265
|
+
</a:schemeClr>
|
|
266
|
+
</a:gs>
|
|
267
|
+
<a:gs pos="50000">
|
|
268
|
+
<a:schemeClr val="phClr">
|
|
269
|
+
<a:tint val="98000"/>
|
|
270
|
+
<a:satMod val="130000"/>
|
|
271
|
+
<a:shade val="90000"/>
|
|
272
|
+
<a:lumMod val="103000"/>
|
|
273
|
+
</a:schemeClr>
|
|
274
|
+
</a:gs>
|
|
275
|
+
<a:gs pos="100000">
|
|
276
|
+
<a:schemeClr val="phClr">
|
|
277
|
+
<a:shade val="63000"/>
|
|
278
|
+
<a:satMod val="120000"/>
|
|
279
|
+
</a:schemeClr>
|
|
280
|
+
</a:gs>
|
|
281
|
+
</a:gsLst>
|
|
282
|
+
<a:lin ang="5400000" scaled="0"/>
|
|
283
|
+
</a:gradFill>
|
|
284
|
+
</a:bgFillStyleLst>
|
|
285
|
+
</a:fmtScheme>
|
|
286
|
+
</a:themeElements>
|
|
287
|
+
<a:objectDefaults/>
|
|
288
|
+
<a:extraClrSchemeLst/>
|
|
289
|
+
<a:extLst>
|
|
290
|
+
<a:ext uri="{05A4C25C-085E-4340-85A3-A5531E510DB2}">
|
|
291
|
+
<thm15:themeFamily xmlns:thm15="http://schemas.microsoft.com/office/thememl/2012/main"
|
|
292
|
+
name="Office Theme" id="{62F939B6-93AF-4DB8-9C6B-D6C7DFDC589F}"
|
|
293
|
+
vid="{4A3C46E8-61CC-4603-A589-7422A47A8E4A}"/>
|
|
294
|
+
</a:ext>
|
|
295
|
+
</a:extLst>
|
|
296
|
+
</a:theme>
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
2
|
+
<w:webSettings xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
3
|
+
xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"
|
|
4
|
+
xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main"
|
|
5
|
+
xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml"
|
|
6
|
+
xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml"
|
|
7
|
+
xmlns:w16cex="http://schemas.microsoft.com/office/word/2018/wordml/cex"
|
|
8
|
+
xmlns:w16cid="http://schemas.microsoft.com/office/word/2016/wordml/cid"
|
|
9
|
+
xmlns:w16="http://schemas.microsoft.com/office/word/2018/wordml"
|
|
10
|
+
xmlns:w16se="http://schemas.microsoft.com/office/word/2015/wordml/symex"
|
|
11
|
+
mc:Ignorable="w14 w15 w16se w16cid w16 w16cex">
|
|
12
|
+
<w:divs>
|
|
13
|
+
<w:div w:id="546988763">
|
|
14
|
+
<w:bodyDiv w:val="1"/>
|
|
15
|
+
<w:marLeft w:val="0"/>
|
|
16
|
+
<w:marRight w:val="0"/>
|
|
17
|
+
<w:marTop w:val="0"/>
|
|
18
|
+
<w:marBottom w:val="0"/>
|
|
19
|
+
<w:divBdr>
|
|
20
|
+
<w:top w:val="none" w:sz="0" w:space="0" w:color="auto"/>
|
|
21
|
+
<w:left w:val="none" w:sz="0" w:space="0" w:color="auto"/>
|
|
22
|
+
<w:bottom w:val="none" w:sz="0" w:space="0" w:color="auto"/>
|
|
23
|
+
<w:right w:val="none" w:sz="0" w:space="0" w:color="auto"/>
|
|
24
|
+
</w:divBdr>
|
|
25
|
+
</w:div>
|
|
26
|
+
<w:div w:id="1306471761">
|
|
27
|
+
<w:bodyDiv w:val="1"/>
|
|
28
|
+
<w:marLeft w:val="0"/>
|
|
29
|
+
<w:marRight w:val="0"/>
|
|
30
|
+
<w:marTop w:val="0"/>
|
|
31
|
+
<w:marBottom w:val="0"/>
|
|
32
|
+
<w:divBdr>
|
|
33
|
+
<w:top w:val="none" w:sz="0" w:space="0" w:color="auto"/>
|
|
34
|
+
<w:left w:val="none" w:sz="0" w:space="0" w:color="auto"/>
|
|
35
|
+
<w:bottom w:val="none" w:sz="0" w:space="0" w:color="auto"/>
|
|
36
|
+
<w:right w:val="none" w:sz="0" w:space="0" w:color="auto"/>
|
|
37
|
+
</w:divBdr>
|
|
38
|
+
</w:div>
|
|
39
|
+
</w:divs>
|
|
40
|
+
</w:webSettings>
|
|
Binary file
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2021 Adobe. All rights reserved.
|
|
3
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
*
|
|
7
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
+
* governing permissions and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
// eslint-disable-next-line import/prefer-default-export
|
|
14
|
+
export function findXMLComponent(root, path) {
|
|
15
|
+
const segs = path.split('/');
|
|
16
|
+
let comp = root;
|
|
17
|
+
while (comp && segs.length) {
|
|
18
|
+
const key = segs.shift();
|
|
19
|
+
comp = comp.root.find((c) => c.rootKey === key);
|
|
20
|
+
}
|
|
21
|
+
return comp;
|
|
22
|
+
}
|