@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 CHANGED
@@ -1,4 +1,5 @@
1
- import { HtmlToTextOptions, SelectorDefinition } from 'html-to-text';
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
- declare const plainTextSelectors: SelectorDefinition[];
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, SelectorDefinition } from 'html-to-text';
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
- declare const plainTextSelectors: SelectorDefinition[];
26
-
27
- export { Options, plainTextSelectors, render, renderAsync };
23
+ export { Options, pretty, render };