@rudyzeinoun/email-builder 0.0.25 → 0.0.26

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
@@ -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("body", null, /* @__PURE__ */ import_react5.default.createElement(Reader, { document, rootBlockId })))
319
+ /* @__PURE__ */ import_react5.default.createElement("html", null, /* @__PURE__ */ import_react5.default.createElement("head", null, /* @__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: 370px) {
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("body", null, /* @__PURE__ */ React5.createElement(Reader, { document, rootBlockId })))
286
+ /* @__PURE__ */ React5.createElement("html", null, /* @__PURE__ */ React5.createElement("head", null, /* @__PURE__ */ React5.createElement("style", { type: "text/css" }, `
287
+ .responsive-mobile { display: none !important; }
288
+ .responsive-desktop { display: block !important; }
289
+ @media (max-width: 370px) {
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 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rudyzeinoun/email-builder",
3
- "version": "0.0.25",
3
+ "version": "0.0.26",
4
4
  "description": "React component to render email messages",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",