@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.
@@ -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"