@blocknote/xl-pdf-exporter 0.22.0 → 0.23.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,592 +1,935 @@
1
- <div>
2
- <document>
3
- <page
4
- dpi="100"
5
- style="padding-top: 35px; padding-bottom: 65px; font-family: Inter; font-size: 12px; line-height: 1.5;"
6
- >
7
- <view>
8
- <view
9
- style="text-align: left;"
10
- >
11
- <text>
12
- <text
13
- style="font-style: italic;"
14
- >
15
- Welcome to this
16
- </text>
17
- <text
18
- style="font-style: italic; font-weight: bold;"
19
- >
20
- demo 🙌!
21
- </text>
22
- </text>
23
- </view>
24
- <view
25
- style="margin-left: 18px;"
26
- >
27
- <view
28
- style="text-align: left;"
1
+ <DOCUMENT>
2
+ <PAGE
3
+ dpi={100}
4
+ size="A4"
5
+ style={{
6
+ fontFamily: 'Inter',
7
+ fontSize: 12,
8
+ lineHeight: 1.5,
9
+ paddingBottom: 65,
10
+ paddingHorizontal: 35,
11
+ paddingTop: 35
12
+ }}
13
+ >
14
+ <React.Fragment key=".1:0">
15
+ <VIEW
16
+ style={{
17
+ alignItems: undefined,
18
+ backgroundColor: undefined,
19
+ color: undefined,
20
+ paddingVertical: 2.25,
21
+ textAlign: 'left'
22
+ }}
23
+ >
24
+ <TEXT>
25
+ <TEXT
26
+ style={{
27
+ fontStyle: 'italic'
28
+ }}
29
29
  >
30
- <text>
31
- <text>
32
- Hello World nested
33
- </text>
34
- </text>
35
- </view>
36
- <view
37
- style="margin-left: 18px;"
30
+ Welcome to this
31
+ </TEXT>
32
+ <TEXT
33
+ style={{
34
+ fontStyle: 'italic',
35
+ fontWeight: 'bold'
36
+ }}
38
37
  >
39
- <view
40
- style="text-align: left;"
41
- >
42
- <text>
43
- <text>
44
- Hello World double nested
45
- </text>
46
- </text>
47
- </view>
48
- </view>
49
- </view>
50
- <view
51
- style="text-align: left; background-color: rgb(251, 228, 228);"
52
- >
53
- <text>
54
- <text
55
- style="font-weight: bold;"
56
- >
57
- This paragraph has a background color
58
- </text>
59
- </text>
60
- </view>
61
- <view
62
- style="text-align: left;"
63
- >
64
- <text>
65
- <text>
66
- Paragraph
67
- </text>
68
- </text>
69
- </view>
70
- <view
71
- style="text-align: left;"
72
- >
73
- <text
74
- style="font-size: 24px; font-weight: 700;"
38
+ demo 🙌!
39
+ </TEXT>
40
+ </TEXT>
41
+ </VIEW>
42
+ <VIEW
43
+ style={{
44
+ marginLeft: 18
45
+ }}
46
+ >
47
+ <React.Fragment key=".0">
48
+ <VIEW
49
+ style={{
50
+ alignItems: undefined,
51
+ backgroundColor: undefined,
52
+ color: undefined,
53
+ paddingVertical: 2.25,
54
+ textAlign: 'left'
55
+ }}
75
56
  >
76
- <text>
77
- Heading
78
- </text>
79
- </text>
80
- </view>
81
- <view
82
- style="text-align: right; align-items: flex-end;"
83
- >
84
- <text
85
- style="font-size: 24px; font-weight: 700;"
57
+ <TEXT>
58
+ <TEXT style={{}}>
59
+ Hello World nested
60
+ </TEXT>
61
+ </TEXT>
62
+ </VIEW>
63
+ <VIEW
64
+ style={{
65
+ marginLeft: 18
66
+ }}
86
67
  >
87
- <text>
88
- Heading right
89
- </text>
90
- </text>
91
- </view>
92
- <view
93
- style="text-align: justify;"
94
- >
95
- <text>
96
- <text>
97
- justified paragraph. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
98
- </text>
99
- </text>
100
- </view>
101
- <view>
102
- <text>
103
- codeBlock not implemented
104
- </text>
105
- </view>
106
- <view
107
- style="text-align: left;"
68
+ <React.Fragment key=".0">
69
+ <VIEW
70
+ style={{
71
+ alignItems: undefined,
72
+ backgroundColor: undefined,
73
+ color: undefined,
74
+ paddingVertical: 2.25,
75
+ textAlign: 'left'
76
+ }}
77
+ >
78
+ <TEXT>
79
+ <TEXT style={{}}>
80
+ Hello World double nested
81
+ </TEXT>
82
+ </TEXT>
83
+ </VIEW>
84
+ </React.Fragment>
85
+ </VIEW>
86
+ </React.Fragment>
87
+ </VIEW>
88
+ </React.Fragment>
89
+ <React.Fragment key=".1:1">
90
+ <VIEW
91
+ style={{
92
+ alignItems: undefined,
93
+ backgroundColor: '#fbe4e4',
94
+ color: undefined,
95
+ paddingVertical: 2.25,
96
+ textAlign: 'left'
97
+ }}
98
+ >
99
+ <TEXT>
100
+ <TEXT
101
+ style={{
102
+ fontWeight: 'bold'
103
+ }}
104
+ >
105
+ This paragraph has a background color
106
+ </TEXT>
107
+ </TEXT>
108
+ </VIEW>
109
+ </React.Fragment>
110
+ <React.Fragment key=".1:2">
111
+ <VIEW
112
+ style={{
113
+ alignItems: undefined,
114
+ backgroundColor: undefined,
115
+ color: undefined,
116
+ paddingVertical: 2.25,
117
+ textAlign: 'left'
118
+ }}
119
+ >
120
+ <TEXT>
121
+ <TEXT style={{}}>
122
+ Paragraph
123
+ </TEXT>
124
+ </TEXT>
125
+ </VIEW>
126
+ </React.Fragment>
127
+ <React.Fragment key=".1:3">
128
+ <VIEW
129
+ style={{
130
+ alignItems: undefined,
131
+ backgroundColor: undefined,
132
+ color: undefined,
133
+ paddingVertical: 2.25,
134
+ textAlign: 'left'
135
+ }}
136
+ >
137
+ <TEXT
138
+ style={{
139
+ fontSize: 24,
140
+ fontWeight: 700
141
+ }}
108
142
  >
109
- <view>
110
- <view>
111
- <text>
112
-
113
- </text>
114
- </view>
115
- <text>
116
- <text>
117
- Bullet List Item. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
118
- </text>
119
- </text>
120
- </view>
121
- </view>
122
- <view
123
- style="margin-left: 18px;"
143
+ <TEXT style={{}}>
144
+ Heading
145
+ </TEXT>
146
+ </TEXT>
147
+ </VIEW>
148
+ </React.Fragment>
149
+ <React.Fragment key=".1:4">
150
+ <VIEW
151
+ style={{
152
+ alignItems: 'flex-end',
153
+ backgroundColor: undefined,
154
+ color: undefined,
155
+ paddingVertical: 2.25,
156
+ textAlign: 'right'
157
+ }}
158
+ >
159
+ <TEXT
160
+ style={{
161
+ fontSize: 24,
162
+ fontWeight: 700
163
+ }}
124
164
  >
125
- <view
126
- style="text-align: left;"
165
+ <TEXT style={{}}>
166
+ Heading right
167
+ </TEXT>
168
+ </TEXT>
169
+ </VIEW>
170
+ </React.Fragment>
171
+ <React.Fragment key=".1:5">
172
+ <VIEW
173
+ style={{
174
+ alignItems: undefined,
175
+ backgroundColor: undefined,
176
+ color: undefined,
177
+ paddingVertical: 2.25,
178
+ textAlign: 'justify'
179
+ }}
180
+ >
181
+ <TEXT>
182
+ <TEXT style={{}}>
183
+ justified paragraph. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
184
+ </TEXT>
185
+ </TEXT>
186
+ </VIEW>
187
+ </React.Fragment>
188
+ <VIEW break />
189
+ <React.Fragment key=".1:7">
190
+ <VIEW
191
+ style={{
192
+ alignItems: undefined,
193
+ backgroundColor: undefined,
194
+ color: undefined,
195
+ paddingVertical: 2.25,
196
+ textAlign: 'left'
197
+ }}
198
+ >
199
+ <ListItem listMarker="•">
200
+ <TEXT>
201
+ <TEXT style={{}}>
202
+ Bullet List Item. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
203
+ </TEXT>
204
+ </TEXT>
205
+ </ListItem>
206
+ </VIEW>
207
+ <VIEW
208
+ style={{
209
+ marginLeft: 18
210
+ }}
211
+ >
212
+ <React.Fragment key=".0">
213
+ <VIEW
214
+ style={{
215
+ alignItems: undefined,
216
+ backgroundColor: undefined,
217
+ color: undefined,
218
+ paddingVertical: 2.25,
219
+ textAlign: 'left'
220
+ }}
127
221
  >
128
- <view>
129
- <view>
130
- <text>
131
-
132
- </text>
133
- </view>
134
- <text>
135
- <text>
222
+ <ListItem listMarker="•">
223
+ <TEXT>
224
+ <TEXT style={{}}>
136
225
  Bullet List Item. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
137
- </text>
138
- </text>
139
- </view>
140
- </view>
141
- <view
142
- style="text-align: right; align-items: flex-end;"
226
+ </TEXT>
227
+ </TEXT>
228
+ </ListItem>
229
+ </VIEW>
230
+ </React.Fragment>
231
+ <React.Fragment key=".1">
232
+ <VIEW
233
+ style={{
234
+ alignItems: 'flex-end',
235
+ backgroundColor: undefined,
236
+ color: undefined,
237
+ paddingVertical: 2.25,
238
+ textAlign: 'right'
239
+ }}
143
240
  >
144
- <view>
145
- <view>
146
- <text>
147
-
148
- </text>
149
- </view>
150
- <text>
151
- <text>
241
+ <ListItem listMarker="•">
242
+ <TEXT>
243
+ <TEXT style={{}}>
152
244
  Bullet List Item right. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
153
- </text>
154
- </text>
155
- </view>
156
- </view>
157
- <view
158
- style="text-align: left;"
245
+ </TEXT>
246
+ </TEXT>
247
+ </ListItem>
248
+ </VIEW>
249
+ </React.Fragment>
250
+ <React.Fragment key=".2">
251
+ <VIEW
252
+ style={{
253
+ alignItems: undefined,
254
+ backgroundColor: undefined,
255
+ color: undefined,
256
+ paddingVertical: 2.25,
257
+ textAlign: 'left'
258
+ }}
159
259
  >
160
- <view>
161
- <view>
162
- <text>
163
- 1.
164
- </text>
165
- </view>
166
- <text>
167
- <text>
260
+ <ListItem listMarker="1.">
261
+ <TEXT>
262
+ <TEXT style={{}}>
168
263
  Numbered List Item 1
169
- </text>
170
- </text>
171
- </view>
172
- </view>
173
- <view
174
- style="text-align: left;"
264
+ </TEXT>
265
+ </TEXT>
266
+ </ListItem>
267
+ </VIEW>
268
+ </React.Fragment>
269
+ <React.Fragment key=".3">
270
+ <VIEW
271
+ style={{
272
+ alignItems: undefined,
273
+ backgroundColor: undefined,
274
+ color: undefined,
275
+ paddingVertical: 2.25,
276
+ textAlign: 'left'
277
+ }}
175
278
  >
176
- <view>
177
- <view>
178
- <text>
179
- 2.
180
- </text>
181
- </view>
182
- <text>
183
- <text>
279
+ <ListItem listMarker="2.">
280
+ <TEXT>
281
+ <TEXT style={{}}>
184
282
  Numbered List Item 2
185
- </text>
186
- </text>
187
- </view>
188
- </view>
189
- <view
190
- style="margin-left: 18px;"
283
+ </TEXT>
284
+ </TEXT>
285
+ </ListItem>
286
+ </VIEW>
287
+ <VIEW
288
+ style={{
289
+ marginLeft: 18
290
+ }}
191
291
  >
192
- <view
193
- style="text-align: left;"
194
- >
195
- <view>
196
- <view>
197
- <text>
198
- 1.
199
- </text>
200
- </view>
201
- <text>
202
- <text>
203
- Numbered List Item Nested 1
204
- </text>
205
- </text>
206
- </view>
207
- </view>
208
- <view
209
- style="text-align: left;"
210
- >
211
- <view>
212
- <view>
213
- <text>
214
- 2.
215
- </text>
216
- </view>
217
- <text>
218
- <text>
219
- Numbered List Item Nested 2
220
- </text>
221
- </text>
222
- </view>
223
- </view>
224
- <view
225
- style="text-align: right; background-color: rgb(251, 228, 228); color: rgb(11, 110, 153); align-items: flex-end;"
226
- >
227
- <view>
228
- <view>
229
- <text>
230
- 3.
231
- </text>
232
- </view>
233
- <text>
234
- <text>
235
- Numbered List Item Nested funky right
236
- </text>
237
- </text>
238
- </view>
239
- </view>
240
- <view
241
- style="text-align: center; background-color: rgb(251, 228, 228); color: rgb(11, 110, 153); align-items: center;"
242
- >
243
- <view>
244
- <view>
245
- <text>
246
- 4.
247
- </text>
248
- </view>
249
- <text>
250
- <text>
251
- Numbered List Item Nested funky center
252
- </text>
253
- </text>
254
- </view>
255
- </view>
256
- </view>
257
- </view>
258
- <view
259
- style="text-align: left;"
260
- >
261
- <view>
262
- <view>
263
- <text>
264
- 1.
265
- </text>
266
- </view>
267
- <text>
268
- <text>
269
- Numbered List Item
270
- </text>
271
- </text>
272
- </view>
273
- </view>
274
- <view
275
- style="text-align: left;"
276
- >
277
- <view>
278
- <view>
279
- <svg
280
- fill="undefined"
281
- height="12"
282
- style="margin-top: 2px;"
283
- viewbox="0 -960 960 960"
284
- width="12"
292
+ <React.Fragment key=".0">
293
+ <VIEW
294
+ style={{
295
+ alignItems: undefined,
296
+ backgroundColor: undefined,
297
+ color: undefined,
298
+ paddingVertical: 2.25,
299
+ textAlign: 'left'
300
+ }}
285
301
  >
286
- <path
287
- d="M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Zm0-80h560v-560H200v560Z"
288
- />
289
- </svg>
290
- </view>
291
- <text>
292
- <text>
293
- Check List Item
294
- </text>
295
- </text>
296
- </view>
297
- </view>
298
- <view>
299
- <view>
300
- <view>
301
- <view>
302
- <text>
303
- Wide Cell
304
- </text>
305
- </view>
306
- <view>
307
- <text>
308
- Table Cell
309
- </text>
310
- </view>
311
- <view>
312
- <text>
313
- Table Cell
314
- </text>
315
- </view>
316
- </view>
317
- <view>
318
- <view>
319
- <text>
320
- Wide Cell
321
- </text>
322
- </view>
323
- <view>
324
- <text>
325
- Table Cell
326
- </text>
327
- </view>
328
- <view>
329
- <text>
330
- Table Cell
331
- </text>
332
- </view>
333
- </view>
334
- <view>
335
- <view>
336
- <text>
337
- Wide Cell
338
- </text>
339
- </view>
340
- <view>
341
- <text>
342
- Table Cell
343
- </text>
344
- </view>
345
- <view>
346
- <text>
347
- Table Cell
348
- </text>
349
- </view>
350
- </view>
351
- </view>
352
- </view>
353
- <view>
354
- <view>
355
- <link
356
- src=""
357
- >
358
- <view
359
- style="display: flex; gap: 6px; flex-direction: row;"
302
+ <ListItem listMarker="1.">
303
+ <TEXT>
304
+ <TEXT style={{}}>
305
+ Numbered List Item Nested 1
306
+ </TEXT>
307
+ </TEXT>
308
+ </ListItem>
309
+ </VIEW>
310
+ </React.Fragment>
311
+ <React.Fragment key=".1">
312
+ <VIEW
313
+ style={{
314
+ alignItems: undefined,
315
+ backgroundColor: undefined,
316
+ color: undefined,
317
+ paddingVertical: 2.25,
318
+ textAlign: 'left'
319
+ }}
360
320
  >
361
- <svg
362
- fill="currentColor"
363
- height="16"
364
- viewbox="0 0 24 24"
365
- width="16"
366
- >
367
- <path
368
- d="M3 8L9.00319 2H19.9978C20.5513 2 21 2.45531 21 2.9918V21.0082C21 21.556 20.5551 22 20.0066 22H3.9934C3.44476 22 3 21.5501 3 20.9932V8ZM10 4V9H5V20H19V4H10Z"
369
- />
370
- </svg>
371
- <text>
372
- Open file
373
- </text>
374
- </view>
375
- </link>
376
- </view>
377
- </view>
378
- <view
379
- style="text-align: left;"
380
- >
381
- <view>
382
- <image
383
- src="[object Blob]"
384
- style="width: 384px;"
385
- />
386
- <text
387
- style="width: 384px; font-size: 9.600000000000001px;"
388
- >
389
- From https://interactive-examples.mdn.mozilla.net/media/cc0-images/grapefruit-slice-332-332.jpg
390
- </text>
391
- </view>
392
- </view>
393
- <view
394
- style="text-align: right; align-items: flex-end;"
395
- >
396
- <view>
397
- <image
398
- src="[object Blob]"
399
- style="width: 150px;"
400
- />
401
- </view>
402
- </view>
403
- <view
404
- style="text-align: left;"
405
- >
406
- <view>
407
- <link
408
- src="https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.webm"
409
- >
410
- <view
411
- style="display: flex; gap: 6px; flex-direction: row;"
321
+ <ListItem listMarker="2.">
322
+ <TEXT>
323
+ <TEXT style={{}}>
324
+ Numbered List Item Nested 2
325
+ </TEXT>
326
+ </TEXT>
327
+ </ListItem>
328
+ </VIEW>
329
+ </React.Fragment>
330
+ <React.Fragment key=".2">
331
+ <VIEW
332
+ style={{
333
+ alignItems: 'flex-end',
334
+ backgroundColor: '#fbe4e4',
335
+ color: '#0b6e99',
336
+ paddingVertical: 2.25,
337
+ textAlign: 'right'
338
+ }}
412
339
  >
413
- <svg
414
- fill="currentColor"
415
- height="14"
416
- viewbox="0 0 24 24"
417
- width="14"
418
- >
419
- <path
420
- d="M2 3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44495 22 3.9934V20.0066C22 20.5552 21.5447 21 21.0082 21H2.9918C2.44405 21 2 20.5551 2 20.0066V3.9934ZM8 5V19H16V5H8ZM4 5V7H6V5H4ZM18 5V7H20V5H18ZM4 9V11H6V9H4ZM18 9V11H20V9H18ZM4 13V15H6V13H4ZM18 13V15H20V13H18ZM4 17V19H6V17H4ZM18 17V19H20V17H18Z"
421
- />
422
- </svg>
423
- <text>
424
- Open video file
425
- </text>
426
- </view>
427
- </link>
428
- <text
429
- style="width: 384px; font-size: 9.600000000000001px;"
430
- >
431
- From https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.webm
432
- </text>
433
- </view>
434
- </view>
435
- <view>
436
- <view>
437
- <link
438
- src="https://interactive-examples.mdn.mozilla.net/media/cc0-audio/t-rex-roar.mp3"
439
- >
440
- <view
441
- style="display: flex; gap: 6px; flex-direction: row;"
340
+ <ListItem listMarker="3.">
341
+ <TEXT>
342
+ <TEXT style={{}}>
343
+ Numbered List Item Nested funky right
344
+ </TEXT>
345
+ </TEXT>
346
+ </ListItem>
347
+ </VIEW>
348
+ </React.Fragment>
349
+ <React.Fragment key=".3">
350
+ <VIEW
351
+ style={{
352
+ alignItems: 'center',
353
+ backgroundColor: '#fbe4e4',
354
+ color: '#0b6e99',
355
+ paddingVertical: 2.25,
356
+ textAlign: 'center'
357
+ }}
442
358
  >
443
- <svg
444
- fill="currentColor"
445
- height="14"
446
- viewbox="0 0 24 24"
447
- width="14"
448
- >
449
- <path
450
- d="M2 16.0001H5.88889L11.1834 20.3319C11.2727 20.405 11.3846 20.4449 11.5 20.4449C11.7761 20.4449 12 20.2211 12 19.9449V4.05519C12 3.93977 11.9601 3.8279 11.887 3.73857C11.7121 3.52485 11.3971 3.49335 11.1834 3.66821L5.88889 8.00007H2C1.44772 8.00007 1 8.44778 1 9.00007V15.0001C1 15.5524 1.44772 16.0001 2 16.0001ZM23 12C23 15.292 21.5539 18.2463 19.2622 20.2622L17.8445 18.8444C19.7758 17.1937 21 14.7398 21 12C21 9.26016 19.7758 6.80629 17.8445 5.15557L19.2622 3.73779C21.5539 5.75368 23 8.70795 23 12ZM18 12C18 10.0883 17.106 8.38548 15.7133 7.28673L14.2842 8.71584C15.3213 9.43855 16 10.64 16 12C16 13.36 15.3213 14.5614 14.2842 15.2841L15.7133 16.7132C17.106 15.6145 18 13.9116 18 12Z"
451
- />
452
- </svg>
453
- <text>
454
- Open audio file
455
- </text>
456
- </view>
457
- </link>
458
- <text
459
- style="font-size: 9.600000000000001px;"
359
+ <ListItem listMarker="4.">
360
+ <TEXT>
361
+ <TEXT style={{}}>
362
+ Numbered List Item Nested funky center
363
+ </TEXT>
364
+ </TEXT>
365
+ </ListItem>
366
+ </VIEW>
367
+ </React.Fragment>
368
+ </VIEW>
369
+ </React.Fragment>
370
+ </VIEW>
371
+ </React.Fragment>
372
+ <React.Fragment key=".1:8">
373
+ <VIEW
374
+ style={{
375
+ alignItems: undefined,
376
+ backgroundColor: undefined,
377
+ color: undefined,
378
+ paddingVertical: 2.25,
379
+ textAlign: 'left'
380
+ }}
381
+ >
382
+ <ListItem listMarker="1.">
383
+ <TEXT>
384
+ <TEXT style={{}}>
385
+ Numbered List Item
386
+ </TEXT>
387
+ </TEXT>
388
+ </ListItem>
389
+ </VIEW>
390
+ </React.Fragment>
391
+ <React.Fragment key=".1:9">
392
+ <VIEW
393
+ style={{
394
+ alignItems: undefined,
395
+ backgroundColor: undefined,
396
+ color: undefined,
397
+ paddingVertical: 2.25,
398
+ textAlign: 'left'
399
+ }}
400
+ >
401
+ <ListItem listMarker={<SVG fill="undefined" height="12" style={{marginTop: 2}} viewBox="0 -960 960 960" width="12"><PATH d="M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Zm0-80h560v-560H200v560Z" /></SVG>}>
402
+ <TEXT>
403
+ <TEXT style={{}}>
404
+ Check List Item
405
+ </TEXT>
406
+ </TEXT>
407
+ </ListItem>
408
+ </VIEW>
409
+ </React.Fragment>
410
+ <React.Fragment key=".1:a">
411
+ <VIEW
412
+ style={{
413
+ alignItems: undefined,
414
+ backgroundColor: undefined,
415
+ color: undefined,
416
+ paddingVertical: 2.25,
417
+ textAlign: undefined
418
+ }}
419
+ >
420
+ <Table
421
+ data={{
422
+ columnWidths: [
423
+ 200,
424
+ undefined,
425
+ undefined
426
+ ],
427
+ rows: [
428
+ {
429
+ cells: [
430
+ [
431
+ {
432
+ styles: {},
433
+ text: 'Wide Cell',
434
+ type: 'text'
435
+ }
436
+ ],
437
+ [
438
+ {
439
+ styles: {},
440
+ text: 'Table Cell',
441
+ type: 'text'
442
+ }
443
+ ],
444
+ [
445
+ {
446
+ styles: {},
447
+ text: 'Table Cell',
448
+ type: 'text'
449
+ }
450
+ ]
451
+ ]
452
+ },
453
+ {
454
+ cells: [
455
+ [
456
+ {
457
+ styles: {},
458
+ text: 'Wide Cell',
459
+ type: 'text'
460
+ }
461
+ ],
462
+ [
463
+ {
464
+ styles: {},
465
+ text: 'Table Cell',
466
+ type: 'text'
467
+ }
468
+ ],
469
+ [
470
+ {
471
+ styles: {},
472
+ text: 'Table Cell',
473
+ type: 'text'
474
+ }
475
+ ]
476
+ ]
477
+ },
478
+ {
479
+ cells: [
480
+ [
481
+ {
482
+ styles: {},
483
+ text: 'Wide Cell',
484
+ type: 'text'
485
+ }
486
+ ],
487
+ [
488
+ {
489
+ styles: {},
490
+ text: 'Table Cell',
491
+ type: 'text'
492
+ }
493
+ ],
494
+ [
495
+ {
496
+ styles: {},
497
+ text: 'Table Cell',
498
+ type: 'text'
499
+ }
500
+ ]
501
+ ]
502
+ }
503
+ ],
504
+ type: 'tableContent'
505
+ }}
506
+ transformer={[object Object]}
507
+ />
508
+ </VIEW>
509
+ </React.Fragment>
510
+ <React.Fragment key=".1:b">
511
+ <VIEW
512
+ style={{
513
+ alignItems: undefined,
514
+ backgroundColor: undefined,
515
+ color: undefined,
516
+ paddingVertical: 2.25,
517
+ textAlign: undefined
518
+ }}
519
+ >
520
+ <VIEW>
521
+ <LINK src="">
522
+ <VIEW
523
+ style={{
524
+ display: 'flex',
525
+ flexDirection: 'row',
526
+ gap: 6
527
+ }}
460
528
  >
461
- From https://interactive-examples.mdn.mozilla.net/media/cc0-audio/t-rex-roar.mp3
462
- </text>
463
- </view>
464
- </view>
465
- <view
466
- style="text-align: left;"
467
- >
468
- <text />
469
- </view>
470
- <view>
471
- <view>
472
- <link
473
- src=""
529
+ <SVG
530
+ fill="currentColor"
531
+ height={16}
532
+ viewBox="0 0 24 24"
533
+ width={16}
534
+ >
535
+ <PATH d="M3 8L9.00319 2H19.9978C20.5513 2 21 2.45531 21 2.9918V21.0082C21 21.556 20.5551 22 20.0066 22H3.9934C3.44476 22 3 21.5501 3 20.9932V8ZM10 4V9H5V20H19V4H10Z" />
536
+ </SVG>
537
+ <TEXT>
538
+ Open file
539
+ </TEXT>
540
+ </VIEW>
541
+ </LINK>
542
+ </VIEW>
543
+ </VIEW>
544
+ </React.Fragment>
545
+ <React.Fragment key=".1:c">
546
+ <VIEW
547
+ style={{
548
+ alignItems: undefined,
549
+ backgroundColor: undefined,
550
+ color: undefined,
551
+ paddingVertical: 2.25,
552
+ textAlign: 'left'
553
+ }}
554
+ >
555
+ <VIEW>
556
+ <IMAGE
557
+ src={[object Blob]}
558
+ style={{
559
+ width: 384
560
+ }}
561
+ />
562
+ <TEXT
563
+ style={{
564
+ fontSize: 9.600000000000001,
565
+ width: 384
566
+ }}
567
+ >
568
+ From https://interactive-examples.mdn.mozilla.net/media/cc0-images/grapefruit-slice-332-332.jpg
569
+ </TEXT>
570
+ </VIEW>
571
+ </VIEW>
572
+ </React.Fragment>
573
+ <React.Fragment key=".1:d">
574
+ <VIEW
575
+ style={{
576
+ alignItems: 'flex-end',
577
+ backgroundColor: undefined,
578
+ color: undefined,
579
+ paddingVertical: 2.25,
580
+ textAlign: 'right'
581
+ }}
582
+ >
583
+ <VIEW>
584
+ <IMAGE
585
+ src={[object Blob]}
586
+ style={{
587
+ width: 150
588
+ }}
589
+ />
590
+ </VIEW>
591
+ </VIEW>
592
+ </React.Fragment>
593
+ <React.Fragment key=".1:e">
594
+ <VIEW
595
+ style={{
596
+ alignItems: undefined,
597
+ backgroundColor: undefined,
598
+ color: undefined,
599
+ paddingVertical: 2.25,
600
+ textAlign: 'left'
601
+ }}
602
+ >
603
+ <VIEW>
604
+ <LINK src="https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.webm">
605
+ <VIEW
606
+ style={{
607
+ display: 'flex',
608
+ flexDirection: 'row',
609
+ gap: 6
610
+ }}
474
611
  >
475
- <view
476
- style="display: flex; gap: 6px; flex-direction: row;"
612
+ <SVG
613
+ fill="currentColor"
614
+ height={14}
615
+ viewBox="0 0 24 24"
616
+ width={14}
477
617
  >
478
- <svg
479
- fill="currentColor"
480
- height="14"
481
- viewbox="0 0 24 24"
482
- width="14"
483
- >
484
- <path
485
- d="M2 16.0001H5.88889L11.1834 20.3319C11.2727 20.405 11.3846 20.4449 11.5 20.4449C11.7761 20.4449 12 20.2211 12 19.9449V4.05519C12 3.93977 11.9601 3.8279 11.887 3.73857C11.7121 3.52485 11.3971 3.49335 11.1834 3.66821L5.88889 8.00007H2C1.44772 8.00007 1 8.44778 1 9.00007V15.0001C1 15.5524 1.44772 16.0001 2 16.0001ZM23 12C23 15.292 21.5539 18.2463 19.2622 20.2622L17.8445 18.8444C19.7758 17.1937 21 14.7398 21 12C21 9.26016 19.7758 6.80629 17.8445 5.15557L19.2622 3.73779C21.5539 5.75368 23 8.70795 23 12ZM18 12C18 10.0883 17.106 8.38548 15.7133 7.28673L14.2842 8.71584C15.3213 9.43855 16 10.64 16 12C16 13.36 15.3213 14.5614 14.2842 15.2841L15.7133 16.7132C17.106 15.6145 18 13.9116 18 12Z"
486
- />
487
- </svg>
488
- <text>
489
- audio.mp3
490
- </text>
491
- </view>
492
- </link>
493
- <text
494
- style="font-size: 9.600000000000001px;"
618
+ <PATH d="M2 3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44495 22 3.9934V20.0066C22 20.5552 21.5447 21 21.0082 21H2.9918C2.44405 21 2 20.5551 2 20.0066V3.9934ZM8 5V19H16V5H8ZM4 5V7H6V5H4ZM18 5V7H20V5H18ZM4 9V11H6V9H4ZM18 9V11H20V9H18ZM4 13V15H6V13H4ZM18 13V15H20V13H18ZM4 17V19H6V17H4ZM18 17V19H20V17H18Z" />
619
+ </SVG>
620
+ <TEXT>
621
+ Open video file
622
+ </TEXT>
623
+ </VIEW>
624
+ </LINK>
625
+ <TEXT
626
+ style={{
627
+ fontSize: 9.600000000000001,
628
+ width: 384
629
+ }}
630
+ >
631
+ From https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.webm
632
+ </TEXT>
633
+ </VIEW>
634
+ </VIEW>
635
+ </React.Fragment>
636
+ <React.Fragment key=".1:f">
637
+ <VIEW
638
+ style={{
639
+ alignItems: undefined,
640
+ backgroundColor: undefined,
641
+ color: undefined,
642
+ paddingVertical: 2.25,
643
+ textAlign: undefined
644
+ }}
645
+ >
646
+ <VIEW>
647
+ <LINK src="https://interactive-examples.mdn.mozilla.net/media/cc0-audio/t-rex-roar.mp3">
648
+ <VIEW
649
+ style={{
650
+ display: 'flex',
651
+ flexDirection: 'row',
652
+ gap: 6
653
+ }}
495
654
  >
496
- Audio file caption
497
- </text>
498
- </view>
499
- </view>
500
- <view
501
- style="text-align: left;"
502
- >
503
- <text>
504
- <text
505
- style="font-weight: bold;"
655
+ <SVG
656
+ fill="currentColor"
657
+ height={14}
658
+ viewBox="0 0 24 24"
659
+ width={14}
660
+ >
661
+ <PATH d="M2 16.0001H5.88889L11.1834 20.3319C11.2727 20.405 11.3846 20.4449 11.5 20.4449C11.7761 20.4449 12 20.2211 12 19.9449V4.05519C12 3.93977 11.9601 3.8279 11.887 3.73857C11.7121 3.52485 11.3971 3.49335 11.1834 3.66821L5.88889 8.00007H2C1.44772 8.00007 1 8.44778 1 9.00007V15.0001C1 15.5524 1.44772 16.0001 2 16.0001ZM23 12C23 15.292 21.5539 18.2463 19.2622 20.2622L17.8445 18.8444C19.7758 17.1937 21 14.7398 21 12C21 9.26016 19.7758 6.80629 17.8445 5.15557L19.2622 3.73779C21.5539 5.75368 23 8.70795 23 12ZM18 12C18 10.0883 17.106 8.38548 15.7133 7.28673L14.2842 8.71584C15.3213 9.43855 16 10.64 16 12C16 13.36 15.3213 14.5614 14.2842 15.2841L15.7133 16.7132C17.106 15.6145 18 13.9116 18 12Z" />
662
+ </SVG>
663
+ <TEXT>
664
+ Open audio file
665
+ </TEXT>
666
+ </VIEW>
667
+ </LINK>
668
+ <TEXT
669
+ style={{
670
+ fontSize: 9.600000000000001,
671
+ width: undefined
672
+ }}
673
+ >
674
+ From https://interactive-examples.mdn.mozilla.net/media/cc0-audio/t-rex-roar.mp3
675
+ </TEXT>
676
+ </VIEW>
677
+ </VIEW>
678
+ </React.Fragment>
679
+ <React.Fragment key=".1:g">
680
+ <VIEW
681
+ style={{
682
+ alignItems: undefined,
683
+ backgroundColor: undefined,
684
+ color: undefined,
685
+ paddingVertical: 2.25,
686
+ textAlign: 'left'
687
+ }}
688
+ >
689
+ <TEXT />
690
+ </VIEW>
691
+ </React.Fragment>
692
+ <React.Fragment key=".1:h">
693
+ <VIEW
694
+ style={{
695
+ alignItems: undefined,
696
+ backgroundColor: undefined,
697
+ color: undefined,
698
+ paddingVertical: 2.25,
699
+ textAlign: undefined
700
+ }}
701
+ >
702
+ <VIEW>
703
+ <LINK src="">
704
+ <VIEW
705
+ style={{
706
+ display: 'flex',
707
+ flexDirection: 'row',
708
+ gap: 6
709
+ }}
506
710
  >
507
- Inline Content:
508
- </text>
509
- </text>
510
- </view>
511
- <view
512
- style="text-align: left;"
711
+ <SVG
712
+ fill="currentColor"
713
+ height={14}
714
+ viewBox="0 0 24 24"
715
+ width={14}
716
+ >
717
+ <PATH d="M2 16.0001H5.88889L11.1834 20.3319C11.2727 20.405 11.3846 20.4449 11.5 20.4449C11.7761 20.4449 12 20.2211 12 19.9449V4.05519C12 3.93977 11.9601 3.8279 11.887 3.73857C11.7121 3.52485 11.3971 3.49335 11.1834 3.66821L5.88889 8.00007H2C1.44772 8.00007 1 8.44778 1 9.00007V15.0001C1 15.5524 1.44772 16.0001 2 16.0001ZM23 12C23 15.292 21.5539 18.2463 19.2622 20.2622L17.8445 18.8444C19.7758 17.1937 21 14.7398 21 12C21 9.26016 19.7758 6.80629 17.8445 5.15557L19.2622 3.73779C21.5539 5.75368 23 8.70795 23 12ZM18 12C18 10.0883 17.106 8.38548 15.7133 7.28673L14.2842 8.71584C15.3213 9.43855 16 10.64 16 12C16 13.36 15.3213 14.5614 14.2842 15.2841L15.7133 16.7132C17.106 15.6145 18 13.9116 18 12Z" />
718
+ </SVG>
719
+ <TEXT>
720
+ audio.mp3
721
+ </TEXT>
722
+ </VIEW>
723
+ </LINK>
724
+ <TEXT
725
+ style={{
726
+ fontSize: 9.600000000000001,
727
+ width: undefined
728
+ }}
729
+ >
730
+ Audio file caption
731
+ </TEXT>
732
+ </VIEW>
733
+ </VIEW>
734
+ </React.Fragment>
735
+ <React.Fragment key=".1:i">
736
+ <VIEW
737
+ style={{
738
+ alignItems: undefined,
739
+ backgroundColor: undefined,
740
+ color: undefined,
741
+ paddingVertical: 2.25,
742
+ textAlign: 'left'
743
+ }}
744
+ >
745
+ <TEXT>
746
+ <TEXT
747
+ style={{
748
+ fontWeight: 'bold'
749
+ }}
750
+ >
751
+ Inline Content:
752
+ </TEXT>
753
+ </TEXT>
754
+ </VIEW>
755
+ </React.Fragment>
756
+ <React.Fragment key=".1:j">
757
+ <VIEW
758
+ style={{
759
+ alignItems: undefined,
760
+ backgroundColor: undefined,
761
+ color: undefined,
762
+ paddingVertical: 2.25,
763
+ textAlign: 'left'
764
+ }}
765
+ >
766
+ <TEXT>
767
+ <TEXT
768
+ style={{
769
+ backgroundColor: '#ddebf1',
770
+ color: '#e03e3e',
771
+ fontStyle: 'italic',
772
+ fontWeight: 'bold'
773
+ }}
774
+ >
775
+ Styled Text
776
+ </TEXT>
777
+ <TEXT style={{}}>
778
+ {' '}
779
+ </TEXT>
780
+ <LINK href="https://www.blocknotejs.org">
781
+ <TEXT style={{}}>
782
+ Link
783
+ </TEXT>
784
+ </LINK>
785
+ </TEXT>
786
+ </VIEW>
787
+ </React.Fragment>
788
+ <React.Fragment key=".1:k">
789
+ <VIEW
790
+ style={{
791
+ alignItems: undefined,
792
+ backgroundColor: undefined,
793
+ color: undefined,
794
+ paddingVertical: 2.25,
795
+ textAlign: undefined
796
+ }}
797
+ >
798
+ <Table
799
+ data={{
800
+ columnWidths: [
801
+ undefined,
802
+ undefined,
803
+ undefined
804
+ ],
805
+ rows: [
806
+ {
807
+ cells: [
808
+ [
809
+ {
810
+ styles: {},
811
+ text: 'Table Cell 1',
812
+ type: 'text'
813
+ }
814
+ ],
815
+ [
816
+ {
817
+ styles: {},
818
+ text: 'Table Cell 2',
819
+ type: 'text'
820
+ }
821
+ ],
822
+ [
823
+ {
824
+ styles: {},
825
+ text: 'Table Cell 3',
826
+ type: 'text'
827
+ }
828
+ ]
829
+ ]
830
+ },
831
+ {
832
+ cells: [
833
+ [
834
+ {
835
+ styles: {},
836
+ text: 'Table Cell 4',
837
+ type: 'text'
838
+ }
839
+ ],
840
+ [
841
+ {
842
+ styles: {
843
+ bold: true
844
+ },
845
+ text: 'Table Cell Bold 5',
846
+ type: 'text'
847
+ }
848
+ ],
849
+ [
850
+ {
851
+ styles: {},
852
+ text: 'Table Cell 6',
853
+ type: 'text'
854
+ }
855
+ ]
856
+ ]
857
+ },
858
+ {
859
+ cells: [
860
+ [
861
+ {
862
+ styles: {},
863
+ text: 'Table Cell 7',
864
+ type: 'text'
865
+ }
866
+ ],
867
+ [
868
+ {
869
+ styles: {},
870
+ text: 'Table Cell 8',
871
+ type: 'text'
872
+ }
873
+ ],
874
+ [
875
+ {
876
+ styles: {},
877
+ text: 'Table Cell 9',
878
+ type: 'text'
879
+ }
880
+ ]
881
+ ]
882
+ }
883
+ ],
884
+ type: 'tableContent'
885
+ }}
886
+ transformer={[object Object]}
887
+ />
888
+ </VIEW>
889
+ </React.Fragment>
890
+ <React.Fragment key=".1:l">
891
+ <VIEW
892
+ style={{
893
+ alignItems: undefined,
894
+ backgroundColor: undefined,
895
+ color: undefined,
896
+ paddingVertical: 2.25,
897
+ textAlign: undefined
898
+ }}
899
+ >
900
+ <VIEW
901
+ style={{
902
+ backgroundColor: '#161616',
903
+ color: '#ffffff',
904
+ fontFamily: 'GeistMono',
905
+ fontSize: 12,
906
+ lineHeight: 1.25,
907
+ padding: 18
908
+ }}
513
909
  >
514
- <text>
515
- <text
516
- style="font-weight: bold; font-style: italic; color: rgb(224, 62, 62); background-color: rgb(221, 235, 241);"
517
- >
518
- Styled Text
519
- </text>
520
- <text>
521
-
522
- </text>
523
- <link
524
- href="https://www.blocknotejs.org"
525
- >
526
- <text>
527
- Link
528
- </text>
529
- </link>
530
- </text>
531
- </view>
532
- <view>
533
- <view>
534
- <view>
535
- <view>
536
- <text>
537
- Table Cell 1
538
- </text>
539
- </view>
540
- <view>
541
- <text>
542
- Table Cell 2
543
- </text>
544
- </view>
545
- <view>
546
- <text>
547
- Table Cell 3
548
- </text>
549
- </view>
550
- </view>
551
- <view>
552
- <view>
553
- <text>
554
- Table Cell 4
555
- </text>
556
- </view>
557
- <view>
558
- <text
559
- style="font-weight: bold;"
560
- >
561
- Table Cell Bold 5
562
- </text>
563
- </view>
564
- <view>
565
- <text>
566
- Table Cell 6
567
- </text>
568
- </view>
569
- </view>
570
- <view>
571
- <view>
572
- <text>
573
- Table Cell 7
574
- </text>
575
- </view>
576
- <view>
577
- <text>
578
- Table Cell 8
579
- </text>
580
- </view>
581
- <view>
582
- <text>
583
- Table Cell 9
584
- </text>
585
- </view>
586
- </view>
587
- </view>
588
- </view>
589
- </view>
590
- </page>
591
- </document>
592
- </div>
910
+ <TEXT
911
+ style={{
912
+ marginLeft: 0
913
+ }}
914
+ >
915
+ {`const helloWorld = (message) => {`}
916
+ </TEXT>
917
+ <TEXT
918
+ style={{
919
+ marginLeft: 14.25
920
+ }}
921
+ >
922
+ console.log("Hello World", message);
923
+ </TEXT>
924
+ <TEXT
925
+ style={{
926
+ marginLeft: 0
927
+ }}
928
+ >
929
+ {`};`}
930
+ </TEXT>
931
+ </VIEW>
932
+ </VIEW>
933
+ </React.Fragment>
934
+ </PAGE>
935
+ </DOCUMENT>