@react-email/render 1.1.0-canary.1 → 1.1.0
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
CHANGED
|
@@ -19,15 +19,15 @@ type Options = {
|
|
|
19
19
|
htmlToTextOptions?: HtmlToTextOptions;
|
|
20
20
|
});
|
|
21
21
|
|
|
22
|
-
declare const render: (element: React.ReactElement, options?: Options) => Promise<string>;
|
|
23
|
-
|
|
24
22
|
declare const plainTextSelectors: SelectorDefinition[];
|
|
25
23
|
|
|
26
24
|
declare const pretty: (str: string, options?: Options$1) => Promise<string>;
|
|
27
25
|
|
|
26
|
+
declare const render: (element: React.ReactElement, options?: Options) => Promise<string>;
|
|
27
|
+
|
|
28
28
|
/**
|
|
29
29
|
* @deprecated use {@link render}
|
|
30
30
|
*/
|
|
31
31
|
declare const renderAsync: (element: React.ReactElement, options?: Options) => Promise<string>;
|
|
32
32
|
|
|
33
|
-
export { Options, plainTextSelectors, pretty, render, renderAsync };
|
|
33
|
+
export { type Options, plainTextSelectors, pretty, render, renderAsync };
|
package/dist/browser/index.d.ts
CHANGED
|
@@ -19,15 +19,15 @@ type Options = {
|
|
|
19
19
|
htmlToTextOptions?: HtmlToTextOptions;
|
|
20
20
|
});
|
|
21
21
|
|
|
22
|
-
declare const render: (element: React.ReactElement, options?: Options) => Promise<string>;
|
|
23
|
-
|
|
24
22
|
declare const plainTextSelectors: SelectorDefinition[];
|
|
25
23
|
|
|
26
24
|
declare const pretty: (str: string, options?: Options$1) => Promise<string>;
|
|
27
25
|
|
|
26
|
+
declare const render: (element: React.ReactElement, options?: Options) => Promise<string>;
|
|
27
|
+
|
|
28
28
|
/**
|
|
29
29
|
* @deprecated use {@link render}
|
|
30
30
|
*/
|
|
31
31
|
declare const renderAsync: (element: React.ReactElement, options?: Options) => Promise<string>;
|
|
32
32
|
|
|
33
|
-
export { Options, plainTextSelectors, pretty, render, renderAsync };
|
|
33
|
+
export { type Options, plainTextSelectors, pretty, render, renderAsync };
|
package/dist/browser/index.js
CHANGED
|
@@ -65,14 +65,14 @@ var __async = (__this, __arguments, generator) => {
|
|
|
65
65
|
};
|
|
66
66
|
|
|
67
67
|
// src/browser/index.ts
|
|
68
|
-
var
|
|
69
|
-
__export(
|
|
68
|
+
var index_exports = {};
|
|
69
|
+
__export(index_exports, {
|
|
70
70
|
plainTextSelectors: () => plainTextSelectors,
|
|
71
71
|
pretty: () => pretty,
|
|
72
72
|
render: () => render,
|
|
73
73
|
renderAsync: () => renderAsync
|
|
74
74
|
});
|
|
75
|
-
module.exports = __toCommonJS(
|
|
75
|
+
module.exports = __toCommonJS(index_exports);
|
|
76
76
|
|
|
77
77
|
// src/browser/render.tsx
|
|
78
78
|
var import_html_to_text = require("html-to-text");
|
package/dist/node/index.d.mts
CHANGED
|
@@ -19,15 +19,15 @@ type Options = {
|
|
|
19
19
|
htmlToTextOptions?: HtmlToTextOptions;
|
|
20
20
|
});
|
|
21
21
|
|
|
22
|
-
declare const render: (element: React.ReactElement, options?: Options) => Promise<string>;
|
|
23
|
-
|
|
24
22
|
declare const plainTextSelectors: SelectorDefinition[];
|
|
25
23
|
|
|
26
24
|
declare const pretty: (str: string, options?: Options$1) => Promise<string>;
|
|
27
25
|
|
|
26
|
+
declare const render: (element: React.ReactElement, options?: Options) => Promise<string>;
|
|
27
|
+
|
|
28
28
|
/**
|
|
29
29
|
* @deprecated use {@link render}
|
|
30
30
|
*/
|
|
31
31
|
declare const renderAsync: (element: React.ReactElement, options?: Options) => Promise<string>;
|
|
32
32
|
|
|
33
|
-
export { Options, plainTextSelectors, pretty, render, renderAsync };
|
|
33
|
+
export { type Options, plainTextSelectors, pretty, render, renderAsync };
|
package/dist/node/index.d.ts
CHANGED
|
@@ -19,15 +19,15 @@ type Options = {
|
|
|
19
19
|
htmlToTextOptions?: HtmlToTextOptions;
|
|
20
20
|
});
|
|
21
21
|
|
|
22
|
-
declare const render: (element: React.ReactElement, options?: Options) => Promise<string>;
|
|
23
|
-
|
|
24
22
|
declare const plainTextSelectors: SelectorDefinition[];
|
|
25
23
|
|
|
26
24
|
declare const pretty: (str: string, options?: Options$1) => Promise<string>;
|
|
27
25
|
|
|
26
|
+
declare const render: (element: React.ReactElement, options?: Options) => Promise<string>;
|
|
27
|
+
|
|
28
28
|
/**
|
|
29
29
|
* @deprecated use {@link render}
|
|
30
30
|
*/
|
|
31
31
|
declare const renderAsync: (element: React.ReactElement, options?: Options) => Promise<string>;
|
|
32
32
|
|
|
33
|
-
export { Options, plainTextSelectors, pretty, render, renderAsync };
|
|
33
|
+
export { type Options, plainTextSelectors, pretty, render, renderAsync };
|
package/dist/node/index.js
CHANGED
|
@@ -65,14 +65,14 @@ var __async = (__this, __arguments, generator) => {
|
|
|
65
65
|
};
|
|
66
66
|
|
|
67
67
|
// src/node/index.ts
|
|
68
|
-
var
|
|
69
|
-
__export(
|
|
68
|
+
var index_exports = {};
|
|
69
|
+
__export(index_exports, {
|
|
70
70
|
plainTextSelectors: () => plainTextSelectors,
|
|
71
71
|
pretty: () => pretty,
|
|
72
72
|
render: () => render,
|
|
73
73
|
renderAsync: () => renderAsync
|
|
74
74
|
});
|
|
75
|
-
module.exports = __toCommonJS(
|
|
75
|
+
module.exports = __toCommonJS(index_exports);
|
|
76
76
|
|
|
77
77
|
// src/node/render.tsx
|
|
78
78
|
var import_html_to_text = require("html-to-text");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-email/render",
|
|
3
|
-
"version": "1.1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Transform React components into HTML email templates",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./dist/browser/index.js",
|
|
@@ -86,14 +86,14 @@
|
|
|
86
86
|
"react-dom": "^18.0 || ^19.0 || ^19.0.0-rc"
|
|
87
87
|
},
|
|
88
88
|
"devDependencies": {
|
|
89
|
-
"@edge-runtime/vm": "
|
|
89
|
+
"@edge-runtime/vm": "5.0.0",
|
|
90
90
|
"@types/html-to-text": "9.0.4",
|
|
91
91
|
"@types/prettier": "3.0.0",
|
|
92
92
|
"@types/react": "npm:types-react@19.0.0-rc.1",
|
|
93
93
|
"@types/react-dom": "npm:types-react-dom@19.0.0",
|
|
94
|
-
"jsdom": "
|
|
95
|
-
"tsup": "
|
|
96
|
-
"typescript": "5.
|
|
94
|
+
"jsdom": "26.1.0",
|
|
95
|
+
"tsup": "8.4.0",
|
|
96
|
+
"typescript": "5.8.3",
|
|
97
97
|
"tsconfig": "0.0.0"
|
|
98
98
|
},
|
|
99
99
|
"publishConfig": {
|