@blocknote/xl-odt-exporter 0.31.3 → 0.32.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.
@@ -1 +1 @@
1
- {"builtAt":1750242517531,"assets":[{"name":"blocknote-xl-odt-exporter.umd.cjs","size":698981},{"name":"blocknote-xl-odt-exporter.umd.cjs.map","size":747283}],"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"]}]}
1
+ {"builtAt":1750769767348,"assets":[{"name":"blocknote-xl-odt-exporter.umd.cjs","size":699103},{"name":"blocknote-xl-odt-exporter.umd.cjs.map","size":747579}],"chunks":[{"id":"642be88","entry":true,"initial":true,"files":["blocknote-xl-odt-exporter.umd.cjs"],"names":["index"]}],"modules":[{"name":"./src/odt/defaultSchema/blocks.tsx","size":14408,"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.31.3",
12
+ "version": "0.32.0",
13
13
  "files": [
14
14
  "dist",
15
15
  "types",
@@ -49,7 +49,7 @@
49
49
  }
50
50
  },
51
51
  "dependencies": {
52
- "@blocknote/core": "0.31.3",
52
+ "@blocknote/core": "0.32.0",
53
53
  "@zip.js/zip.js": "^2.7.57",
54
54
  "buffer": "^6.0.3",
55
55
  "image-meta": "^0.2.1"
@@ -241,6 +241,13 @@ export const odtBlockMappingForDefaultSchema: BlockMapping<
241
241
  *
242
242
  * (LibreOffice does nicely wrap the list items in the same list element)
243
243
  */
244
+ toggleListItem: (block, exporter) => (
245
+ <text:p text:style-name="Standard">
246
+ {"> "}
247
+ {exporter.transformInlineContent(block.content)}
248
+ </text:p>
249
+ ),
250
+
244
251
  bulletListItem: (block, exporter, nestingLevel) => {
245
252
  const styleName = createParagraphStyle(
246
253
  exporter as ODTExporter<any, any, any>,
@@ -41,7 +41,10 @@ export declare const odtDefaultSchemaMappings: {
41
41
  propSchema: {
42
42
  level: {
43
43
  default: number;
44
- values: readonly [1, 2, 3];
44
+ values: readonly [1, 2, 3, 4, 5, 6];
45
+ };
46
+ isToggleable: {
47
+ default: false;
45
48
  };
46
49
  backgroundColor: {
47
50
  default: "default";
@@ -61,7 +64,10 @@ export declare const odtDefaultSchemaMappings: {
61
64
  propSchema: {
62
65
  level: {
63
66
  default: number;
64
- values: readonly [1, 2, 3];
67
+ values: readonly [1, 2, 3, 4, 5, 6];
68
+ };
69
+ isToggleable: {
70
+ default: false;
65
71
  };
66
72
  backgroundColor: {
67
73
  default: "default";
@@ -130,6 +136,40 @@ export declare const odtDefaultSchemaMappings: {
130
136
  };
131
137
  }, any, import("@blocknote/core").InlineContentSchema, import("@blocknote/core").StyleSchema>;
132
138
  };
139
+ toggleListItem: {
140
+ config: {
141
+ type: "toggleListItem";
142
+ content: "inline";
143
+ propSchema: {
144
+ backgroundColor: {
145
+ default: "default";
146
+ };
147
+ textColor: {
148
+ default: "default";
149
+ };
150
+ textAlignment: {
151
+ default: "left";
152
+ values: readonly ["left", "center", "right", "justify"];
153
+ };
154
+ };
155
+ };
156
+ implementation: import("@blocknote/core").TiptapBlockImplementation<{
157
+ type: "toggleListItem";
158
+ content: "inline";
159
+ propSchema: {
160
+ backgroundColor: {
161
+ default: "default";
162
+ };
163
+ textColor: {
164
+ default: "default";
165
+ };
166
+ textAlignment: {
167
+ default: "left";
168
+ values: readonly ["left", "center", "right", "justify"];
169
+ };
170
+ };
171
+ }, any, import("@blocknote/core").InlineContentSchema, import("@blocknote/core").StyleSchema>;
172
+ };
133
173
  bulletListItem: {
134
174
  config: {
135
175
  type: "bulletListItem";