@cedarjs/mailer-renderer-mjml-react 7.0.0-canary.3012 → 7.0.0-canary.3014

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/index.d.ts CHANGED
@@ -5,7 +5,7 @@ import { AbstractMailRenderer } from '@cedarjs/mailer-core';
5
5
  export type SupportedOutputFormats = 'html';
6
6
  export type RendererOptions = MailRendererOptions<SupportedOutputFormats> & Parameters<typeof mjml2html>[1];
7
7
  export declare class MJMLReactRenderer extends AbstractMailRenderer {
8
- render(template: Parameters<typeof renderToMjml>[0], options: RendererOptions, _utilities?: MailUtilities): MailRenderedContent;
8
+ render(template: Parameters<typeof renderToMjml>[0], options: RendererOptions, _utilities?: MailUtilities): Promise<MailRenderedContent>;
9
9
  internal(): Record<string, unknown>;
10
10
  }
11
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAA;AACtE,OAAO,SAAS,MAAM,MAAM,CAAA;AAE5B,OAAO,KAAK,EACV,mBAAmB,EACnB,aAAa,EACb,mBAAmB,EACpB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAE3D,MAAM,MAAM,sBAAsB,GAAG,MAAM,CAAA;AAC3C,MAAM,MAAM,eAAe,GAAG,mBAAmB,CAAC,sBAAsB,CAAC,GACvE,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC,CAAC,CAAC,CAAA;AAEjC,qBAAa,iBAAkB,SAAQ,oBAAoB;IACzD,MAAM,CACJ,QAAQ,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC,CAAC,CAAC,EAC5C,OAAO,EAAE,eAAe,EACxB,UAAU,CAAC,EAAE,aAAa,GACzB,mBAAmB;IAStB,QAAQ,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAGpC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAA;AACtE,OAAO,SAAS,MAAM,MAAM,CAAA;AAE5B,OAAO,KAAK,EACV,mBAAmB,EACnB,aAAa,EACb,mBAAmB,EACpB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAE3D,MAAM,MAAM,sBAAsB,GAAG,MAAM,CAAA;AAC3C,MAAM,MAAM,eAAe,GAAG,mBAAmB,CAAC,sBAAsB,CAAC,GACvE,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC,CAAC,CAAC,CAAA;AAEjC,qBAAa,iBAAkB,SAAQ,oBAAoB;IACnD,MAAM,CACV,QAAQ,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC,CAAC,CAAC,EAC5C,OAAO,EAAE,eAAe,EACxB,UAAU,CAAC,EAAE,aAAa,GACzB,OAAO,CAAC,mBAAmB,CAAC;IAS/B,QAAQ,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAGpC"}
package/dist/index.js CHANGED
@@ -2,8 +2,8 @@ import { renderToMjml } from "@faire/mjml-react/utils/renderToMjml.js";
2
2
  import mjml2html from "mjml";
3
3
  import { AbstractMailRenderer } from "@cedarjs/mailer-core";
4
4
  class MJMLReactRenderer extends AbstractMailRenderer {
5
- render(template, options, _utilities) {
6
- const renderingResult = mjml2html(renderToMjml(template), options);
5
+ async render(template, options, _utilities) {
6
+ const renderingResult = await mjml2html(renderToMjml(template), options);
7
7
  if (renderingResult.errors.length > 0) {
8
8
  throw new Error(renderingResult.errors.join("\n"));
9
9
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/mailer-renderer-mjml-react",
3
- "version": "7.0.0-canary.3012",
3
+ "version": "7.0.0-canary.3014",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/cedarjs/cedar.git",
@@ -21,13 +21,13 @@
21
21
  "prepublishOnly": "NODE_ENV=production yarn build"
22
22
  },
23
23
  "dependencies": {
24
- "@cedarjs/mailer-core": "7.0.0-canary.3012",
25
- "@faire/mjml-react": "3.5.4",
26
- "mjml": "4.18.0"
24
+ "@cedarjs/mailer-core": "7.0.0-canary.3014",
25
+ "@faire/mjml-react": "4.0.1",
26
+ "mjml": "5.0.0"
27
27
  },
28
28
  "devDependencies": {
29
- "@cedarjs/framework-tools": "7.0.0-canary.3012",
30
- "@types/mjml": "4",
29
+ "@cedarjs/framework-tools": "7.0.0-canary.3014",
30
+ "@types/mjml": "5",
31
31
  "typescript": "5.9.3"
32
32
  },
33
33
  "publishConfig": {