@kgalexander/mcreate 1.0.5 → 1.0.6

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.js CHANGED
@@ -16988,7 +16988,7 @@ async function captureTemplateImage(compiledHtml) {
16988
16988
  await new Promise((resolve) => requestAnimationFrame(resolve));
16989
16989
  await new Promise((resolve) => setTimeout(resolve, 100));
16990
16990
  try {
16991
- const dataUrl = await (0, import_html_to_image.toPng)(container, {
16991
+ const dataUrl = await (0, import_html_to_image.toJpeg)(container, {
16992
16992
  width: CAPTURE_WIDTH,
16993
16993
  quality: 0.1,
16994
16994
  pixelRatio: 1,
package/dist/index.mjs CHANGED
@@ -204,7 +204,7 @@ function TemplateNameDialog() {
204
204
  }
205
205
 
206
206
  // src/core/editor/utils/capture-template.ts
207
- import { toPng } from "html-to-image";
207
+ import { toJpeg } from "html-to-image";
208
208
  var CAPTURE_WIDTH = 600;
209
209
  async function captureTemplateImage(compiledHtml) {
210
210
  const container = document.createElement("div");
@@ -222,7 +222,7 @@ async function captureTemplateImage(compiledHtml) {
222
222
  await new Promise((resolve) => requestAnimationFrame(resolve));
223
223
  await new Promise((resolve) => setTimeout(resolve, 100));
224
224
  try {
225
- const dataUrl = await toPng(container, {
225
+ const dataUrl = await toJpeg(container, {
226
226
  width: CAPTURE_WIDTH,
227
227
  quality: 0.1,
228
228
  pixelRatio: 1,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kgalexander/mcreate",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "Maillow email template editor",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",