@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.
- package/dist/browser/index.d.mts +1 -1
- package/dist/browser/index.d.ts +1 -1
- package/dist/browser/index.js +4 -4
- package/dist/browser/index.mjs +3 -3
- package/dist/node/index.d.mts +1 -1
- package/dist/node/index.d.ts +1 -1
- package/dist/node/index.js +4 -4
- package/dist/node/index.mjs +3 -3
- package/package.json +1 -1
package/dist/browser/index.d.mts
CHANGED
|
@@ -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: (
|
|
26
|
+
declare const render: (node: React.ReactNode, options?: Options) => Promise<string>;
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
29
|
* @deprecated use {@link render}
|
package/dist/browser/index.d.ts
CHANGED
|
@@ -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: (
|
|
26
|
+
declare const render: (node: React.ReactNode, options?: Options) => Promise<string>;
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
29
|
* @deprecated use {@link render}
|
package/dist/browser/index.js
CHANGED
|
@@ -89,7 +89,7 @@ var plainTextSelectors = [
|
|
|
89
89
|
];
|
|
90
90
|
|
|
91
91
|
// src/shared/utils/pretty.ts
|
|
92
|
-
var
|
|
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({},
|
|
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 = (
|
|
191
|
-
const suspendedElement = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react.Suspense, { children:
|
|
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
|
package/dist/browser/index.mjs
CHANGED
|
@@ -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 = (
|
|
155
|
-
const suspendedElement = /* @__PURE__ */ jsx(Suspense, { children:
|
|
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
|
package/dist/node/index.d.mts
CHANGED
|
@@ -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: (
|
|
26
|
+
declare const render: (node: React.ReactNode, options?: Options) => Promise<string>;
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
29
|
* @deprecated use {@link render}
|
package/dist/node/index.d.ts
CHANGED
|
@@ -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: (
|
|
26
|
+
declare const render: (node: React.ReactNode, options?: Options) => Promise<string>;
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
29
|
* @deprecated use {@link render}
|
package/dist/node/index.js
CHANGED
|
@@ -89,7 +89,7 @@ var plainTextSelectors = [
|
|
|
89
89
|
];
|
|
90
90
|
|
|
91
91
|
// src/shared/utils/pretty.ts
|
|
92
|
-
var
|
|
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({},
|
|
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 = (
|
|
189
|
-
const suspendedElement = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react.Suspense, { children:
|
|
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
|
package/dist/node/index.mjs
CHANGED
|
@@ -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 = (
|
|
153
|
-
const suspendedElement = /* @__PURE__ */ jsx(Suspense, { children:
|
|
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
|