@kgalexander/mcreate 1.0.4 → 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.
@@ -1707,6 +1707,7 @@ var empty_default = {
1707
1707
  version: "1.0.0",
1708
1708
  published: true,
1709
1709
  creator: "Kevin Guerrero",
1710
+ image: "https://mzyngaqmbvhpgmmipndy.supabase.co/storage/v1/object/public/Maillow/placeholder_image.png",
1710
1711
  content: [
1711
1712
  {
1712
1713
  id: "main-body",
@@ -5,7 +5,7 @@ import {
5
5
  MAILLOW_EMAIL_EDITOR_VERSION,
6
6
  Preview,
7
7
  useEditorStore
8
- } from "./chunk-RSM3GOFU.mjs";
8
+ } from "./chunk-B46UUREH.mjs";
9
9
  export {
10
10
  Editor,
11
11
  History,
package/dist/index.d.mts CHANGED
@@ -253,6 +253,7 @@ type SocialItemElement = {
253
253
  type TemplateJSON = {
254
254
  id: string;
255
255
  name: string;
256
+ image: string;
256
257
  version: string;
257
258
  published: boolean;
258
259
  creator: string;
package/dist/index.d.ts CHANGED
@@ -253,6 +253,7 @@ type SocialItemElement = {
253
253
  type TemplateJSON = {
254
254
  id: string;
255
255
  name: string;
256
+ image: string;
256
257
  version: string;
257
258
  published: boolean;
258
259
  creator: string;
package/dist/index.js CHANGED
@@ -1817,6 +1817,7 @@ var init_empty = __esm({
1817
1817
  version: "1.0.0",
1818
1818
  published: true,
1819
1819
  creator: "Kevin Guerrero",
1820
+ image: "https://mzyngaqmbvhpgmmipndy.supabase.co/storage/v1/object/public/Maillow/placeholder_image.png",
1820
1821
  content: [
1821
1822
  {
1822
1823
  id: "main-body",
@@ -16987,7 +16988,7 @@ async function captureTemplateImage(compiledHtml) {
16987
16988
  await new Promise((resolve) => requestAnimationFrame(resolve));
16988
16989
  await new Promise((resolve) => setTimeout(resolve, 100));
16989
16990
  try {
16990
- const dataUrl = await (0, import_html_to_image.toPng)(container, {
16991
+ const dataUrl = await (0, import_html_to_image.toJpeg)(container, {
16991
16992
  width: CAPTURE_WIDTH,
16992
16993
  quality: 0.1,
16993
16994
  pixelRatio: 1,
package/dist/index.mjs CHANGED
@@ -60,7 +60,7 @@ import {
60
60
  setupDragImage,
61
61
  useEditorStore,
62
62
  useSidebarContext
63
- } from "./chunk-RSM3GOFU.mjs";
63
+ } from "./chunk-B46UUREH.mjs";
64
64
 
65
65
  // src/core/editor/components/email-template-v2/header.tsx
66
66
  import { ArrowLeftIcon, CopyIcon, MegaphoneIcon, MoreHorizontalIcon, PencilIcon, SendIcon, TrashIcon } from "lucide-react";
@@ -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,
@@ -11708,7 +11708,7 @@ function useAutoSave() {
11708
11708
  // src/core/editor/components/email-template-v2/template-page.tsx
11709
11709
  import "react-json-view-lite/dist/index.css";
11710
11710
  import { jsx as jsx74, jsxs as jsxs59 } from "react/jsx-runtime";
11711
- var Editor2 = lazy(() => import("./core-HSOSY6BB.mjs").then((module) => ({
11711
+ var Editor2 = lazy(() => import("./core-FWDS3AQF.mjs").then((module) => ({
11712
11712
  default: module.Editor
11713
11713
  })));
11714
11714
  function TemplatePage({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kgalexander/mcreate",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "Maillow email template editor",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",