@react-email/render 1.0.6 → 1.1.0-canary.1
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 +7 -1
- package/dist/browser/index.d.ts +7 -1
- package/dist/browser/index.js +2 -0
- package/dist/browser/index.mjs +1 -0
- package/dist/node/index.d.mts +7 -1
- package/dist/node/index.d.ts +7 -1
- package/dist/node/index.js +2 -0
- package/dist/node/index.mjs +1 -0
- package/package.json +4 -4
package/dist/browser/index.d.mts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { HtmlToTextOptions, SelectorDefinition } from 'html-to-text';
|
|
2
|
+
import { Options as Options$1 } from 'prettier';
|
|
2
3
|
|
|
3
4
|
type Options = {
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated use {@link pretty} instead
|
|
7
|
+
*/
|
|
4
8
|
pretty?: boolean;
|
|
5
9
|
} & ({
|
|
6
10
|
plainText?: false;
|
|
@@ -19,9 +23,11 @@ declare const render: (element: React.ReactElement, options?: Options) => Promis
|
|
|
19
23
|
|
|
20
24
|
declare const plainTextSelectors: SelectorDefinition[];
|
|
21
25
|
|
|
26
|
+
declare const pretty: (str: string, options?: Options$1) => Promise<string>;
|
|
27
|
+
|
|
22
28
|
/**
|
|
23
29
|
* @deprecated use {@link render}
|
|
24
30
|
*/
|
|
25
31
|
declare const renderAsync: (element: React.ReactElement, options?: Options) => Promise<string>;
|
|
26
32
|
|
|
27
|
-
export { Options, plainTextSelectors, render, renderAsync };
|
|
33
|
+
export { Options, plainTextSelectors, pretty, render, renderAsync };
|
package/dist/browser/index.d.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { HtmlToTextOptions, SelectorDefinition } from 'html-to-text';
|
|
2
|
+
import { Options as Options$1 } from 'prettier';
|
|
2
3
|
|
|
3
4
|
type Options = {
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated use {@link pretty} instead
|
|
7
|
+
*/
|
|
4
8
|
pretty?: boolean;
|
|
5
9
|
} & ({
|
|
6
10
|
plainText?: false;
|
|
@@ -19,9 +23,11 @@ declare const render: (element: React.ReactElement, options?: Options) => Promis
|
|
|
19
23
|
|
|
20
24
|
declare const plainTextSelectors: SelectorDefinition[];
|
|
21
25
|
|
|
26
|
+
declare const pretty: (str: string, options?: Options$1) => Promise<string>;
|
|
27
|
+
|
|
22
28
|
/**
|
|
23
29
|
* @deprecated use {@link render}
|
|
24
30
|
*/
|
|
25
31
|
declare const renderAsync: (element: React.ReactElement, options?: Options) => Promise<string>;
|
|
26
32
|
|
|
27
|
-
export { Options, plainTextSelectors, render, renderAsync };
|
|
33
|
+
export { Options, plainTextSelectors, pretty, render, renderAsync };
|
package/dist/browser/index.js
CHANGED
|
@@ -68,6 +68,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
68
68
|
var browser_exports = {};
|
|
69
69
|
__export(browser_exports, {
|
|
70
70
|
plainTextSelectors: () => plainTextSelectors,
|
|
71
|
+
pretty: () => pretty,
|
|
71
72
|
render: () => render,
|
|
72
73
|
renderAsync: () => renderAsync
|
|
73
74
|
});
|
|
@@ -229,6 +230,7 @@ var renderAsync = (element, options) => {
|
|
|
229
230
|
// Annotate the CommonJS export names for ESM import in node:
|
|
230
231
|
0 && (module.exports = {
|
|
231
232
|
plainTextSelectors,
|
|
233
|
+
pretty,
|
|
232
234
|
render,
|
|
233
235
|
renderAsync
|
|
234
236
|
});
|
package/dist/browser/index.mjs
CHANGED
package/dist/node/index.d.mts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { HtmlToTextOptions, SelectorDefinition } from 'html-to-text';
|
|
2
|
+
import { Options as Options$1 } from 'prettier';
|
|
2
3
|
|
|
3
4
|
type Options = {
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated use {@link pretty} instead
|
|
7
|
+
*/
|
|
4
8
|
pretty?: boolean;
|
|
5
9
|
} & ({
|
|
6
10
|
plainText?: false;
|
|
@@ -19,9 +23,11 @@ declare const render: (element: React.ReactElement, options?: Options) => Promis
|
|
|
19
23
|
|
|
20
24
|
declare const plainTextSelectors: SelectorDefinition[];
|
|
21
25
|
|
|
26
|
+
declare const pretty: (str: string, options?: Options$1) => Promise<string>;
|
|
27
|
+
|
|
22
28
|
/**
|
|
23
29
|
* @deprecated use {@link render}
|
|
24
30
|
*/
|
|
25
31
|
declare const renderAsync: (element: React.ReactElement, options?: Options) => Promise<string>;
|
|
26
32
|
|
|
27
|
-
export { Options, plainTextSelectors, render, renderAsync };
|
|
33
|
+
export { Options, plainTextSelectors, pretty, render, renderAsync };
|
package/dist/node/index.d.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { HtmlToTextOptions, SelectorDefinition } from 'html-to-text';
|
|
2
|
+
import { Options as Options$1 } from 'prettier';
|
|
2
3
|
|
|
3
4
|
type Options = {
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated use {@link pretty} instead
|
|
7
|
+
*/
|
|
4
8
|
pretty?: boolean;
|
|
5
9
|
} & ({
|
|
6
10
|
plainText?: false;
|
|
@@ -19,9 +23,11 @@ declare const render: (element: React.ReactElement, options?: Options) => Promis
|
|
|
19
23
|
|
|
20
24
|
declare const plainTextSelectors: SelectorDefinition[];
|
|
21
25
|
|
|
26
|
+
declare const pretty: (str: string, options?: Options$1) => Promise<string>;
|
|
27
|
+
|
|
22
28
|
/**
|
|
23
29
|
* @deprecated use {@link render}
|
|
24
30
|
*/
|
|
25
31
|
declare const renderAsync: (element: React.ReactElement, options?: Options) => Promise<string>;
|
|
26
32
|
|
|
27
|
-
export { Options, plainTextSelectors, render, renderAsync };
|
|
33
|
+
export { Options, plainTextSelectors, pretty, render, renderAsync };
|
package/dist/node/index.js
CHANGED
|
@@ -68,6 +68,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
68
68
|
var node_exports = {};
|
|
69
69
|
__export(node_exports, {
|
|
70
70
|
plainTextSelectors: () => plainTextSelectors,
|
|
71
|
+
pretty: () => pretty,
|
|
71
72
|
render: () => render,
|
|
72
73
|
renderAsync: () => renderAsync
|
|
73
74
|
});
|
|
@@ -227,6 +228,7 @@ var renderAsync = (element, options) => {
|
|
|
227
228
|
// Annotate the CommonJS export names for ESM import in node:
|
|
228
229
|
0 && (module.exports = {
|
|
229
230
|
plainTextSelectors,
|
|
231
|
+
pretty,
|
|
230
232
|
render,
|
|
231
233
|
renderAsync
|
|
232
234
|
});
|
package/dist/node/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-email/render",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.1.0-canary.1",
|
|
4
4
|
"description": "Transform React components into HTML email templates",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./dist/browser/index.js",
|
|
@@ -77,9 +77,9 @@
|
|
|
77
77
|
"node": ">=18.0.0"
|
|
78
78
|
},
|
|
79
79
|
"dependencies": {
|
|
80
|
-
"html-to-text": "9.0.5",
|
|
81
|
-
"prettier": "3.5.3",
|
|
82
|
-
"react-promise-suspense": "0.3.4"
|
|
80
|
+
"html-to-text": "^9.0.5",
|
|
81
|
+
"prettier": "^3.5.3",
|
|
82
|
+
"react-promise-suspense": "^0.3.4"
|
|
83
83
|
},
|
|
84
84
|
"peerDependencies": {
|
|
85
85
|
"react": "^18.0 || ^19.0 || ^19.0.0-rc",
|