@blocknote/xl-email-exporter 0.41.1 → 0.42.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/blocknote-xl-email-exporter.js +3 -2
- package/dist/blocknote-xl-email-exporter.js.map +1 -1
- package/dist/blocknote-xl-email-exporter.umd.cjs +1 -1
- package/dist/blocknote-xl-email-exporter.umd.cjs.map +1 -1
- package/dist/webpack-stats.json +1 -1
- package/package.json +15 -15
- package/src/react-email/__snapshots__/reactEmailExporter.test.tsx.snap +17 -17
- package/src/react-email/reactEmailExporter.tsx +2 -6
|
@@ -333,15 +333,11 @@ export class ReactEmailExporter<
|
|
|
333
333
|
backgroundColor:
|
|
334
334
|
props.backgroundColor === "default" || !props.backgroundColor
|
|
335
335
|
? undefined
|
|
336
|
-
: this.options.colors[
|
|
337
|
-
props.backgroundColor as keyof typeof this.options.colors
|
|
338
|
-
].background,
|
|
336
|
+
: this.options.colors[props.backgroundColor]?.background,
|
|
339
337
|
color:
|
|
340
338
|
props.textColor === "default" || !props.textColor
|
|
341
339
|
? undefined
|
|
342
|
-
: this.options.colors[
|
|
343
|
-
props.textColor as keyof typeof this.options.colors
|
|
344
|
-
].text,
|
|
340
|
+
: this.options.colors[props.textColor]?.text,
|
|
345
341
|
alignItems:
|
|
346
342
|
props.textAlignment === "right"
|
|
347
343
|
? "flex-end"
|