react-tailwind-email-editor 0.0.14 → 0.0.16

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/README.md CHANGED
@@ -1,11 +1,19 @@
1
1
  # React Email Editor
2
2
 
3
- A professional, fully customizable drag-and-drop email template editor built with React, Craft.js, Tailwind CSS.
3
+ Design professional email marketing templates on the fly with a powerful drag-and-drop editor.
4
+
5
+ A fully customizable email template builder built with React, Craft.js, and Tailwind CSS that allows developers to visually design responsive email layouts and export production-ready HTML compatible with major email clients.
6
+
7
+ Ideal for building marketing campaigns, newsletters, promotional emails, transactional emails, and invoice templates quickly without writing complex table-based email HTML.
4
8
 
5
9
  <p align="center">
6
10
  <img src="https://github.com/hemanth-user13/Email-Editor-Npm/blob/master/src/assets/emailEditor1.png" width="900"/>
7
11
  </p>
8
12
 
13
+ <p align="center">
14
+ <img src="https://github.com/hemanth-user13/Email-Editor-Npm/blob/master/src/assets/emailEditor3.png" width="900"/>
15
+ </p>
16
+
9
17
  <p align="center">
10
18
  <img src="https://github.com/hemanth-user13/Email-Editor-Npm/blob/master/src/assets/emailEditor2.png" width="900"/>
11
19
  </p>
@@ -53,10 +61,19 @@ export default {
53
61
 
54
62
  ## Usage
55
63
 
64
+ > [!IMPORTANT]
65
+ > You must import the stylesheet for the editor to display correctly:
66
+ >
67
+ > ```tsx
68
+ > import "react-tailwind-email-editor/dist/style.css";
69
+ > `
70
+ > ```
71
+
56
72
  ### Basic
57
73
 
58
74
  ```tsx
59
75
  import { EmailEditor } from "react-tailwind-email-editor";
76
+ import "react-tailwind-email-editor/dist/style.css";
60
77
 
61
78
  function App() {
62
79
  return <EmailEditor />;
@@ -67,6 +84,7 @@ function App() {
67
84
 
68
85
  ```tsx
69
86
  import { EmailEditor } from "react-tailwind-email-editor";
87
+ import "react-tailwind-email-editor/dist/style.css";
70
88
  import { MyCustomBlock } from "./MyCustomBlock";
71
89
  import { Puzzle } from "lucide-react";
72
90
 
package/dist/index.d.cts CHANGED
@@ -388,28 +388,6 @@ declare const SocialLinks: {
388
388
  };
389
389
  };
390
390
 
391
- interface TwoColumnProps {
392
- leftWidth?: number;
393
- gap?: number;
394
- padding?: number;
395
- backgroundColor?: string;
396
- children?: React.ReactNode;
397
- }
398
- declare const TwoColumn: {
399
- ({ leftWidth, gap, padding, backgroundColor, }: TwoColumnProps): react_jsx_runtime.JSX.Element;
400
- craft: {
401
- props: {
402
- leftWidth: number;
403
- gap: number;
404
- padding: number;
405
- backgroundColor: string;
406
- };
407
- related: {
408
- settings: () => react_jsx_runtime.JSX.Element;
409
- };
410
- };
411
- };
412
-
413
391
  interface CountdownProps {
414
392
  title?: string;
415
393
  days?: number;
@@ -640,4 +618,4 @@ declare const RenderNode: ({ render }: {
640
618
 
641
619
  declare const generateEmailHtml: (nodes: SerializedNodes, customRenderers?: Record<string, HtmlRenderer>) => string;
642
620
 
643
- export { AVAILABLE_VARIABLES, type ComponentRegistry, Container, Countdown, DEFAULT_COMPONENTS, Divider, type EditorCallbacks, type EditorComponentConfig, EditorProvider, type EditorSlots, type EditorTheme, type EditorThemeColors, EmailButton, EmailEditor, type EmailEditorProps, EmailFooter, EmailHeader, type EmailTemplate, type ExportDialogSlotProps, type HtmlRenderer, IconList, ImageBlock, InvoiceTable, Paper, type PreviewDialogSlotProps, PromoCode, RenderNode, SettingsPanel, type SettingsPanelSlotProps, SocialLinks, Spacer, Testimonial, TextBlock, type ToolbarSlotProps, Toolbox, type ToolboxSlotProps, TwoColumn, VariableText, VideoPlaceholder, buildResolver, generateEmailHtml, getCategories, useEditorConfig };
621
+ export { AVAILABLE_VARIABLES, type ComponentRegistry, Container, Countdown, DEFAULT_COMPONENTS, Divider, type EditorCallbacks, type EditorComponentConfig, EditorProvider, type EditorSlots, type EditorTheme, type EditorThemeColors, EmailButton, EmailEditor, type EmailEditorProps, EmailFooter, EmailHeader, type EmailTemplate, type ExportDialogSlotProps, type HtmlRenderer, IconList, ImageBlock, InvoiceTable, Paper, type PreviewDialogSlotProps, PromoCode, RenderNode, SettingsPanel, type SettingsPanelSlotProps, SocialLinks, Spacer, Testimonial, TextBlock, type ToolbarSlotProps, Toolbox, type ToolboxSlotProps, VariableText, VideoPlaceholder, buildResolver, generateEmailHtml, getCategories, useEditorConfig };
package/dist/index.d.ts CHANGED
@@ -388,28 +388,6 @@ declare const SocialLinks: {
388
388
  };
389
389
  };
390
390
 
391
- interface TwoColumnProps {
392
- leftWidth?: number;
393
- gap?: number;
394
- padding?: number;
395
- backgroundColor?: string;
396
- children?: React.ReactNode;
397
- }
398
- declare const TwoColumn: {
399
- ({ leftWidth, gap, padding, backgroundColor, }: TwoColumnProps): react_jsx_runtime.JSX.Element;
400
- craft: {
401
- props: {
402
- leftWidth: number;
403
- gap: number;
404
- padding: number;
405
- backgroundColor: string;
406
- };
407
- related: {
408
- settings: () => react_jsx_runtime.JSX.Element;
409
- };
410
- };
411
- };
412
-
413
391
  interface CountdownProps {
414
392
  title?: string;
415
393
  days?: number;
@@ -640,4 +618,4 @@ declare const RenderNode: ({ render }: {
640
618
 
641
619
  declare const generateEmailHtml: (nodes: SerializedNodes, customRenderers?: Record<string, HtmlRenderer>) => string;
642
620
 
643
- export { AVAILABLE_VARIABLES, type ComponentRegistry, Container, Countdown, DEFAULT_COMPONENTS, Divider, type EditorCallbacks, type EditorComponentConfig, EditorProvider, type EditorSlots, type EditorTheme, type EditorThemeColors, EmailButton, EmailEditor, type EmailEditorProps, EmailFooter, EmailHeader, type EmailTemplate, type ExportDialogSlotProps, type HtmlRenderer, IconList, ImageBlock, InvoiceTable, Paper, type PreviewDialogSlotProps, PromoCode, RenderNode, SettingsPanel, type SettingsPanelSlotProps, SocialLinks, Spacer, Testimonial, TextBlock, type ToolbarSlotProps, Toolbox, type ToolboxSlotProps, TwoColumn, VariableText, VideoPlaceholder, buildResolver, generateEmailHtml, getCategories, useEditorConfig };
621
+ export { AVAILABLE_VARIABLES, type ComponentRegistry, Container, Countdown, DEFAULT_COMPONENTS, Divider, type EditorCallbacks, type EditorComponentConfig, EditorProvider, type EditorSlots, type EditorTheme, type EditorThemeColors, EmailButton, EmailEditor, type EmailEditorProps, EmailFooter, EmailHeader, type EmailTemplate, type ExportDialogSlotProps, type HtmlRenderer, IconList, ImageBlock, InvoiceTable, Paper, type PreviewDialogSlotProps, PromoCode, RenderNode, SettingsPanel, type SettingsPanelSlotProps, SocialLinks, Spacer, Testimonial, TextBlock, type ToolbarSlotProps, Toolbox, type ToolboxSlotProps, VariableText, VideoPlaceholder, buildResolver, generateEmailHtml, getCategories, useEditorConfig };