@record-evolution/widget-markdown 1.0.10 → 1.0.11

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.
@@ -5550,7 +5550,7 @@ te.registerLanguage("css", Ii);
5550
5550
  te.registerLanguage("plaintext", vi);
5551
5551
  let le = class extends qe {
5552
5552
  constructor() {
5553
- super(), this.version = "1.0.10", this.marked = new Yn(
5553
+ super(), this.version = "1.0.11", this.marked = new Yn(
5554
5554
  hi({
5555
5555
  emptyLangClass: "hljs",
5556
5556
  langPrefix: "hljs language-",
@@ -5568,8 +5568,7 @@ let le = class extends qe {
5568
5568
  this.registerTheme(this.theme);
5569
5569
  }
5570
5570
  registerTheme(t) {
5571
- const e = getComputedStyle(this).getPropertyValue("--re-text-color").trim(), n = getComputedStyle(this).getPropertyValue("--re-tile-background-color").trim();
5572
- this.themeBgColor = n || this.theme?.theme_object?.backgroundColor, this.themeTitleColor = e || this.theme?.theme_object?.title?.textStyle?.color, this.themeSubtitleColor = e || this.theme?.theme_object?.title?.subtextStyle?.color || this.themeTitleColor;
5571
+ this.themeBgColor = `var(--re-tile-background-color, ${this.theme?.theme_object?.backgroundColor || "transparent"})`, this.themeTitleColor = `var(--re-text-color, ${this.theme?.theme_object?.title?.textStyle?.color || "inherit"})`, this.themeSubtitleColor = `var(--re-text-color, ${this.theme?.theme_object?.title?.subtextStyle?.color || this.theme?.theme_object?.title?.textStyle?.color || "inherit"})`;
5573
5572
  }
5574
5573
  /**
5575
5574
  * Converts {{variableName}} to spans with data attributes for efficient updating.
@@ -5727,7 +5726,7 @@ ye([
5727
5726
  Ye()
5728
5727
  ], le.prototype, "lastMarkdown", 2);
5729
5728
  le = ye([
5730
- Pi("widget-markdown-1.0.10")
5729
+ Pi("widget-markdown-1.0.11")
5731
5730
  ], le);
5732
5731
  export {
5733
5732
  le as WidgetMarkdown