@blocknote/xl-odt-exporter 0.40.0 → 0.41.0
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/blocknote-xl-odt-exporter.js +28 -12
- package/dist/blocknote-xl-odt-exporter.js.map +1 -1
- package/dist/blocknote-xl-odt-exporter.umd.cjs +1 -1
- package/dist/blocknote-xl-odt-exporter.umd.cjs.map +1 -1
- package/dist/webpack-stats.json +1 -1
- package/package.json +3 -3
- package/src/odt/__snapshots__/basic/content.xml +4 -0
- package/src/odt/__snapshots__/withCustomOptions/content.xml +4 -0
- package/src/odt/defaultSchema/blocks.tsx +18 -0
package/dist/webpack-stats.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"builtAt":
|
|
1
|
+
{"builtAt":1759917920424,"assets":[{"name":"blocknote-xl-odt-exporter.umd.cjs","size":700486},{"name":"blocknote-xl-odt-exporter.umd.cjs.map","size":752291}],"chunks":[{"id":"642be88","entry":true,"initial":true,"files":["blocknote-xl-odt-exporter.umd.cjs"],"names":["index"]}],"modules":[{"name":"./src/odt/defaultSchema/blocks.tsx","size":16712,"chunks":["642be88"]},{"name":"./src/odt/defaultSchema/inlineContent.tsx","size":533,"chunks":["642be88"]},{"name":"./src/odt/defaultSchema/styles.ts","size":963,"chunks":["642be88"]},{"name":"./src/odt/defaultSchema/index.ts","size":199,"chunks":["642be88"]},{"name":"../../shared/util/fileUtil.ts","size":214,"chunks":["642be88"]},{"name":"../../shared/util/imageUtil.ts","size":592,"chunks":["642be88"]},{"name":"./src/odt/template/styles.xml?raw","size":76781,"chunks":["642be88"]},{"name":"./src/odt/odtExporter.tsx","size":10335,"chunks":["642be88"]},{"name":"./src/index.ts","size":0,"chunks":["642be88"]},{"name":"../../shared/assets/fonts/inter/Inter_18pt-Regular.ttf","size":456958,"chunks":["642be88"]},{"name":"../../shared/assets/fonts/GeistMono-Regular.ttf","size":155049,"chunks":["642be88"]}]}
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"directory": "packages/xl-odt-exporter"
|
|
10
10
|
},
|
|
11
11
|
"license": "GPL-3.0 OR PROPRIETARY",
|
|
12
|
-
"version": "0.
|
|
12
|
+
"version": "0.41.0",
|
|
13
13
|
"files": [
|
|
14
14
|
"dist",
|
|
15
15
|
"types",
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@blocknote/core": "0.
|
|
53
|
-
"@blocknote/xl-multi-column": "0.
|
|
52
|
+
"@blocknote/core": "0.41.0",
|
|
53
|
+
"@blocknote/xl-multi-column": "0.41.0",
|
|
54
54
|
"@zip.js/zip.js": "^2.7.57",
|
|
55
55
|
"buffer": "^6.0.3",
|
|
56
56
|
"image-meta": "^0.2.1"
|
|
@@ -92,6 +92,9 @@
|
|
|
92
92
|
<style:style style:name="BN_T25" style:family="text">
|
|
93
93
|
<style:text-properties fo:font-weight="bold"></style:text-properties>
|
|
94
94
|
</style:style>
|
|
95
|
+
<style:style style:family="paragraph" style:name="BN_S26" style:parent-style-name="Standard">
|
|
96
|
+
<style:paragraph-properties fo:border-top="1pt solid #cccccc" fo:margin-top="11pt" fo:margin-bottom="12pt" fo:padding-top="0pt" fo:padding-bottom="0pt"></style:paragraph-properties>
|
|
97
|
+
</style:style>
|
|
95
98
|
</office:automatic-styles>
|
|
96
99
|
<office:body>
|
|
97
100
|
<office:text>
|
|
@@ -443,6 +446,7 @@
|
|
|
443
446
|
<text:line-break></text:line-break>
|
|
444
447
|
};
|
|
445
448
|
</text:p>
|
|
449
|
+
<text:p text:style-name="BN_S26"></text:p>
|
|
446
450
|
</office:text>
|
|
447
451
|
</office:body>
|
|
448
452
|
</office:document-content>
|
|
@@ -92,6 +92,9 @@
|
|
|
92
92
|
<style:style style:name="BN_T25" style:family="text">
|
|
93
93
|
<style:text-properties fo:font-weight="bold"></style:text-properties>
|
|
94
94
|
</style:style>
|
|
95
|
+
<style:style style:family="paragraph" style:name="BN_S26" style:parent-style-name="Standard">
|
|
96
|
+
<style:paragraph-properties fo:border-top="1pt solid #cccccc" fo:margin-top="11pt" fo:margin-bottom="12pt" fo:padding-top="0pt" fo:padding-bottom="0pt"></style:paragraph-properties>
|
|
97
|
+
</style:style>
|
|
95
98
|
</office:automatic-styles>
|
|
96
99
|
<office:master-styles>
|
|
97
100
|
<style:master-page style:name="Standard" style:page-layout-name="Mpm1" draw:style-name="Mdp1">
|
|
@@ -457,6 +460,7 @@
|
|
|
457
460
|
<text:line-break></text:line-break>
|
|
458
461
|
};
|
|
459
462
|
</text:p>
|
|
463
|
+
<text:p text:style-name="BN_S26"></text:p>
|
|
460
464
|
</office:text>
|
|
461
465
|
</office:body>
|
|
462
466
|
</office:document-content>
|
|
@@ -313,6 +313,24 @@ export const odtBlockMappingForDefaultSchema: BlockMapping<
|
|
|
313
313
|
return <text:p text:style-name="PageBreak" />;
|
|
314
314
|
},
|
|
315
315
|
|
|
316
|
+
divider: (block, exporter) => {
|
|
317
|
+
const styleName = createParagraphStyle(
|
|
318
|
+
exporter as ODTExporter<any, any, any>,
|
|
319
|
+
block.props,
|
|
320
|
+
"Standard",
|
|
321
|
+
{},
|
|
322
|
+
{
|
|
323
|
+
"fo:border-top": "1pt solid #cccccc",
|
|
324
|
+
"fo:margin-top": "11pt",
|
|
325
|
+
"fo:margin-bottom": "12pt",
|
|
326
|
+
"fo:padding-top": "0pt",
|
|
327
|
+
"fo:padding-bottom": "0pt",
|
|
328
|
+
},
|
|
329
|
+
);
|
|
330
|
+
|
|
331
|
+
return <text:p text:style-name={styleName} />;
|
|
332
|
+
},
|
|
333
|
+
|
|
316
334
|
column: (_block, exporter, _nestingLevel, _numberedListIndex, children) => {
|
|
317
335
|
const ex = exporter as ODTExporter<any, any, any>;
|
|
318
336
|
const style = ex.registerStyle((name) => (
|