@react-email/render 1.0.3-canary.2 → 1.0.3-canary.3
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.d.mts +4 -8
- package/dist/index.d.ts +4 -8
- package/dist/index.js +668 -44
- package/dist/index.mjs +666 -41
- package/package.json +6 -4
- package/dist/edge-light/index.d.mts +0 -27
- package/dist/edge-light/index.d.ts +0 -27
- package/dist/edge-light/index.js +0 -216
- package/dist/edge-light/index.mjs +0 -180
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { HtmlToTextOptions
|
|
1
|
+
import { HtmlToTextOptions } from 'html-to-text';
|
|
2
|
+
import { Options as Options$1 } from 'prettier';
|
|
2
3
|
|
|
3
4
|
type Options = {
|
|
4
5
|
pretty?: boolean;
|
|
@@ -17,11 +18,6 @@ type Options = {
|
|
|
17
18
|
|
|
18
19
|
declare const render: (element: React.ReactElement, options?: Options) => Promise<string>;
|
|
19
20
|
|
|
20
|
-
|
|
21
|
-
* @deprecated use `render`
|
|
22
|
-
*/
|
|
23
|
-
declare const renderAsync: (element: React.ReactElement, options?: Options) => Promise<string>;
|
|
21
|
+
declare const pretty: (str: string, options?: Options$1) => Promise<string>;
|
|
24
22
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
export { Options, plainTextSelectors, render, renderAsync };
|
|
23
|
+
export { Options, pretty, render };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { HtmlToTextOptions
|
|
1
|
+
import { HtmlToTextOptions } from 'html-to-text';
|
|
2
|
+
import { Options as Options$1 } from 'prettier';
|
|
2
3
|
|
|
3
4
|
type Options = {
|
|
4
5
|
pretty?: boolean;
|
|
@@ -17,11 +18,6 @@ type Options = {
|
|
|
17
18
|
|
|
18
19
|
declare const render: (element: React.ReactElement, options?: Options) => Promise<string>;
|
|
19
20
|
|
|
20
|
-
|
|
21
|
-
* @deprecated use `render`
|
|
22
|
-
*/
|
|
23
|
-
declare const renderAsync: (element: React.ReactElement, options?: Options) => Promise<string>;
|
|
21
|
+
declare const pretty: (str: string, options?: Options$1) => Promise<string>;
|
|
24
22
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
export { Options, plainTextSelectors, render, renderAsync };
|
|
23
|
+
export { Options, pretty, render };
|