@cosmicdrift/kumiko-renderer-mail-html 0.378.0 → 0.380.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.
Files changed (2) hide show
  1. package/dist/render.js +1 -1
  2. package/package.json +7 -7
package/dist/render.js CHANGED
@@ -477,7 +477,7 @@ export async function mailHtmlRender(req, ctx, options = {}) {
477
477
  throw new RendererError(`renderer-mail-html supports only kind="mail", got "${req.kind}"`, "invalid_payload");
478
478
  }
479
479
  const { slug, locale, variables, unsubscribeUrl, draft } = req.payload;
480
- const tplApi = createTemplateResolverApi(ctx.db);
480
+ const tplApi = createTemplateResolverApi(ctx.db, ctx.registry);
481
481
  const { template, meta } = await resolveMailTemplate(tplApi, ctx, slug, locale, draft);
482
482
  const [format, tenantName, footer, siteUrl, brandSuffix, brandingLogoUrl] = await Promise.all([
483
483
  readDocumentFormat(ctx, locale),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cosmicdrift/kumiko-renderer-mail-html",
3
- "version": "0.378.0",
3
+ "version": "0.380.0",
4
4
  "description": "Renderer-Foundation plugin for branded HTML emails: mail-kind templates (document HTML + subject meta) rendered with isolated Handlebars into an MJML layout, plus plain text via html-to-text. Templates resolved from template-resolver.",
5
5
  "license": "BUSL-1.1",
6
6
  "author": "Marc Frost <marc@cosmicdriftgamestudio.com>",
@@ -19,17 +19,17 @@
19
19
  }
20
20
  },
21
21
  "dependencies": {
22
- "@cosmicdrift/kumiko-bundled-features": "0.378.0",
23
- "@cosmicdrift/kumiko-framework": "0.378.0",
24
- "@cosmicdrift/kumiko-renderer": "0.378.0",
25
- "@cosmicdrift/kumiko-types": "0.378.0",
22
+ "@cosmicdrift/kumiko-bundled-features": "0.380.0",
23
+ "@cosmicdrift/kumiko-framework": "0.380.0",
24
+ "@cosmicdrift/kumiko-renderer": "0.380.0",
25
+ "@cosmicdrift/kumiko-types": "0.380.0",
26
26
  "handlebars": "^4.7.8",
27
27
  "html-to-text": "^9.0.5",
28
28
  "mjml": "^5.2.2"
29
29
  },
30
30
  "devDependencies": {
31
- "@cosmicdrift/kumiko-locale-de": "0.378.0",
32
- "@cosmicdrift/kumiko-testing": "0.378.0",
31
+ "@cosmicdrift/kumiko-locale-de": "0.380.0",
32
+ "@cosmicdrift/kumiko-testing": "0.380.0",
33
33
  "@types/html-to-text": "^9.0.4",
34
34
  "@types/mjml": "^5.0.0"
35
35
  },