@blocknote/xl-email-exporter 0.32.0 → 0.33.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,641 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { mapTableCell as
|
|
3
|
-
import { Text as
|
|
4
|
-
import { render as
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
*/
|
|
15
|
-
var Oe;
|
|
16
|
-
function Or() {
|
|
17
|
-
if (Oe) return H;
|
|
18
|
-
Oe = 1;
|
|
19
|
-
var t = U, n = Symbol.for("react.element"), o = Symbol.for("react.fragment"), d = Object.prototype.hasOwnProperty, g = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, p = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
20
|
-
function y(C, h, u) {
|
|
21
|
-
var x, v = {}, _ = null, S = null;
|
|
22
|
-
u !== void 0 && (_ = "" + u), h.key !== void 0 && (_ = "" + h.key), h.ref !== void 0 && (S = h.ref);
|
|
23
|
-
for (x in h) d.call(h, x) && !p.hasOwnProperty(x) && (v[x] = h[x]);
|
|
24
|
-
if (C && C.defaultProps) for (x in h = C.defaultProps, h) v[x] === void 0 && (v[x] = h[x]);
|
|
25
|
-
return { $$typeof: n, type: C, key: _, ref: S, props: v, _owner: g.current };
|
|
26
|
-
}
|
|
27
|
-
return H.Fragment = o, H.jsx = y, H.jsxs = y, H;
|
|
28
|
-
}
|
|
29
|
-
var W = {};
|
|
30
|
-
/**
|
|
31
|
-
* @license React
|
|
32
|
-
* react-jsx-runtime.development.js
|
|
33
|
-
*
|
|
34
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
35
|
-
*
|
|
36
|
-
* This source code is licensed under the MIT license found in the
|
|
37
|
-
* LICENSE file in the root directory of this source tree.
|
|
38
|
-
*/
|
|
39
|
-
var ke;
|
|
40
|
-
function kr() {
|
|
41
|
-
return ke || (ke = 1, process.env.NODE_ENV !== "production" && function() {
|
|
42
|
-
var t = U, n = Symbol.for("react.element"), o = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), g = Symbol.for("react.strict_mode"), p = Symbol.for("react.profiler"), y = Symbol.for("react.provider"), C = Symbol.for("react.context"), h = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), x = Symbol.for("react.suspense_list"), v = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), S = Symbol.for("react.offscreen"), P = Symbol.iterator, Ae = "@@iterator";
|
|
43
|
-
function Ie(e) {
|
|
44
|
-
if (e === null || typeof e != "object")
|
|
45
|
-
return null;
|
|
46
|
-
var r = P && e[P] || e[Ae];
|
|
47
|
-
return typeof r == "function" ? r : null;
|
|
48
|
-
}
|
|
49
|
-
var D = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
50
|
-
function j(e) {
|
|
51
|
-
{
|
|
52
|
-
for (var r = arguments.length, i = new Array(r > 1 ? r - 1 : 0), l = 1; l < r; l++)
|
|
53
|
-
i[l - 1] = arguments[l];
|
|
54
|
-
De("error", e, i);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
function De(e, r, i) {
|
|
58
|
-
{
|
|
59
|
-
var l = D.ReactDebugCurrentFrame, f = l.getStackAddendum();
|
|
60
|
-
f !== "" && (r += "%s", i = i.concat([f]));
|
|
61
|
-
var m = i.map(function(c) {
|
|
62
|
-
return String(c);
|
|
63
|
-
});
|
|
64
|
-
m.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, m);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
var Fe = !1, Le = !1, Ve = !1, Me = !1, He = !1, ne;
|
|
68
|
-
ne = Symbol.for("react.module.reference");
|
|
69
|
-
function We(e) {
|
|
70
|
-
return !!(typeof e == "string" || typeof e == "function" || e === d || e === p || He || e === g || e === u || e === x || Me || e === S || Fe || Le || Ve || typeof e == "object" && e !== null && (e.$$typeof === _ || e.$$typeof === v || e.$$typeof === y || e.$$typeof === C || e.$$typeof === h || // This needs to include all possible module reference object
|
|
71
|
-
// types supported by any Flight configuration anywhere since
|
|
72
|
-
// we don't know which Flight build this will end up being used
|
|
73
|
-
// with.
|
|
74
|
-
e.$$typeof === ne || e.getModuleId !== void 0));
|
|
75
|
-
}
|
|
76
|
-
function Be(e, r, i) {
|
|
77
|
-
var l = e.displayName;
|
|
78
|
-
if (l)
|
|
79
|
-
return l;
|
|
80
|
-
var f = r.displayName || r.name || "";
|
|
81
|
-
return f !== "" ? i + "(" + f + ")" : i;
|
|
82
|
-
}
|
|
83
|
-
function ie(e) {
|
|
84
|
-
return e.displayName || "Context";
|
|
85
|
-
}
|
|
86
|
-
function O(e) {
|
|
87
|
-
if (e == null)
|
|
88
|
-
return null;
|
|
89
|
-
if (typeof e.tag == "number" && j("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
90
|
-
return e.displayName || e.name || null;
|
|
91
|
-
if (typeof e == "string")
|
|
92
|
-
return e;
|
|
93
|
-
switch (e) {
|
|
94
|
-
case d:
|
|
95
|
-
return "Fragment";
|
|
96
|
-
case o:
|
|
97
|
-
return "Portal";
|
|
98
|
-
case p:
|
|
99
|
-
return "Profiler";
|
|
100
|
-
case g:
|
|
101
|
-
return "StrictMode";
|
|
102
|
-
case u:
|
|
103
|
-
return "Suspense";
|
|
104
|
-
case x:
|
|
105
|
-
return "SuspenseList";
|
|
106
|
-
}
|
|
107
|
-
if (typeof e == "object")
|
|
108
|
-
switch (e.$$typeof) {
|
|
109
|
-
case C:
|
|
110
|
-
var r = e;
|
|
111
|
-
return ie(r) + ".Consumer";
|
|
112
|
-
case y:
|
|
113
|
-
var i = e;
|
|
114
|
-
return ie(i._context) + ".Provider";
|
|
115
|
-
case h:
|
|
116
|
-
return Be(e, e.render, "ForwardRef");
|
|
117
|
-
case v:
|
|
118
|
-
var l = e.displayName || null;
|
|
119
|
-
return l !== null ? l : O(e.type) || "Memo";
|
|
120
|
-
case _: {
|
|
121
|
-
var f = e, m = f._payload, c = f._init;
|
|
122
|
-
try {
|
|
123
|
-
return O(c(m));
|
|
124
|
-
} catch {
|
|
125
|
-
return null;
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
return null;
|
|
130
|
-
}
|
|
131
|
-
var A = Object.assign, V = 0, ae, oe, le, se, ce, ue, fe;
|
|
132
|
-
function de() {
|
|
133
|
-
}
|
|
134
|
-
de.__reactDisabledLog = !0;
|
|
135
|
-
function $e() {
|
|
136
|
-
{
|
|
137
|
-
if (V === 0) {
|
|
138
|
-
ae = console.log, oe = console.info, le = console.warn, se = console.error, ce = console.group, ue = console.groupCollapsed, fe = console.groupEnd;
|
|
139
|
-
var e = {
|
|
140
|
-
configurable: !0,
|
|
141
|
-
enumerable: !0,
|
|
142
|
-
value: de,
|
|
143
|
-
writable: !0
|
|
144
|
-
};
|
|
145
|
-
Object.defineProperties(console, {
|
|
146
|
-
info: e,
|
|
147
|
-
log: e,
|
|
148
|
-
warn: e,
|
|
149
|
-
error: e,
|
|
150
|
-
group: e,
|
|
151
|
-
groupCollapsed: e,
|
|
152
|
-
groupEnd: e
|
|
153
|
-
});
|
|
154
|
-
}
|
|
155
|
-
V++;
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
function Ye() {
|
|
159
|
-
{
|
|
160
|
-
if (V--, V === 0) {
|
|
161
|
-
var e = {
|
|
162
|
-
configurable: !0,
|
|
163
|
-
enumerable: !0,
|
|
164
|
-
writable: !0
|
|
165
|
-
};
|
|
166
|
-
Object.defineProperties(console, {
|
|
167
|
-
log: A({}, e, {
|
|
168
|
-
value: ae
|
|
169
|
-
}),
|
|
170
|
-
info: A({}, e, {
|
|
171
|
-
value: oe
|
|
172
|
-
}),
|
|
173
|
-
warn: A({}, e, {
|
|
174
|
-
value: le
|
|
175
|
-
}),
|
|
176
|
-
error: A({}, e, {
|
|
177
|
-
value: se
|
|
178
|
-
}),
|
|
179
|
-
group: A({}, e, {
|
|
180
|
-
value: ce
|
|
181
|
-
}),
|
|
182
|
-
groupCollapsed: A({}, e, {
|
|
183
|
-
value: ue
|
|
184
|
-
}),
|
|
185
|
-
groupEnd: A({}, e, {
|
|
186
|
-
value: fe
|
|
187
|
-
})
|
|
188
|
-
});
|
|
189
|
-
}
|
|
190
|
-
V < 0 && j("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
var Z = D.ReactCurrentDispatcher, q;
|
|
194
|
-
function B(e, r, i) {
|
|
195
|
-
{
|
|
196
|
-
if (q === void 0)
|
|
197
|
-
try {
|
|
198
|
-
throw Error();
|
|
199
|
-
} catch (f) {
|
|
200
|
-
var l = f.stack.trim().match(/\n( *(at )?)/);
|
|
201
|
-
q = l && l[1] || "";
|
|
202
|
-
}
|
|
203
|
-
return `
|
|
204
|
-
` + q + e;
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
var z = !1, $;
|
|
208
|
-
{
|
|
209
|
-
var Ne = typeof WeakMap == "function" ? WeakMap : Map;
|
|
210
|
-
$ = new Ne();
|
|
211
|
-
}
|
|
212
|
-
function pe(e, r) {
|
|
213
|
-
if (!e || z)
|
|
214
|
-
return "";
|
|
215
|
-
{
|
|
216
|
-
var i = $.get(e);
|
|
217
|
-
if (i !== void 0)
|
|
218
|
-
return i;
|
|
219
|
-
}
|
|
220
|
-
var l;
|
|
221
|
-
z = !0;
|
|
222
|
-
var f = Error.prepareStackTrace;
|
|
223
|
-
Error.prepareStackTrace = void 0;
|
|
224
|
-
var m;
|
|
225
|
-
m = Z.current, Z.current = null, $e();
|
|
226
|
-
try {
|
|
227
|
-
if (r) {
|
|
228
|
-
var c = function() {
|
|
229
|
-
throw Error();
|
|
230
|
-
};
|
|
231
|
-
if (Object.defineProperty(c.prototype, "props", {
|
|
232
|
-
set: function() {
|
|
233
|
-
throw Error();
|
|
234
|
-
}
|
|
235
|
-
}), typeof Reflect == "object" && Reflect.construct) {
|
|
236
|
-
try {
|
|
237
|
-
Reflect.construct(c, []);
|
|
238
|
-
} catch (w) {
|
|
239
|
-
l = w;
|
|
240
|
-
}
|
|
241
|
-
Reflect.construct(e, [], c);
|
|
242
|
-
} else {
|
|
243
|
-
try {
|
|
244
|
-
c.call();
|
|
245
|
-
} catch (w) {
|
|
246
|
-
l = w;
|
|
247
|
-
}
|
|
248
|
-
e.call(c.prototype);
|
|
249
|
-
}
|
|
250
|
-
} else {
|
|
251
|
-
try {
|
|
252
|
-
throw Error();
|
|
253
|
-
} catch (w) {
|
|
254
|
-
l = w;
|
|
255
|
-
}
|
|
256
|
-
e();
|
|
257
|
-
}
|
|
258
|
-
} catch (w) {
|
|
259
|
-
if (w && l && typeof w.stack == "string") {
|
|
260
|
-
for (var s = w.stack.split(`
|
|
261
|
-
`), R = l.stack.split(`
|
|
262
|
-
`), b = s.length - 1, E = R.length - 1; b >= 1 && E >= 0 && s[b] !== R[E]; )
|
|
263
|
-
E--;
|
|
264
|
-
for (; b >= 1 && E >= 0; b--, E--)
|
|
265
|
-
if (s[b] !== R[E]) {
|
|
266
|
-
if (b !== 1 || E !== 1)
|
|
267
|
-
do
|
|
268
|
-
if (b--, E--, E < 0 || s[b] !== R[E]) {
|
|
269
|
-
var T = `
|
|
270
|
-
` + s[b].replace(" at new ", " at ");
|
|
271
|
-
return e.displayName && T.includes("<anonymous>") && (T = T.replace("<anonymous>", e.displayName)), typeof e == "function" && $.set(e, T), T;
|
|
272
|
-
}
|
|
273
|
-
while (b >= 1 && E >= 0);
|
|
274
|
-
break;
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
} finally {
|
|
278
|
-
z = !1, Z.current = m, Ye(), Error.prepareStackTrace = f;
|
|
279
|
-
}
|
|
280
|
-
var L = e ? e.displayName || e.name : "", I = L ? B(L) : "";
|
|
281
|
-
return typeof e == "function" && $.set(e, I), I;
|
|
282
|
-
}
|
|
283
|
-
function Ue(e, r, i) {
|
|
284
|
-
return pe(e, !1);
|
|
285
|
-
}
|
|
286
|
-
function Ze(e) {
|
|
287
|
-
var r = e.prototype;
|
|
288
|
-
return !!(r && r.isReactComponent);
|
|
289
|
-
}
|
|
290
|
-
function Y(e, r, i) {
|
|
291
|
-
if (e == null)
|
|
292
|
-
return "";
|
|
293
|
-
if (typeof e == "function")
|
|
294
|
-
return pe(e, Ze(e));
|
|
295
|
-
if (typeof e == "string")
|
|
296
|
-
return B(e);
|
|
297
|
-
switch (e) {
|
|
298
|
-
case u:
|
|
299
|
-
return B("Suspense");
|
|
300
|
-
case x:
|
|
301
|
-
return B("SuspenseList");
|
|
302
|
-
}
|
|
303
|
-
if (typeof e == "object")
|
|
304
|
-
switch (e.$$typeof) {
|
|
305
|
-
case h:
|
|
306
|
-
return Ue(e.render);
|
|
307
|
-
case v:
|
|
308
|
-
return Y(e.type, r, i);
|
|
309
|
-
case _: {
|
|
310
|
-
var l = e, f = l._payload, m = l._init;
|
|
311
|
-
try {
|
|
312
|
-
return Y(m(f), r, i);
|
|
313
|
-
} catch {
|
|
314
|
-
}
|
|
315
|
-
}
|
|
316
|
-
}
|
|
317
|
-
return "";
|
|
318
|
-
}
|
|
319
|
-
var M = Object.prototype.hasOwnProperty, he = {}, ve = D.ReactDebugCurrentFrame;
|
|
320
|
-
function N(e) {
|
|
321
|
-
if (e) {
|
|
322
|
-
var r = e._owner, i = Y(e.type, e._source, r ? r.type : null);
|
|
323
|
-
ve.setExtraStackFrame(i);
|
|
324
|
-
} else
|
|
325
|
-
ve.setExtraStackFrame(null);
|
|
326
|
-
}
|
|
327
|
-
function qe(e, r, i, l, f) {
|
|
328
|
-
{
|
|
329
|
-
var m = Function.call.bind(M);
|
|
330
|
-
for (var c in e)
|
|
331
|
-
if (m(e, c)) {
|
|
332
|
-
var s = void 0;
|
|
333
|
-
try {
|
|
334
|
-
if (typeof e[c] != "function") {
|
|
335
|
-
var R = Error((l || "React class") + ": " + i + " type `" + c + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[c] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
336
|
-
throw R.name = "Invariant Violation", R;
|
|
337
|
-
}
|
|
338
|
-
s = e[c](r, c, l, i, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
339
|
-
} catch (b) {
|
|
340
|
-
s = b;
|
|
341
|
-
}
|
|
342
|
-
s && !(s instanceof Error) && (N(f), j("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", l || "React class", i, c, typeof s), N(null)), s instanceof Error && !(s.message in he) && (he[s.message] = !0, N(f), j("Failed %s type: %s", i, s.message), N(null));
|
|
343
|
-
}
|
|
344
|
-
}
|
|
345
|
-
}
|
|
346
|
-
var ze = Array.isArray;
|
|
347
|
-
function J(e) {
|
|
348
|
-
return ze(e);
|
|
349
|
-
}
|
|
350
|
-
function Je(e) {
|
|
351
|
-
{
|
|
352
|
-
var r = typeof Symbol == "function" && Symbol.toStringTag, i = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
353
|
-
return i;
|
|
354
|
-
}
|
|
355
|
-
}
|
|
356
|
-
function Ge(e) {
|
|
357
|
-
try {
|
|
358
|
-
return me(e), !1;
|
|
359
|
-
} catch {
|
|
360
|
-
return !0;
|
|
361
|
-
}
|
|
362
|
-
}
|
|
363
|
-
function me(e) {
|
|
364
|
-
return "" + e;
|
|
365
|
-
}
|
|
366
|
-
function ge(e) {
|
|
367
|
-
if (Ge(e))
|
|
368
|
-
return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Je(e)), me(e);
|
|
369
|
-
}
|
|
370
|
-
var ye = D.ReactCurrentOwner, Ke = {
|
|
371
|
-
key: !0,
|
|
372
|
-
ref: !0,
|
|
373
|
-
__self: !0,
|
|
374
|
-
__source: !0
|
|
375
|
-
}, xe, be;
|
|
376
|
-
function Xe(e) {
|
|
377
|
-
if (M.call(e, "ref")) {
|
|
378
|
-
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
379
|
-
if (r && r.isReactWarning)
|
|
380
|
-
return !1;
|
|
381
|
-
}
|
|
382
|
-
return e.ref !== void 0;
|
|
383
|
-
}
|
|
384
|
-
function Qe(e) {
|
|
385
|
-
if (M.call(e, "key")) {
|
|
386
|
-
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
387
|
-
if (r && r.isReactWarning)
|
|
388
|
-
return !1;
|
|
389
|
-
}
|
|
390
|
-
return e.key !== void 0;
|
|
391
|
-
}
|
|
392
|
-
function er(e, r) {
|
|
393
|
-
typeof e.ref == "string" && ye.current;
|
|
394
|
-
}
|
|
395
|
-
function rr(e, r) {
|
|
396
|
-
{
|
|
397
|
-
var i = function() {
|
|
398
|
-
xe || (xe = !0, j("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
399
|
-
};
|
|
400
|
-
i.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
401
|
-
get: i,
|
|
402
|
-
configurable: !0
|
|
403
|
-
});
|
|
404
|
-
}
|
|
405
|
-
}
|
|
406
|
-
function tr(e, r) {
|
|
407
|
-
{
|
|
408
|
-
var i = function() {
|
|
409
|
-
be || (be = !0, j("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
410
|
-
};
|
|
411
|
-
i.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
412
|
-
get: i,
|
|
413
|
-
configurable: !0
|
|
414
|
-
});
|
|
415
|
-
}
|
|
416
|
-
}
|
|
417
|
-
var nr = function(e, r, i, l, f, m, c) {
|
|
418
|
-
var s = {
|
|
419
|
-
// This tag allows us to uniquely identify this as a React Element
|
|
420
|
-
$$typeof: n,
|
|
421
|
-
// Built-in properties that belong on the element
|
|
422
|
-
type: e,
|
|
423
|
-
key: r,
|
|
424
|
-
ref: i,
|
|
425
|
-
props: c,
|
|
426
|
-
// Record the component responsible for creating this element.
|
|
427
|
-
_owner: m
|
|
428
|
-
};
|
|
429
|
-
return s._store = {}, Object.defineProperty(s._store, "validated", {
|
|
430
|
-
configurable: !1,
|
|
431
|
-
enumerable: !1,
|
|
432
|
-
writable: !0,
|
|
433
|
-
value: !1
|
|
434
|
-
}), Object.defineProperty(s, "_self", {
|
|
435
|
-
configurable: !1,
|
|
436
|
-
enumerable: !1,
|
|
437
|
-
writable: !1,
|
|
438
|
-
value: l
|
|
439
|
-
}), Object.defineProperty(s, "_source", {
|
|
440
|
-
configurable: !1,
|
|
441
|
-
enumerable: !1,
|
|
442
|
-
writable: !1,
|
|
443
|
-
value: f
|
|
444
|
-
}), Object.freeze && (Object.freeze(s.props), Object.freeze(s)), s;
|
|
445
|
-
};
|
|
446
|
-
function ir(e, r, i, l, f) {
|
|
447
|
-
{
|
|
448
|
-
var m, c = {}, s = null, R = null;
|
|
449
|
-
i !== void 0 && (ge(i), s = "" + i), Qe(r) && (ge(r.key), s = "" + r.key), Xe(r) && (R = r.ref, er(r, f));
|
|
450
|
-
for (m in r)
|
|
451
|
-
M.call(r, m) && !Ke.hasOwnProperty(m) && (c[m] = r[m]);
|
|
452
|
-
if (e && e.defaultProps) {
|
|
453
|
-
var b = e.defaultProps;
|
|
454
|
-
for (m in b)
|
|
455
|
-
c[m] === void 0 && (c[m] = b[m]);
|
|
456
|
-
}
|
|
457
|
-
if (s || R) {
|
|
458
|
-
var E = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
459
|
-
s && rr(c, E), R && tr(c, E);
|
|
460
|
-
}
|
|
461
|
-
return nr(e, s, R, f, l, ye.current, c);
|
|
462
|
-
}
|
|
463
|
-
}
|
|
464
|
-
var G = D.ReactCurrentOwner, Ce = D.ReactDebugCurrentFrame;
|
|
465
|
-
function F(e) {
|
|
466
|
-
if (e) {
|
|
467
|
-
var r = e._owner, i = Y(e.type, e._source, r ? r.type : null);
|
|
468
|
-
Ce.setExtraStackFrame(i);
|
|
469
|
-
} else
|
|
470
|
-
Ce.setExtraStackFrame(null);
|
|
471
|
-
}
|
|
472
|
-
var K;
|
|
473
|
-
K = !1;
|
|
474
|
-
function X(e) {
|
|
475
|
-
return typeof e == "object" && e !== null && e.$$typeof === n;
|
|
476
|
-
}
|
|
477
|
-
function Ee() {
|
|
478
|
-
{
|
|
479
|
-
if (G.current) {
|
|
480
|
-
var e = O(G.current.type);
|
|
481
|
-
if (e)
|
|
482
|
-
return `
|
|
483
|
-
|
|
484
|
-
Check the render method of \`` + e + "`.";
|
|
485
|
-
}
|
|
486
|
-
return "";
|
|
487
|
-
}
|
|
488
|
-
}
|
|
489
|
-
function ar(e) {
|
|
490
|
-
return "";
|
|
491
|
-
}
|
|
492
|
-
var je = {};
|
|
493
|
-
function or(e) {
|
|
494
|
-
{
|
|
495
|
-
var r = Ee();
|
|
496
|
-
if (!r) {
|
|
497
|
-
var i = typeof e == "string" ? e : e.displayName || e.name;
|
|
498
|
-
i && (r = `
|
|
499
|
-
|
|
500
|
-
Check the top-level render call using <` + i + ">.");
|
|
501
|
-
}
|
|
502
|
-
return r;
|
|
503
|
-
}
|
|
504
|
-
}
|
|
505
|
-
function Re(e, r) {
|
|
506
|
-
{
|
|
507
|
-
if (!e._store || e._store.validated || e.key != null)
|
|
508
|
-
return;
|
|
509
|
-
e._store.validated = !0;
|
|
510
|
-
var i = or(r);
|
|
511
|
-
if (je[i])
|
|
512
|
-
return;
|
|
513
|
-
je[i] = !0;
|
|
514
|
-
var l = "";
|
|
515
|
-
e && e._owner && e._owner !== G.current && (l = " It was passed a child from " + O(e._owner.type) + "."), F(e), j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', i, l), F(null);
|
|
516
|
-
}
|
|
517
|
-
}
|
|
518
|
-
function we(e, r) {
|
|
519
|
-
{
|
|
520
|
-
if (typeof e != "object")
|
|
521
|
-
return;
|
|
522
|
-
if (J(e))
|
|
523
|
-
for (var i = 0; i < e.length; i++) {
|
|
524
|
-
var l = e[i];
|
|
525
|
-
X(l) && Re(l, r);
|
|
526
|
-
}
|
|
527
|
-
else if (X(e))
|
|
528
|
-
e._store && (e._store.validated = !0);
|
|
529
|
-
else if (e) {
|
|
530
|
-
var f = Ie(e);
|
|
531
|
-
if (typeof f == "function" && f !== e.entries)
|
|
532
|
-
for (var m = f.call(e), c; !(c = m.next()).done; )
|
|
533
|
-
X(c.value) && Re(c.value, r);
|
|
534
|
-
}
|
|
535
|
-
}
|
|
536
|
-
}
|
|
537
|
-
function lr(e) {
|
|
538
|
-
{
|
|
539
|
-
var r = e.type;
|
|
540
|
-
if (r == null || typeof r == "string")
|
|
541
|
-
return;
|
|
542
|
-
var i;
|
|
543
|
-
if (typeof r == "function")
|
|
544
|
-
i = r.propTypes;
|
|
545
|
-
else if (typeof r == "object" && (r.$$typeof === h || // Note: Memo only checks outer props here.
|
|
546
|
-
// Inner props are checked in the reconciler.
|
|
547
|
-
r.$$typeof === v))
|
|
548
|
-
i = r.propTypes;
|
|
549
|
-
else
|
|
550
|
-
return;
|
|
551
|
-
if (i) {
|
|
552
|
-
var l = O(r);
|
|
553
|
-
qe(i, e.props, "prop", l, e);
|
|
554
|
-
} else if (r.PropTypes !== void 0 && !K) {
|
|
555
|
-
K = !0;
|
|
556
|
-
var f = O(r);
|
|
557
|
-
j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", f || "Unknown");
|
|
558
|
-
}
|
|
559
|
-
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
560
|
-
}
|
|
561
|
-
}
|
|
562
|
-
function sr(e) {
|
|
563
|
-
{
|
|
564
|
-
for (var r = Object.keys(e.props), i = 0; i < r.length; i++) {
|
|
565
|
-
var l = r[i];
|
|
566
|
-
if (l !== "children" && l !== "key") {
|
|
567
|
-
F(e), j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", l), F(null);
|
|
568
|
-
break;
|
|
569
|
-
}
|
|
570
|
-
}
|
|
571
|
-
e.ref !== null && (F(e), j("Invalid attribute `ref` supplied to `React.Fragment`."), F(null));
|
|
572
|
-
}
|
|
573
|
-
}
|
|
574
|
-
var _e = {};
|
|
575
|
-
function Te(e, r, i, l, f, m) {
|
|
576
|
-
{
|
|
577
|
-
var c = We(e);
|
|
578
|
-
if (!c) {
|
|
579
|
-
var s = "";
|
|
580
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (s += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
581
|
-
var R = ar();
|
|
582
|
-
R ? s += R : s += Ee();
|
|
583
|
-
var b;
|
|
584
|
-
e === null ? b = "null" : J(e) ? b = "array" : e !== void 0 && e.$$typeof === n ? (b = "<" + (O(e.type) || "Unknown") + " />", s = " Did you accidentally export a JSX literal instead of a component?") : b = typeof e, j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", b, s);
|
|
585
|
-
}
|
|
586
|
-
var E = ir(e, r, i, f, m);
|
|
587
|
-
if (E == null)
|
|
588
|
-
return E;
|
|
589
|
-
if (c) {
|
|
590
|
-
var T = r.children;
|
|
591
|
-
if (T !== void 0)
|
|
592
|
-
if (l)
|
|
593
|
-
if (J(T)) {
|
|
594
|
-
for (var L = 0; L < T.length; L++)
|
|
595
|
-
we(T[L], e);
|
|
596
|
-
Object.freeze && Object.freeze(T);
|
|
597
|
-
} else
|
|
598
|
-
j("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
599
|
-
else
|
|
600
|
-
we(T, e);
|
|
601
|
-
}
|
|
602
|
-
if (M.call(r, "key")) {
|
|
603
|
-
var I = O(e), w = Object.keys(r).filter(function(hr) {
|
|
604
|
-
return hr !== "key";
|
|
605
|
-
}), Q = w.length > 0 ? "{key: someKey, " + w.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
606
|
-
if (!_e[I + Q]) {
|
|
607
|
-
var pr = w.length > 0 ? "{" + w.join(": ..., ") + ": ...}" : "{}";
|
|
608
|
-
j(`A props object containing a "key" prop is being spread into JSX:
|
|
609
|
-
let props = %s;
|
|
610
|
-
<%s {...props} />
|
|
611
|
-
React keys must be passed directly to JSX without using spread:
|
|
612
|
-
let props = %s;
|
|
613
|
-
<%s key={someKey} {...props} />`, Q, I, pr, I), _e[I + Q] = !0;
|
|
614
|
-
}
|
|
615
|
-
}
|
|
616
|
-
return e === d ? sr(E) : lr(E), E;
|
|
617
|
-
}
|
|
618
|
-
}
|
|
619
|
-
function cr(e, r, i) {
|
|
620
|
-
return Te(e, r, i, !0);
|
|
621
|
-
}
|
|
622
|
-
function ur(e, r, i) {
|
|
623
|
-
return Te(e, r, i, !1);
|
|
624
|
-
}
|
|
625
|
-
var fr = ur, dr = cr;
|
|
626
|
-
W.Fragment = d, W.jsx = fr, W.jsxs = dr;
|
|
627
|
-
}()), W;
|
|
628
|
-
}
|
|
629
|
-
process.env.NODE_ENV === "production" ? te.exports = Or() : te.exports = kr();
|
|
630
|
-
var a = te.exports;
|
|
631
|
-
const Pr = {
|
|
632
|
-
paragraph: (t, n) => /* @__PURE__ */ a.jsx(k, { children: n.transformInlineContent(t.content) }),
|
|
633
|
-
bulletListItem: (t, n) => /* @__PURE__ */ a.jsx(k, { children: n.transformInlineContent(t.content) }),
|
|
634
|
-
toggleListItem: (t, n) => /* @__PURE__ */ a.jsx(k, { children: n.transformInlineContent(t.content) }),
|
|
635
|
-
numberedListItem: (t, n, o) => /* @__PURE__ */ a.jsx(k, { children: n.transformInlineContent(t.content) }),
|
|
636
|
-
checkListItem: (t, n) => {
|
|
637
|
-
var g;
|
|
638
|
-
const d = ((g = t.props) == null ? void 0 : g.checked) ? /* @__PURE__ */ a.jsxs(
|
|
1
|
+
import { jsx as r, jsxs as c } from "react/jsx-runtime";
|
|
2
|
+
import { mapTableCell as b, Exporter as L, COLORS_DEFAULT as V } from "@blocknote/core";
|
|
3
|
+
import { Text as u, Img as I, CodeBlock as S, dracula as k, Heading as M, Link as H, Section as w, Html as B, Head as A, Body as T, Preview as F, Tailwind as W, Container as Z } from "@react-email/components";
|
|
4
|
+
import { render as D } from "@react-email/render";
|
|
5
|
+
import v from "react";
|
|
6
|
+
const R = {
|
|
7
|
+
paragraph: (e, t) => /* @__PURE__ */ r(u, { children: t.transformInlineContent(e.content) }),
|
|
8
|
+
bulletListItem: (e, t) => /* @__PURE__ */ r(u, { children: t.transformInlineContent(e.content) }),
|
|
9
|
+
toggleListItem: (e, t) => /* @__PURE__ */ r(u, { children: t.transformInlineContent(e.content) }),
|
|
10
|
+
numberedListItem: (e, t, n) => /* @__PURE__ */ r(u, { children: t.transformInlineContent(e.content) }),
|
|
11
|
+
checkListItem: (e, t) => {
|
|
12
|
+
var s;
|
|
13
|
+
const o = ((s = e.props) == null ? void 0 : s.checked) ? /* @__PURE__ */ c(
|
|
639
14
|
"svg",
|
|
640
15
|
{
|
|
641
16
|
width: "18",
|
|
@@ -643,7 +18,7 @@ const Pr = {
|
|
|
643
18
|
viewBox: "0 0 18 18",
|
|
644
19
|
style: { display: "inline", verticalAlign: "middle", marginRight: 8 },
|
|
645
20
|
children: [
|
|
646
|
-
/* @__PURE__ */
|
|
21
|
+
/* @__PURE__ */ r(
|
|
647
22
|
"rect",
|
|
648
23
|
{
|
|
649
24
|
x: "2",
|
|
@@ -656,7 +31,7 @@ const Pr = {
|
|
|
656
31
|
strokeWidth: "2"
|
|
657
32
|
}
|
|
658
33
|
),
|
|
659
|
-
/* @__PURE__ */
|
|
34
|
+
/* @__PURE__ */ r(
|
|
660
35
|
"polyline",
|
|
661
36
|
{
|
|
662
37
|
points: "5,10 8,13 13,6",
|
|
@@ -667,14 +42,14 @@ const Pr = {
|
|
|
667
42
|
)
|
|
668
43
|
]
|
|
669
44
|
}
|
|
670
|
-
) : /* @__PURE__ */
|
|
45
|
+
) : /* @__PURE__ */ r(
|
|
671
46
|
"svg",
|
|
672
47
|
{
|
|
673
48
|
width: "18",
|
|
674
49
|
height: "18",
|
|
675
50
|
viewBox: "0 0 18 18",
|
|
676
51
|
style: { display: "inline", verticalAlign: "middle", marginRight: 8 },
|
|
677
|
-
children: /* @__PURE__ */
|
|
52
|
+
children: /* @__PURE__ */ r(
|
|
678
53
|
"rect",
|
|
679
54
|
{
|
|
680
55
|
x: "2",
|
|
@@ -689,27 +64,27 @@ const Pr = {
|
|
|
689
64
|
)
|
|
690
65
|
}
|
|
691
66
|
);
|
|
692
|
-
return /* @__PURE__ */
|
|
693
|
-
|
|
694
|
-
/* @__PURE__ */
|
|
67
|
+
return /* @__PURE__ */ c(u, { children: [
|
|
68
|
+
o,
|
|
69
|
+
/* @__PURE__ */ r("span", { children: t.transformInlineContent(e.content) })
|
|
695
70
|
] });
|
|
696
71
|
},
|
|
697
|
-
heading: (
|
|
698
|
-
codeBlock: (
|
|
699
|
-
var
|
|
700
|
-
const
|
|
701
|
-
return /* @__PURE__ */
|
|
702
|
-
|
|
72
|
+
heading: (e, t) => /* @__PURE__ */ r(M, { as: `h${e.props.level}`, children: t.transformInlineContent(e.content) }),
|
|
73
|
+
codeBlock: (e) => {
|
|
74
|
+
var n;
|
|
75
|
+
const t = ((n = e.content[0]) == null ? void 0 : n.text) || "";
|
|
76
|
+
return /* @__PURE__ */ r(
|
|
77
|
+
S,
|
|
703
78
|
{
|
|
704
|
-
code:
|
|
79
|
+
code: t,
|
|
705
80
|
fontFamily: "'CommitMono', monospace",
|
|
706
|
-
language:
|
|
707
|
-
theme:
|
|
81
|
+
language: e.props.language,
|
|
82
|
+
theme: k
|
|
708
83
|
}
|
|
709
84
|
);
|
|
710
85
|
},
|
|
711
|
-
audio: (
|
|
712
|
-
const
|
|
86
|
+
audio: (e) => {
|
|
87
|
+
const t = /* @__PURE__ */ r(
|
|
713
88
|
"svg",
|
|
714
89
|
{
|
|
715
90
|
height: "18",
|
|
@@ -717,24 +92,24 @@ const Pr = {
|
|
|
717
92
|
viewBox: "0 0 24 24",
|
|
718
93
|
fill: "#4F8A10",
|
|
719
94
|
style: { display: "inline", verticalAlign: "middle" },
|
|
720
|
-
children: /* @__PURE__ */
|
|
95
|
+
children: /* @__PURE__ */ r("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" })
|
|
721
96
|
}
|
|
722
|
-
),
|
|
723
|
-
return /* @__PURE__ */
|
|
724
|
-
/* @__PURE__ */
|
|
725
|
-
|
|
97
|
+
), n = "previewWidth" in e.props ? e.props.previewWidth : void 0;
|
|
98
|
+
return /* @__PURE__ */ c("div", { style: { margin: "8px 0" }, children: [
|
|
99
|
+
/* @__PURE__ */ r(
|
|
100
|
+
y,
|
|
726
101
|
{
|
|
727
|
-
url:
|
|
728
|
-
name:
|
|
102
|
+
url: e.props.url,
|
|
103
|
+
name: e.props.name,
|
|
729
104
|
defaultText: "Open audio file",
|
|
730
|
-
icon:
|
|
105
|
+
icon: t
|
|
731
106
|
}
|
|
732
107
|
),
|
|
733
|
-
/* @__PURE__ */
|
|
108
|
+
/* @__PURE__ */ r(C, { caption: e.props.caption, width: n })
|
|
734
109
|
] });
|
|
735
110
|
},
|
|
736
|
-
video: (
|
|
737
|
-
const
|
|
111
|
+
video: (e) => {
|
|
112
|
+
const t = /* @__PURE__ */ r(
|
|
738
113
|
"svg",
|
|
739
114
|
{
|
|
740
115
|
height: "18",
|
|
@@ -742,24 +117,24 @@ const Pr = {
|
|
|
742
117
|
viewBox: "0 0 24 24",
|
|
743
118
|
fill: "#1976D2",
|
|
744
119
|
style: { display: "inline", verticalAlign: "middle" },
|
|
745
|
-
children: /* @__PURE__ */
|
|
120
|
+
children: /* @__PURE__ */ r("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" })
|
|
746
121
|
}
|
|
747
|
-
),
|
|
748
|
-
return /* @__PURE__ */
|
|
749
|
-
/* @__PURE__ */
|
|
750
|
-
|
|
122
|
+
), n = "previewWidth" in e.props ? e.props.previewWidth : void 0;
|
|
123
|
+
return /* @__PURE__ */ c("div", { style: { margin: "8px 0" }, children: [
|
|
124
|
+
/* @__PURE__ */ r(
|
|
125
|
+
y,
|
|
751
126
|
{
|
|
752
|
-
url:
|
|
753
|
-
name:
|
|
127
|
+
url: e.props.url,
|
|
128
|
+
name: e.props.name,
|
|
754
129
|
defaultText: "Open video file",
|
|
755
|
-
icon:
|
|
130
|
+
icon: t
|
|
756
131
|
}
|
|
757
132
|
),
|
|
758
|
-
/* @__PURE__ */
|
|
133
|
+
/* @__PURE__ */ r(C, { caption: e.props.caption, width: n })
|
|
759
134
|
] });
|
|
760
135
|
},
|
|
761
|
-
file: (
|
|
762
|
-
const
|
|
136
|
+
file: (e) => {
|
|
137
|
+
const t = /* @__PURE__ */ r(
|
|
763
138
|
"svg",
|
|
764
139
|
{
|
|
765
140
|
height: "18",
|
|
@@ -767,36 +142,36 @@ const Pr = {
|
|
|
767
142
|
viewBox: "0 0 24 24",
|
|
768
143
|
fill: "#888",
|
|
769
144
|
style: { display: "inline", verticalAlign: "middle" },
|
|
770
|
-
children: /* @__PURE__ */
|
|
145
|
+
children: /* @__PURE__ */ r("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" })
|
|
771
146
|
}
|
|
772
|
-
),
|
|
773
|
-
return /* @__PURE__ */
|
|
774
|
-
/* @__PURE__ */
|
|
775
|
-
|
|
147
|
+
), n = "previewWidth" in e.props ? e.props.previewWidth : void 0;
|
|
148
|
+
return /* @__PURE__ */ c("div", { style: { margin: "8px 0" }, children: [
|
|
149
|
+
/* @__PURE__ */ r(
|
|
150
|
+
y,
|
|
776
151
|
{
|
|
777
|
-
url:
|
|
778
|
-
name:
|
|
152
|
+
url: e.props.url,
|
|
153
|
+
name: e.props.name,
|
|
779
154
|
defaultText: "Open file",
|
|
780
|
-
icon:
|
|
155
|
+
icon: t
|
|
781
156
|
}
|
|
782
157
|
),
|
|
783
|
-
/* @__PURE__ */
|
|
158
|
+
/* @__PURE__ */ r(C, { caption: e.props.caption, width: n })
|
|
784
159
|
] });
|
|
785
160
|
},
|
|
786
|
-
image: (
|
|
787
|
-
|
|
161
|
+
image: (e) => /* @__PURE__ */ r(
|
|
162
|
+
I,
|
|
788
163
|
{
|
|
789
|
-
src:
|
|
790
|
-
width:
|
|
791
|
-
alt:
|
|
164
|
+
src: e.props.url,
|
|
165
|
+
width: e.props.previewWidth,
|
|
166
|
+
alt: e.props.caption
|
|
792
167
|
}
|
|
793
168
|
),
|
|
794
|
-
table: (
|
|
795
|
-
const
|
|
796
|
-
if (!
|
|
797
|
-
return /* @__PURE__ */
|
|
798
|
-
const
|
|
799
|
-
return /* @__PURE__ */
|
|
169
|
+
table: (e, t) => {
|
|
170
|
+
const n = e.content;
|
|
171
|
+
if (!n || typeof n != "object" || !Array.isArray(n.rows))
|
|
172
|
+
return /* @__PURE__ */ r(u, { children: "Table data not available" });
|
|
173
|
+
const o = n.headerRows ?? 0, s = n.headerCols ?? 0;
|
|
174
|
+
return /* @__PURE__ */ r(
|
|
800
175
|
"table",
|
|
801
176
|
{
|
|
802
177
|
style: {
|
|
@@ -810,35 +185,35 @@ const Pr = {
|
|
|
810
185
|
border: 0,
|
|
811
186
|
cellPadding: 0,
|
|
812
187
|
cellSpacing: 0,
|
|
813
|
-
children: /* @__PURE__ */
|
|
814
|
-
const
|
|
815
|
-
return /* @__PURE__ */
|
|
816
|
-
|
|
188
|
+
children: /* @__PURE__ */ r("tbody", { children: n.rows.map((l, a) => /* @__PURE__ */ r("tr", { children: l.cells.map((p, h) => {
|
|
189
|
+
const i = b(p), m = a < o, d = h < s, f = m || d;
|
|
190
|
+
return /* @__PURE__ */ r(
|
|
191
|
+
f ? "th" : "td",
|
|
817
192
|
{
|
|
818
193
|
style: {
|
|
819
194
|
border: "1px solid #ddd",
|
|
820
195
|
padding: "8px 12px",
|
|
821
|
-
background:
|
|
822
|
-
fontWeight:
|
|
823
|
-
textAlign:
|
|
824
|
-
color:
|
|
196
|
+
background: f ? "#f5f5f5" : i.props.backgroundColor !== "default" ? i.props.backgroundColor : "#fff",
|
|
197
|
+
fontWeight: f ? "bold" : "normal",
|
|
198
|
+
textAlign: i.props.textAlignment || "left",
|
|
199
|
+
color: i.props.textColor !== "default" ? i.props.textColor : "inherit"
|
|
825
200
|
},
|
|
826
|
-
...(
|
|
827
|
-
colSpan:
|
|
201
|
+
...(i.props.colspan || 1) > 1 && {
|
|
202
|
+
colSpan: i.props.colspan || 1
|
|
828
203
|
},
|
|
829
|
-
...(
|
|
830
|
-
rowSpan:
|
|
204
|
+
...(i.props.rowspan || 1) > 1 && {
|
|
205
|
+
rowSpan: i.props.rowspan || 1
|
|
831
206
|
},
|
|
832
|
-
children:
|
|
207
|
+
children: t.transformInlineContent(i.content)
|
|
833
208
|
},
|
|
834
|
-
"row_" +
|
|
209
|
+
"row_" + a + "_col_" + h
|
|
835
210
|
);
|
|
836
|
-
}) }, "row-" +
|
|
211
|
+
}) }, "row-" + a)) })
|
|
837
212
|
}
|
|
838
213
|
);
|
|
839
214
|
},
|
|
840
|
-
quote: (
|
|
841
|
-
|
|
215
|
+
quote: (e, t) => /* @__PURE__ */ r(
|
|
216
|
+
u,
|
|
842
217
|
{
|
|
843
218
|
style: {
|
|
844
219
|
borderLeft: "4px solid #bdbdbd",
|
|
@@ -849,10 +224,10 @@ const Pr = {
|
|
|
849
224
|
color: "#555",
|
|
850
225
|
display: "block"
|
|
851
226
|
},
|
|
852
|
-
children:
|
|
227
|
+
children: t.transformInlineContent(e.content)
|
|
853
228
|
}
|
|
854
229
|
),
|
|
855
|
-
pageBreak: () => /* @__PURE__ */
|
|
230
|
+
pageBreak: () => /* @__PURE__ */ r(
|
|
856
231
|
"hr",
|
|
857
232
|
{
|
|
858
233
|
style: {
|
|
@@ -863,16 +238,16 @@ const Pr = {
|
|
|
863
238
|
}
|
|
864
239
|
)
|
|
865
240
|
};
|
|
866
|
-
function
|
|
867
|
-
url:
|
|
868
|
-
name:
|
|
869
|
-
defaultText:
|
|
870
|
-
icon:
|
|
241
|
+
function y({
|
|
242
|
+
url: e,
|
|
243
|
+
name: t,
|
|
244
|
+
defaultText: n,
|
|
245
|
+
icon: o
|
|
871
246
|
}) {
|
|
872
|
-
return /* @__PURE__ */
|
|
873
|
-
|
|
247
|
+
return /* @__PURE__ */ c(
|
|
248
|
+
H,
|
|
874
249
|
{
|
|
875
|
-
href:
|
|
250
|
+
href: e,
|
|
876
251
|
style: {
|
|
877
252
|
textDecoration: "none",
|
|
878
253
|
color: "#333",
|
|
@@ -882,185 +257,185 @@ function ee({
|
|
|
882
257
|
fontSize: 16
|
|
883
258
|
},
|
|
884
259
|
children: [
|
|
885
|
-
|
|
886
|
-
/* @__PURE__ */
|
|
260
|
+
o,
|
|
261
|
+
/* @__PURE__ */ r("span", { style: { verticalAlign: "middle" }, children: t || n })
|
|
887
262
|
]
|
|
888
263
|
}
|
|
889
264
|
);
|
|
890
265
|
}
|
|
891
|
-
function
|
|
892
|
-
return
|
|
266
|
+
function C({ caption: e, width: t }) {
|
|
267
|
+
return e ? /* @__PURE__ */ r(u, { style: { width: t, fontSize: 13, color: "#888", margin: "4px 0 0 0" }, children: e }) : null;
|
|
893
268
|
}
|
|
894
|
-
const
|
|
895
|
-
link: (
|
|
896
|
-
...
|
|
269
|
+
const E = {
|
|
270
|
+
link: (e, t) => /* @__PURE__ */ c(H, { href: e.href, children: [
|
|
271
|
+
...e.content.map((n) => t.transformStyledText(n))
|
|
897
272
|
] }),
|
|
898
|
-
text: (
|
|
899
|
-
},
|
|
900
|
-
bold: (
|
|
273
|
+
text: (e, t) => t.transformStyledText(e)
|
|
274
|
+
}, N = {
|
|
275
|
+
bold: (e) => e ? {
|
|
901
276
|
fontWeight: "bold"
|
|
902
277
|
} : {},
|
|
903
|
-
italic: (
|
|
278
|
+
italic: (e) => e ? {
|
|
904
279
|
fontStyle: "italic"
|
|
905
280
|
} : {},
|
|
906
|
-
underline: (
|
|
281
|
+
underline: (e) => e ? {
|
|
907
282
|
textDecoration: "underline"
|
|
908
283
|
// TODO: could conflict with strike
|
|
909
284
|
} : {},
|
|
910
|
-
strike: (
|
|
285
|
+
strike: (e) => e ? {
|
|
911
286
|
textDecoration: "line-through"
|
|
912
287
|
} : {},
|
|
913
|
-
backgroundColor: (
|
|
914
|
-
backgroundColor:
|
|
288
|
+
backgroundColor: (e) => ({
|
|
289
|
+
backgroundColor: e
|
|
915
290
|
}),
|
|
916
|
-
textColor: (
|
|
917
|
-
color:
|
|
291
|
+
textColor: (e) => e ? {
|
|
292
|
+
color: e
|
|
918
293
|
} : {},
|
|
919
|
-
code: (
|
|
294
|
+
code: (e) => e ? {
|
|
920
295
|
fontFamily: "Courier"
|
|
921
296
|
} : {}
|
|
922
|
-
},
|
|
923
|
-
blockMapping:
|
|
924
|
-
inlineContentMapping:
|
|
925
|
-
styleMapping:
|
|
297
|
+
}, G = {
|
|
298
|
+
blockMapping: R,
|
|
299
|
+
inlineContentMapping: E,
|
|
300
|
+
styleMapping: N
|
|
926
301
|
};
|
|
927
|
-
class
|
|
928
|
-
constructor(n, o
|
|
929
|
-
const
|
|
302
|
+
class U extends L {
|
|
303
|
+
constructor(t, n, o) {
|
|
304
|
+
const l = {
|
|
930
305
|
...{
|
|
931
|
-
colors:
|
|
306
|
+
colors: V
|
|
932
307
|
},
|
|
933
|
-
...
|
|
308
|
+
...o
|
|
934
309
|
};
|
|
935
|
-
super(
|
|
310
|
+
super(t, n, l), this.schema = t;
|
|
936
311
|
}
|
|
937
|
-
transformStyledText(
|
|
938
|
-
const
|
|
939
|
-
return /* @__PURE__ */
|
|
312
|
+
transformStyledText(t) {
|
|
313
|
+
const n = this.mapStyles(t.styles), o = Object.assign({}, ...n);
|
|
314
|
+
return /* @__PURE__ */ r("span", { style: o, children: t.text });
|
|
940
315
|
}
|
|
941
|
-
async renderGroupedListBlocks(n, o
|
|
942
|
-
const
|
|
943
|
-
let
|
|
944
|
-
for (let h = 1;
|
|
945
|
-
const
|
|
946
|
-
|
|
947
|
-
|
|
316
|
+
async renderGroupedListBlocks(t, n, o) {
|
|
317
|
+
const s = t[n].type, l = [];
|
|
318
|
+
let a = n;
|
|
319
|
+
for (let h = 1; a < t.length && t[a].type === s; a++, h++) {
|
|
320
|
+
const i = t[a], m = await this.mapBlock(
|
|
321
|
+
i,
|
|
322
|
+
o,
|
|
948
323
|
h
|
|
949
324
|
);
|
|
950
|
-
let
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
)),
|
|
956
|
-
/* @__PURE__ */
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
] },
|
|
325
|
+
let d = [];
|
|
326
|
+
i.children && i.children.length > 0 && (d = await this.renderNestedLists(
|
|
327
|
+
i.children,
|
|
328
|
+
o + 1,
|
|
329
|
+
i.id
|
|
330
|
+
)), l.push(
|
|
331
|
+
/* @__PURE__ */ c(v.Fragment, { children: [
|
|
332
|
+
m,
|
|
333
|
+
d.length > 0 && d
|
|
334
|
+
] }, i.id)
|
|
960
335
|
);
|
|
961
336
|
}
|
|
962
|
-
let
|
|
963
|
-
return
|
|
337
|
+
let p;
|
|
338
|
+
return s === "bulletListItem" || s === "toggleListItem" ? p = /* @__PURE__ */ r("ul", { className: "mb-2 list-disc pl-6", children: l }, t[n].id + "-ul") : p = /* @__PURE__ */ r(
|
|
964
339
|
"ol",
|
|
965
340
|
{
|
|
966
341
|
className: "mb-2 list-decimal pl-6",
|
|
967
342
|
start: 1,
|
|
968
|
-
children:
|
|
343
|
+
children: l
|
|
969
344
|
},
|
|
970
|
-
n
|
|
971
|
-
), { element:
|
|
345
|
+
t[n].id + "-ol"
|
|
346
|
+
), { element: p, nextIndex: a };
|
|
972
347
|
}
|
|
973
|
-
async renderNestedLists(n, o
|
|
974
|
-
const
|
|
975
|
-
let
|
|
976
|
-
for (;
|
|
977
|
-
const
|
|
978
|
-
if (
|
|
979
|
-
const
|
|
980
|
-
let
|
|
981
|
-
for (let
|
|
982
|
-
const
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
),
|
|
987
|
-
|
|
348
|
+
async renderNestedLists(t, n, o) {
|
|
349
|
+
const s = [];
|
|
350
|
+
let l = 0;
|
|
351
|
+
for (; l < t.length; ) {
|
|
352
|
+
const a = t[l];
|
|
353
|
+
if (a.type === "bulletListItem" || a.type === "numberedListItem") {
|
|
354
|
+
const p = a.type, h = [];
|
|
355
|
+
let i = l;
|
|
356
|
+
for (let m = 1; i < t.length && t[i].type === p; i++, m++) {
|
|
357
|
+
const d = t[i], f = await this.mapBlock(
|
|
358
|
+
d,
|
|
359
|
+
n,
|
|
360
|
+
m
|
|
361
|
+
), x = this.blocknoteDefaultPropsToReactEmailStyle(
|
|
362
|
+
d.props
|
|
988
363
|
);
|
|
989
|
-
let
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
) :
|
|
995
|
-
|
|
996
|
-
|
|
364
|
+
let g = [];
|
|
365
|
+
d.children && d.children.length > 0 && (d.children[0] && (d.children[0].type === "bulletListItem" || d.children[0].type === "numberedListItem") ? g = await this.renderNestedLists(
|
|
366
|
+
d.children,
|
|
367
|
+
n + 1,
|
|
368
|
+
d.id
|
|
369
|
+
) : g = await this.transformBlocks(
|
|
370
|
+
d.children,
|
|
371
|
+
n + 1
|
|
997
372
|
)), h.push(
|
|
998
|
-
/* @__PURE__ */
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
] },
|
|
373
|
+
/* @__PURE__ */ c("li", { style: x, children: [
|
|
374
|
+
f,
|
|
375
|
+
g.length > 0 && /* @__PURE__ */ r("div", { style: { marginTop: "8px" }, children: g })
|
|
376
|
+
] }, d.id)
|
|
1002
377
|
);
|
|
1003
378
|
}
|
|
1004
|
-
|
|
1005
|
-
/* @__PURE__ */
|
|
379
|
+
p === "bulletListItem" ? s.push(
|
|
380
|
+
/* @__PURE__ */ r(
|
|
1006
381
|
"ul",
|
|
1007
382
|
{
|
|
1008
383
|
className: "mb-2 list-disc pl-6",
|
|
1009
384
|
children: h
|
|
1010
385
|
},
|
|
1011
|
-
|
|
386
|
+
o + "-ul-nested-" + l
|
|
1012
387
|
)
|
|
1013
|
-
) :
|
|
1014
|
-
/* @__PURE__ */
|
|
388
|
+
) : s.push(
|
|
389
|
+
/* @__PURE__ */ r(
|
|
1015
390
|
"ol",
|
|
1016
391
|
{
|
|
1017
392
|
className: "mb-2 list-decimal pl-6",
|
|
1018
393
|
start: 1,
|
|
1019
394
|
children: h
|
|
1020
395
|
},
|
|
1021
|
-
|
|
396
|
+
o + "-ol-nested-" + l
|
|
1022
397
|
)
|
|
1023
|
-
),
|
|
398
|
+
), l = i;
|
|
1024
399
|
} else {
|
|
1025
|
-
const
|
|
1026
|
-
|
|
1027
|
-
/* @__PURE__ */
|
|
1028
|
-
),
|
|
400
|
+
const p = await this.transformBlocks([a], n);
|
|
401
|
+
s.push(
|
|
402
|
+
/* @__PURE__ */ r(w, { style: { marginLeft: "24px" }, children: p }, a.id)
|
|
403
|
+
), l++;
|
|
1029
404
|
}
|
|
1030
405
|
}
|
|
1031
|
-
return
|
|
406
|
+
return s;
|
|
1032
407
|
}
|
|
1033
|
-
async transformBlocks(
|
|
1034
|
-
const
|
|
1035
|
-
let
|
|
1036
|
-
for (;
|
|
1037
|
-
const
|
|
1038
|
-
if (
|
|
1039
|
-
const { element:
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
408
|
+
async transformBlocks(t, n = 0) {
|
|
409
|
+
const o = [];
|
|
410
|
+
let s = 0;
|
|
411
|
+
for (; s < t.length; ) {
|
|
412
|
+
const l = t[s];
|
|
413
|
+
if (l.type === "bulletListItem" || l.type === "numberedListItem") {
|
|
414
|
+
const { element: i, nextIndex: m } = await this.renderGroupedListBlocks(
|
|
415
|
+
t,
|
|
416
|
+
s,
|
|
417
|
+
n
|
|
1043
418
|
);
|
|
1044
|
-
|
|
419
|
+
o.push(i), s = m;
|
|
1045
420
|
continue;
|
|
1046
421
|
}
|
|
1047
|
-
const
|
|
1048
|
-
|
|
1049
|
-
/* @__PURE__ */
|
|
1050
|
-
/* @__PURE__ */
|
|
1051
|
-
|
|
1052
|
-
] },
|
|
1053
|
-
),
|
|
422
|
+
const a = await this.transformBlocks(l.children, n + 1), p = await this.mapBlock(l, n, 0), h = this.blocknoteDefaultPropsToReactEmailStyle(l.props);
|
|
423
|
+
o.push(
|
|
424
|
+
/* @__PURE__ */ c(v.Fragment, { children: [
|
|
425
|
+
/* @__PURE__ */ r(w, { style: h, children: p }),
|
|
426
|
+
a.length > 0 && /* @__PURE__ */ r("div", { style: { marginLeft: "24px" }, children: a })
|
|
427
|
+
] }, l.id)
|
|
428
|
+
), s++;
|
|
1054
429
|
}
|
|
1055
|
-
return
|
|
430
|
+
return o;
|
|
1056
431
|
}
|
|
1057
|
-
async toReactEmailDocument(
|
|
1058
|
-
const
|
|
1059
|
-
return
|
|
1060
|
-
/* @__PURE__ */
|
|
1061
|
-
/* @__PURE__ */
|
|
1062
|
-
/* @__PURE__ */
|
|
1063
|
-
|
|
432
|
+
async toReactEmailDocument(t, n) {
|
|
433
|
+
const o = await this.transformBlocks(t);
|
|
434
|
+
return D(
|
|
435
|
+
/* @__PURE__ */ c(B, { children: [
|
|
436
|
+
/* @__PURE__ */ r(A, { children: n == null ? void 0 : n.head }),
|
|
437
|
+
/* @__PURE__ */ c(
|
|
438
|
+
T,
|
|
1064
439
|
{
|
|
1065
440
|
style: {
|
|
1066
441
|
fontFamily: "'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif",
|
|
@@ -1069,11 +444,11 @@ class Hr extends mr {
|
|
|
1069
444
|
color: "#333"
|
|
1070
445
|
},
|
|
1071
446
|
children: [
|
|
1072
|
-
(
|
|
1073
|
-
/* @__PURE__ */
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
447
|
+
(n == null ? void 0 : n.preview) && /* @__PURE__ */ r(F, { children: n.preview }),
|
|
448
|
+
/* @__PURE__ */ r(W, { children: /* @__PURE__ */ c(Z, { children: [
|
|
449
|
+
n == null ? void 0 : n.header,
|
|
450
|
+
o,
|
|
451
|
+
n == null ? void 0 : n.footer
|
|
1077
452
|
] }) })
|
|
1078
453
|
]
|
|
1079
454
|
}
|
|
@@ -1081,17 +456,17 @@ class Hr extends mr {
|
|
|
1081
456
|
] })
|
|
1082
457
|
);
|
|
1083
458
|
}
|
|
1084
|
-
blocknoteDefaultPropsToReactEmailStyle(
|
|
459
|
+
blocknoteDefaultPropsToReactEmailStyle(t) {
|
|
1085
460
|
return {
|
|
1086
|
-
textAlign:
|
|
1087
|
-
backgroundColor:
|
|
1088
|
-
color:
|
|
1089
|
-
alignItems:
|
|
461
|
+
textAlign: t.textAlignment,
|
|
462
|
+
backgroundColor: t.backgroundColor === "default" || !t.backgroundColor ? void 0 : this.options.colors[t.backgroundColor].background,
|
|
463
|
+
color: t.textColor === "default" || !t.textColor ? void 0 : this.options.colors[t.textColor].text,
|
|
464
|
+
alignItems: t.textAlignment === "right" ? "flex-end" : t.textAlignment === "center" ? "center" : void 0
|
|
1090
465
|
};
|
|
1091
466
|
}
|
|
1092
467
|
}
|
|
1093
468
|
export {
|
|
1094
|
-
|
|
1095
|
-
|
|
469
|
+
U as ReactEmailExporter,
|
|
470
|
+
G as reactEmailDefaultSchemaMappings
|
|
1096
471
|
};
|
|
1097
472
|
//# sourceMappingURL=blocknote-xl-email-exporter.js.map
|