@rudyzeinoun/email-builder 0.0.25 → 0.0.27
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 +8 -1
- package/dist/index.mjs +8 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -316,7 +316,14 @@ function Reader({ document, rootBlockId }) {
|
|
|
316
316
|
// src/renderers/renderToStaticMarkup.tsx
|
|
317
317
|
function renderToStaticMarkup(document, { rootBlockId }) {
|
|
318
318
|
return "<!DOCTYPE html>" + (0, import_server.renderToStaticMarkup)(
|
|
319
|
-
/* @__PURE__ */ import_react5.default.createElement("html", null, /* @__PURE__ */ import_react5.default.createElement("
|
|
319
|
+
/* @__PURE__ */ import_react5.default.createElement("html", null, /* @__PURE__ */ import_react5.default.createElement("head", null, /* @__PURE__ */ import_react5.default.createElement("meta", { name: "viewport", content: "width=device-width, initial-scale=1.0" }), /* @__PURE__ */ import_react5.default.createElement("style", { type: "text/css" }, `
|
|
320
|
+
.responsive-mobile { display: none !important; }
|
|
321
|
+
.responsive-desktop { display: block !important; }
|
|
322
|
+
@media (max-width: 450px) {
|
|
323
|
+
.responsive-mobile { display: block !important; }
|
|
324
|
+
.responsive-desktop { display: none !important; }
|
|
325
|
+
}
|
|
326
|
+
`)), /* @__PURE__ */ import_react5.default.createElement("body", null, /* @__PURE__ */ import_react5.default.createElement(Reader, { document, rootBlockId })))
|
|
320
327
|
);
|
|
321
328
|
}
|
|
322
329
|
// Annotate the CommonJS export names for ESM import in node:
|
package/dist/index.mjs
CHANGED
|
@@ -283,7 +283,14 @@ function Reader({ document, rootBlockId }) {
|
|
|
283
283
|
// src/renderers/renderToStaticMarkup.tsx
|
|
284
284
|
function renderToStaticMarkup(document, { rootBlockId }) {
|
|
285
285
|
return "<!DOCTYPE html>" + baseRenderToStaticMarkup(
|
|
286
|
-
/* @__PURE__ */ React5.createElement("html", null, /* @__PURE__ */ React5.createElement("
|
|
286
|
+
/* @__PURE__ */ React5.createElement("html", null, /* @__PURE__ */ React5.createElement("head", null, /* @__PURE__ */ React5.createElement("meta", { name: "viewport", content: "width=device-width, initial-scale=1.0" }), /* @__PURE__ */ React5.createElement("style", { type: "text/css" }, `
|
|
287
|
+
.responsive-mobile { display: none !important; }
|
|
288
|
+
.responsive-desktop { display: block !important; }
|
|
289
|
+
@media (max-width: 450px) {
|
|
290
|
+
.responsive-mobile { display: block !important; }
|
|
291
|
+
.responsive-desktop { display: none !important; }
|
|
292
|
+
}
|
|
293
|
+
`)), /* @__PURE__ */ React5.createElement("body", null, /* @__PURE__ */ React5.createElement(Reader, { document, rootBlockId })))
|
|
287
294
|
);
|
|
288
295
|
}
|
|
289
296
|
export {
|