Skip to content

Commit 86e9c86

Browse files
joaopcmgabrielmfern
authored andcommitted
feat(editor): add EmailEditor high-level component (#3115)
1 parent dff3d8b commit 86e9c86

4 files changed

Lines changed: 34 additions & 1 deletion

File tree

‎packages/editor/examples/src/examples/index.ts‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ import { EmailThemingExample } from './email-theming';
99
import { FullEmailBuilder } from './full-email-builder';
1010
import { Buttons } from './images-and-buttons';
1111
import { LinkEditing } from './link-editing';
12+
import { OneLineEditor } from './one-line-editor';
13+
import { OneLineEditorFull } from './one-line-editor-full';
1214
import { SlashCommands } from './slash-commands';
1315

1416
export interface ExampleItem {
@@ -23,6 +25,21 @@ export interface ExampleSection {
2325
}
2426

2527
export 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: [

‎packages/editor/package.json‎

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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"
@@ -9,6 +9,16 @@
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",

‎packages/editor/src/index.ts‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
export {
2+
EmailEditor,
3+
type EmailEditorProps,
4+
type EmailEditorRef,
5+
} from './email-editor';

‎packages/editor/tsdown.config.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { defineConfig } from 'tsdown';
22

33
export 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',

0 commit comments

Comments
 (0)