@react-email/render 1.1.2-canary.0 → 1.1.2

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.
@@ -23,7 +23,7 @@ declare const plainTextSelectors: SelectorDefinition[];
23
23
 
24
24
  declare const pretty: (str: string, options?: Options$1) => Promise<string>;
25
25
 
26
- declare const render: (element: React.ReactElement, options?: Options) => Promise<string>;
26
+ declare const render: (node: React.ReactNode, options?: Options) => Promise<string>;
27
27
 
28
28
  /**
29
29
  * @deprecated use {@link render}
@@ -23,7 +23,7 @@ declare const plainTextSelectors: SelectorDefinition[];
23
23
 
24
24
  declare const pretty: (str: string, options?: Options$1) => Promise<string>;
25
25
 
26
- declare const render: (element: React.ReactElement, options?: Options) => Promise<string>;
26
+ declare const render: (node: React.ReactNode, options?: Options) => Promise<string>;
27
27
 
28
28
  /**
29
29
  * @deprecated use {@link render}
@@ -89,7 +89,7 @@ var plainTextSelectors = [
89
89
  ];
90
90
 
91
91
  // src/shared/utils/pretty.ts
92
- var import_html = __toESM(require("prettier/plugins/html"));
92
+ var html = __toESM(require("prettier/plugins/html"));
93
93
  var import_standalone = require("prettier/standalone");
94
94
  function recursivelyMapDoc(doc, callback) {
95
95
  if (Array.isArray(doc)) {
@@ -124,7 +124,7 @@ function recursivelyMapDoc(doc, callback) {
124
124
  }
125
125
  return callback(doc);
126
126
  }
127
- var modifiedHtml = __spreadValues({}, import_html.default);
127
+ var modifiedHtml = __spreadValues({}, html);
128
128
  if (modifiedHtml.printers) {
129
129
  const previousPrint = modifiedHtml.printers.html.print;
130
130
  modifiedHtml.printers.html.print = (path, options, print, args) => {
@@ -187,8 +187,8 @@ var readStream = (stream) => __async(void 0, null, function* () {
187
187
  });
188
188
  return decoder.decode(mergedChunks);
189
189
  });
190
- var render = (element, options) => __async(void 0, null, function* () {
191
- const suspendedElement = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react.Suspense, { children: element });
190
+ var render = (node, options) => __async(void 0, null, function* () {
191
+ const suspendedElement = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react.Suspense, { children: node });
192
192
  const reactDOMServer = yield import("react-dom/server").then(
193
193
  // This is beacuse react-dom/server is CJS
194
194
  (m) => m.default
@@ -53,7 +53,7 @@ var plainTextSelectors = [
53
53
  ];
54
54
 
55
55
  // src/shared/utils/pretty.ts
56
- import html from "prettier/plugins/html";
56
+ import * as html from "prettier/plugins/html";
57
57
  import { format } from "prettier/standalone";
58
58
  function recursivelyMapDoc(doc, callback) {
59
59
  if (Array.isArray(doc)) {
@@ -151,8 +151,8 @@ var readStream = (stream) => __async(void 0, null, function* () {
151
151
  });
152
152
  return decoder.decode(mergedChunks);
153
153
  });
154
- var render = (element, options) => __async(void 0, null, function* () {
155
- const suspendedElement = /* @__PURE__ */ jsx(Suspense, { children: element });
154
+ var render = (node, options) => __async(void 0, null, function* () {
155
+ const suspendedElement = /* @__PURE__ */ jsx(Suspense, { children: node });
156
156
  const reactDOMServer = yield import("react-dom/server").then(
157
157
  // This is beacuse react-dom/server is CJS
158
158
  (m) => m.default
@@ -23,7 +23,7 @@ declare const plainTextSelectors: SelectorDefinition[];
23
23
 
24
24
  declare const pretty: (str: string, options?: Options$1) => Promise<string>;
25
25
 
26
- declare const render: (element: React.ReactElement, options?: Options) => Promise<string>;
26
+ declare const render: (node: React.ReactNode, options?: Options) => Promise<string>;
27
27
 
28
28
  /**
29
29
  * @deprecated use {@link render}
@@ -23,7 +23,7 @@ declare const plainTextSelectors: SelectorDefinition[];
23
23
 
24
24
  declare const pretty: (str: string, options?: Options$1) => Promise<string>;
25
25
 
26
- declare const render: (element: React.ReactElement, options?: Options) => Promise<string>;
26
+ declare const render: (node: React.ReactNode, options?: Options) => Promise<string>;
27
27
 
28
28
  /**
29
29
  * @deprecated use {@link render}
@@ -89,7 +89,7 @@ var plainTextSelectors = [
89
89
  ];
90
90
 
91
91
  // src/shared/utils/pretty.ts
92
- var import_html = __toESM(require("prettier/plugins/html"));
92
+ var html = __toESM(require("prettier/plugins/html"));
93
93
  var import_standalone = require("prettier/standalone");
94
94
  function recursivelyMapDoc(doc, callback) {
95
95
  if (Array.isArray(doc)) {
@@ -124,7 +124,7 @@ function recursivelyMapDoc(doc, callback) {
124
124
  }
125
125
  return callback(doc);
126
126
  }
127
- var modifiedHtml = __spreadValues({}, import_html.default);
127
+ var modifiedHtml = __spreadValues({}, html);
128
128
  if (modifiedHtml.printers) {
129
129
  const previousPrint = modifiedHtml.printers.html.print;
130
130
  modifiedHtml.printers.html.print = (path, options, print, args) => {
@@ -185,8 +185,8 @@ var readStream = (stream) => __async(void 0, null, function* () {
185
185
 
186
186
  // src/node/render.tsx
187
187
  var import_jsx_runtime = require("react/jsx-runtime");
188
- var render = (element, options) => __async(void 0, null, function* () {
189
- const suspendedElement = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react.Suspense, { children: element });
188
+ var render = (node, options) => __async(void 0, null, function* () {
189
+ const suspendedElement = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react.Suspense, { children: node });
190
190
  const reactDOMServer = yield import("react-dom/server").then(
191
191
  // This is beacuse react-dom/server is CJS
192
192
  (m) => m.default
@@ -53,7 +53,7 @@ var plainTextSelectors = [
53
53
  ];
54
54
 
55
55
  // src/shared/utils/pretty.ts
56
- import html from "prettier/plugins/html";
56
+ import * as html from "prettier/plugins/html";
57
57
  import { format } from "prettier/standalone";
58
58
  function recursivelyMapDoc(doc, callback) {
59
59
  if (Array.isArray(doc)) {
@@ -149,8 +149,8 @@ var readStream = (stream) => __async(void 0, null, function* () {
149
149
 
150
150
  // src/node/render.tsx
151
151
  import { jsx } from "react/jsx-runtime";
152
- var render = (element, options) => __async(void 0, null, function* () {
153
- const suspendedElement = /* @__PURE__ */ jsx(Suspense, { children: element });
152
+ var render = (node, options) => __async(void 0, null, function* () {
153
+ const suspendedElement = /* @__PURE__ */ jsx(Suspense, { children: node });
154
154
  const reactDOMServer = yield import("react-dom/server").then(
155
155
  // This is beacuse react-dom/server is CJS
156
156
  (m) => m.default
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-email/render",
3
- "version": "1.1.2-canary.0",
3
+ "version": "1.1.2",
4
4
  "description": "Transform React components into HTML email templates",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/browser/index.js",