File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ import { EmailThemingExample } from './email-theming';
99import { FullEmailBuilder } from './full-email-builder' ;
1010import { Buttons } from './images-and-buttons' ;
1111import { LinkEditing } from './link-editing' ;
12+ import { OneLineEditor } from './one-line-editor' ;
13+ import { OneLineEditorFull } from './one-line-editor-full' ;
1214import { SlashCommands } from './slash-commands' ;
1315
1416export interface ExampleItem {
@@ -23,6 +25,21 @@ export interface ExampleSection {
2325}
2426
2527export const sections : ExampleSection [ ] = [
28+ {
29+ title : 'One-Line Editor' ,
30+ examples : [
31+ {
32+ id : 'one-line-editor' ,
33+ label : 'Minimal' ,
34+ component : OneLineEditor ,
35+ } ,
36+ {
37+ id : 'one-line-editor-full' ,
38+ label : 'Full Features' ,
39+ component : OneLineEditorFull ,
40+ } ,
41+ ] ,
42+ } ,
2643 {
2744 title : 'Getting Started' ,
2845 examples : [
Original file line number Diff line number Diff line change 11{
22 "name" : " @react-email/editor" ,
3- "version" : " 0.0.0-experimental.36 " ,
3+ "version" : " 0.0.0-experimental.37 " ,
44 "description" : " " ,
55 "sideEffects" : [
66 " **/*.css"
99 " dist/**"
1010 ],
1111 "exports" : {
12+ "." : {
13+ "import" : {
14+ "types" : " ./dist/index.d.mts" ,
15+ "default" : " ./dist/index.mjs"
16+ },
17+ "require" : {
18+ "types" : " ./dist/index.d.cts" ,
19+ "default" : " ./dist/index.cjs"
20+ }
21+ },
1222 "./core" : {
1323 "import" : {
1424 "types" : " ./dist/core/index.d.mts" ,
Original file line number Diff line number Diff line change 1+ export {
2+ EmailEditor ,
3+ type EmailEditorProps ,
4+ type EmailEditorRef ,
5+ } from './email-editor' ;
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import { defineConfig } from 'tsdown';
22
33export default defineConfig ( {
44 entry : {
5+ index : 'src/index.ts' ,
56 'core/index' : 'src/core/index.ts' ,
67 'extensions/index' : 'src/extensions/index.ts' ,
78 'plugins/index' : 'src/plugins/index.ts' ,
You can’t perform that action at this time.
0 commit comments