@blocknote/xl-pdf-exporter 0.19.0 → 0.19.2

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.
Files changed (41) hide show
  1. package/dist/webpack-stats.json +1 -1
  2. package/package.json +4 -4
  3. package/types/src/pdf/defaultSchema/index.d.ts +0 -6
  4. package/types/src/Exporter.d.ts +0 -26
  5. package/types/src/context/BlockNoteContext.d.ts +0 -59
  6. package/types/src/context/BlockNoteContext.test.d.ts +0 -1
  7. package/types/src/context/ServerBlockNoteEditor.d.ts +0 -137
  8. package/types/src/context/ServerBlockNoteEditor.test.d.ts +0 -1
  9. package/types/src/context/react/ReactServer.test.d.ts +0 -2
  10. package/types/src/docx/blocks.d.ts +0 -433
  11. package/types/src/docx/defaultSchema/blocks.d.ts +0 -4
  12. package/types/src/docx/defaultSchema/index.d.ts +0 -559
  13. package/types/src/docx/defaultSchema/inlinecontent.d.ts +0 -4
  14. package/types/src/docx/defaultSchema/styles.d.ts +0 -4
  15. package/types/src/docx/docxExporter.d.ts +0 -14
  16. package/types/src/docx/docxExporter.test.d.ts +0 -1
  17. package/types/src/docx/imageUtil.d.ts +0 -4
  18. package/types/src/docx/index.d.ts +0 -2
  19. package/types/src/docx/inlinecontent.d.ts +0 -12
  20. package/types/src/docx/styles.d.ts +0 -55
  21. package/types/src/docx/util/Table.d.ts +0 -4
  22. package/types/src/docxExporter.d.ts +0 -255
  23. package/types/src/docxExporter.test.d.ts +0 -1
  24. package/types/src/mapping.d.ts +0 -29
  25. package/types/src/pdf/blocks.d.ts +0 -434
  26. package/types/src/pdf/inlinecontent.d.ts +0 -13
  27. package/types/src/pdf/styles.d.ts +0 -55
  28. package/types/src/pdf/util/loadFontDataUrl.d.ts +0 -3
  29. package/types/src/pdfExporter.d.ts +0 -256
  30. package/types/src/pdfExporter.test.d.ts +0 -1
  31. package/types/src/react-email/defaultSchema/blocks.d.ts +0 -5
  32. package/types/src/react-email/defaultSchema/index.d.ts +0 -560
  33. package/types/src/react-email/defaultSchema/inlinecontent.d.ts +0 -5
  34. package/types/src/react-email/defaultSchema/styles.d.ts +0 -4
  35. package/types/src/react-email/reactEmailExporter.d.ts +0 -13
  36. package/types/src/react-email/reactEmailExporter.test.d.ts +0 -8
  37. package/types/src/testDocument.d.ts +0 -505
  38. package/types/src/transformer.d.ts +0 -20
  39. package/types/src/util/fileUtil.d.ts +0 -22
  40. package/types/src/util/imageUtil.d.ts +0 -4
  41. package/types/src/yjs/index.d.ts +0 -2
@@ -1,256 +0,0 @@
1
- /// <reference types="react" />
2
- import { Block } from "@blocknote/core";
3
- import { Text } from "@react-pdf/renderer";
4
- export declare function createDocxExporterForDefaultSchema(): {
5
- util: {
6
- blockTransformer: (block: import("@blocknote/core").BlockFromConfig<{
7
- type: "paragraph";
8
- content: "inline";
9
- propSchema: {
10
- backgroundColor: {
11
- default: "default";
12
- };
13
- textColor: {
14
- default: "default";
15
- };
16
- textAlignment: {
17
- default: "left";
18
- values: readonly ["left", "center", "right", "justify"];
19
- };
20
- };
21
- } | {
22
- type: "heading";
23
- content: "inline";
24
- propSchema: {
25
- level: {
26
- default: number;
27
- values: readonly [1, 2, 3];
28
- };
29
- backgroundColor: {
30
- default: "default";
31
- };
32
- textColor: {
33
- default: "default";
34
- };
35
- textAlignment: {
36
- default: "left";
37
- values: readonly ["left", "center", "right", "justify"];
38
- };
39
- };
40
- } | {
41
- type: "bulletListItem";
42
- content: "inline";
43
- propSchema: {
44
- backgroundColor: {
45
- default: "default";
46
- };
47
- textColor: {
48
- default: "default";
49
- };
50
- textAlignment: {
51
- default: "left";
52
- values: readonly ["left", "center", "right", "justify"];
53
- };
54
- };
55
- } | {
56
- type: "numberedListItem";
57
- content: "inline";
58
- propSchema: {
59
- backgroundColor: {
60
- default: "default";
61
- };
62
- textColor: {
63
- default: "default";
64
- };
65
- textAlignment: {
66
- default: "left";
67
- values: readonly ["left", "center", "right", "justify"];
68
- };
69
- };
70
- } | {
71
- type: "checkListItem";
72
- content: "inline";
73
- propSchema: {
74
- checked: {
75
- default: false;
76
- };
77
- backgroundColor: {
78
- default: "default";
79
- };
80
- textColor: {
81
- default: "default";
82
- };
83
- textAlignment: {
84
- default: "left";
85
- values: readonly ["left", "center", "right", "justify"];
86
- };
87
- };
88
- } | {
89
- type: "table";
90
- content: "table";
91
- propSchema: {
92
- backgroundColor: {
93
- default: "default";
94
- };
95
- textColor: {
96
- default: "default";
97
- };
98
- textAlignment: {
99
- default: "left";
100
- values: readonly ["left", "center", "right", "justify"];
101
- };
102
- };
103
- } | {
104
- type: "file";
105
- propSchema: {
106
- backgroundColor: {
107
- default: "default";
108
- };
109
- name: {
110
- default: "";
111
- };
112
- url: {
113
- default: "";
114
- };
115
- caption: {
116
- default: "";
117
- };
118
- };
119
- content: "none";
120
- isFileBlock: true;
121
- } | {
122
- type: "image";
123
- propSchema: {
124
- textAlignment: {
125
- default: "left";
126
- values: readonly ["left", "center", "right", "justify"];
127
- };
128
- backgroundColor: {
129
- default: "default";
130
- };
131
- name: {
132
- default: "";
133
- };
134
- url: {
135
- default: "";
136
- };
137
- caption: {
138
- default: "";
139
- };
140
- showPreview: {
141
- default: true;
142
- };
143
- previewWidth: {
144
- default: number;
145
- };
146
- };
147
- content: "none";
148
- isFileBlock: true;
149
- fileBlockAccept: string[];
150
- } | {
151
- type: "video";
152
- propSchema: {
153
- textAlignment: {
154
- default: "left";
155
- values: readonly ["left", "center", "right", "justify"];
156
- };
157
- backgroundColor: {
158
- default: "default";
159
- };
160
- name: {
161
- default: "";
162
- };
163
- url: {
164
- default: "";
165
- };
166
- caption: {
167
- default: "";
168
- };
169
- showPreview: {
170
- default: true;
171
- };
172
- previewWidth: {
173
- default: number;
174
- };
175
- };
176
- content: "none";
177
- isFileBlock: true;
178
- fileBlockAccept: string[];
179
- } | {
180
- type: "audio";
181
- propSchema: {
182
- backgroundColor: {
183
- default: "default";
184
- };
185
- name: {
186
- default: "";
187
- };
188
- url: {
189
- default: "";
190
- };
191
- caption: {
192
- default: "";
193
- };
194
- showPreview: {
195
- default: true;
196
- };
197
- };
198
- content: "none";
199
- isFileBlock: true;
200
- fileBlockAccept: string[];
201
- }, import("@blocknote/core").InlineContentSchema, import("@blocknote/core").StyleSchema>) => import("react").ReactElement<Text, string | import("react").JSXElementConstructor<any>>;
202
- styledTextTransformer: (styledText: import("@blocknote/core").StyledText<import("@blocknote/core").StyleSchemaFromSpecs<{
203
- bold: {
204
- config: {
205
- type: string;
206
- propSchema: "boolean";
207
- };
208
- implementation: import("@blocknote/core").StyleImplementation;
209
- };
210
- italic: {
211
- config: {
212
- type: string;
213
- propSchema: "boolean";
214
- };
215
- implementation: import("@blocknote/core").StyleImplementation;
216
- };
217
- underline: {
218
- config: {
219
- type: string;
220
- propSchema: "boolean";
221
- };
222
- implementation: import("@blocknote/core").StyleImplementation;
223
- };
224
- strike: {
225
- config: {
226
- type: string;
227
- propSchema: "boolean";
228
- };
229
- implementation: import("@blocknote/core").StyleImplementation;
230
- };
231
- code: {
232
- config: {
233
- type: string;
234
- propSchema: "boolean";
235
- };
236
- implementation: import("@blocknote/core").StyleImplementation;
237
- };
238
- textColor: {
239
- config: {
240
- type: string;
241
- propSchema: "string";
242
- };
243
- implementation: import("@blocknote/core").StyleImplementation;
244
- };
245
- backgroundColor: {
246
- config: {
247
- type: string;
248
- propSchema: "string";
249
- };
250
- implementation: import("@blocknote/core").StyleImplementation;
251
- };
252
- }>>) => import("react/jsx-runtime").JSX.Element;
253
- inlineContentTransformer: (inlineContent: import("@blocknote/core").StyledText<import("@blocknote/core").StyleSchema> | import("@blocknote/core").Link<import("@blocknote/core").StyleSchema>) => import("react").ReactElement<Text, string | import("react").JSXElementConstructor<any>> | import("react").ReactElement<import("@react-pdf/renderer").Link, string | import("react").JSXElementConstructor<any>>;
254
- };
255
- transform: (blocks: Block[]) => React.ReactElement<Text>[];
256
- };
@@ -1 +0,0 @@
1
- export {};
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- import { DefaultBlockSchema } from "@blocknote/core";
3
- import { BlockMapping } from "@blocknote/core/src/exporter/mapping.js";
4
- import { Link } from "@react-email/components";
5
- export declare const reactEmailBlockMappingForDefaultSchema: BlockMapping<DefaultBlockSchema, any, any, React.ReactElement<any>, React.ReactElement<typeof Link> | React.ReactElement<HTMLSpanElement>>;