@blocknote/xl-odt-exporter 0.29.0 → 0.30.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 +1 -1
- 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 -4
- package/src/odt/__snapshots__/basic/content.xml +2 -2
- package/src/odt/__snapshots__/withCustomOptions/content.xml +2 -2
- package/src/odt/defaultSchema/blocks.tsx +1 -1
- package/types/src/odt/defaultSchema/index.d.ts +8 -4
package/dist/webpack-stats.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"builtAt":
|
|
1
|
+
{"builtAt":1746802450843,"assets":[{"name":"blocknote-xl-odt-exporter.umd.cjs","size":698981},{"name":"blocknote-xl-odt-exporter.umd.cjs.map","size":747041}],"chunks":[{"id":"642be88","entry":true,"initial":true,"files":["blocknote-xl-odt-exporter.umd.cjs"],"names":["index"]}],"modules":[{"name":"./src/odt/defaultSchema/blocks.tsx","size":14213,"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":9974,"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": "AGPL-3.0 OR PROPRIETARY",
|
|
12
|
-
"version": "0.
|
|
12
|
+
"version": "0.30.0",
|
|
13
13
|
"files": [
|
|
14
14
|
"dist",
|
|
15
15
|
"types",
|
|
@@ -48,16 +48,15 @@
|
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
+
"@blocknote/core": "0.30.0",
|
|
51
52
|
"@zip.js/zip.js": "^2.7.57",
|
|
52
53
|
"buffer": "^6.0.3",
|
|
53
|
-
"image-meta": "^0.2.1"
|
|
54
|
-
"@blocknote/core": "^0.29.0"
|
|
54
|
+
"image-meta": "^0.2.1"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@testing-library/react": "^16.0.1",
|
|
58
58
|
"@types/react": "^18.0.25",
|
|
59
59
|
"@types/react-dom": "^18.0.9",
|
|
60
|
-
"prettier": "^2.7.1",
|
|
61
60
|
"rollup-plugin-webpack-stats": "^0.2.2",
|
|
62
61
|
"typescript": "^5.0.4",
|
|
63
62
|
"vite": "^5.3.4",
|
|
@@ -313,10 +313,10 @@
|
|
|
313
313
|
Open file
|
|
314
314
|
</text:p>
|
|
315
315
|
<text:p text:style-name="Standard">
|
|
316
|
-
<draw:frame draw:style-name="Frame" style:rel-height="scale" style:rel-width="
|
|
316
|
+
<draw:frame draw:style-name="Frame" style:rel-height="scale" style:rel-width="332px" svg:width="332px" svg:height="352px" text:anchor-type="as-char">
|
|
317
317
|
<draw:text-box>
|
|
318
318
|
<text:p text:style-name="Caption">
|
|
319
|
-
<draw:frame draw:style-name="Frame" style:rel-height="scale" svg:width="
|
|
319
|
+
<draw:frame draw:style-name="Frame" style:rel-height="scale" svg:width="332px" svg:height="332px" style:rel-width="100%">
|
|
320
320
|
<draw:image xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad" xlink:href="Pictures/picture-0.jpg" draw:mime-type="image/jpeg"></draw:image>
|
|
321
321
|
</draw:frame>
|
|
322
322
|
<text:line-break></text:line-break>
|
|
@@ -327,10 +327,10 @@
|
|
|
327
327
|
Open file
|
|
328
328
|
</text:p>
|
|
329
329
|
<text:p text:style-name="Standard">
|
|
330
|
-
<draw:frame draw:style-name="Frame" style:rel-height="scale" style:rel-width="
|
|
330
|
+
<draw:frame draw:style-name="Frame" style:rel-height="scale" style:rel-width="332px" svg:width="332px" svg:height="352px" text:anchor-type="as-char">
|
|
331
331
|
<draw:text-box>
|
|
332
332
|
<text:p text:style-name="Caption">
|
|
333
|
-
<draw:frame draw:style-name="Frame" style:rel-height="scale" svg:width="
|
|
333
|
+
<draw:frame draw:style-name="Frame" style:rel-height="scale" svg:width="332px" svg:height="332px" style:rel-width="100%">
|
|
334
334
|
<draw:image xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad" xlink:href="Pictures/picture-0.jpg" draw:mime-type="image/jpeg"></draw:image>
|
|
335
335
|
</draw:frame>
|
|
336
336
|
<text:line-break></text:line-break>
|
|
@@ -307,7 +307,7 @@ export const odtBlockMappingForDefaultSchema: BlockMapping<
|
|
|
307
307
|
exporter as ODTExporter<any, any, any>,
|
|
308
308
|
block.props
|
|
309
309
|
);
|
|
310
|
-
const width = block.props.previewWidth;
|
|
310
|
+
const width = block.props.previewWidth || originalDimensions.width;
|
|
311
311
|
const height =
|
|
312
312
|
(originalDimensions.height / originalDimensions.width) * width;
|
|
313
313
|
const captionHeight = 20;
|
|
@@ -330,7 +330,8 @@ export declare const odtDefaultSchemaMappings: {
|
|
|
330
330
|
default: true;
|
|
331
331
|
};
|
|
332
332
|
previewWidth: {
|
|
333
|
-
default:
|
|
333
|
+
default: undefined;
|
|
334
|
+
type: "number";
|
|
334
335
|
};
|
|
335
336
|
};
|
|
336
337
|
content: "none";
|
|
@@ -360,7 +361,8 @@ export declare const odtDefaultSchemaMappings: {
|
|
|
360
361
|
default: true;
|
|
361
362
|
};
|
|
362
363
|
previewWidth: {
|
|
363
|
-
default:
|
|
364
|
+
default: undefined;
|
|
365
|
+
type: "number";
|
|
364
366
|
};
|
|
365
367
|
};
|
|
366
368
|
content: "none";
|
|
@@ -392,7 +394,8 @@ export declare const odtDefaultSchemaMappings: {
|
|
|
392
394
|
default: true;
|
|
393
395
|
};
|
|
394
396
|
previewWidth: {
|
|
395
|
-
default:
|
|
397
|
+
default: undefined;
|
|
398
|
+
type: "number";
|
|
396
399
|
};
|
|
397
400
|
};
|
|
398
401
|
content: "none";
|
|
@@ -422,7 +425,8 @@ export declare const odtDefaultSchemaMappings: {
|
|
|
422
425
|
default: true;
|
|
423
426
|
};
|
|
424
427
|
previewWidth: {
|
|
425
|
-
default:
|
|
428
|
+
default: undefined;
|
|
429
|
+
type: "number";
|
|
426
430
|
};
|
|
427
431
|
};
|
|
428
432
|
content: "none";
|