react-email-studio 3.3.1 → 3.4.0
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/CHANGELOG.md +10 -0
- package/dist/index.cjs +4 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +55 -53
- package/dist/index.d.ts +55 -53
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,16 @@ All notable changes to this project are documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [3.4.0] - 2026-05-08
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- **`ReactEmailEditor.jsonToHtml(json, opts?)`**: static method on the component for converting a saved design (object or JSON string) to a full HTML email document — same implementation as the standalone `jsonToHtml` export, no extra setup needed.
|
|
13
|
+
|
|
14
|
+
### Changed
|
|
15
|
+
|
|
16
|
+
- **Empty cell drop affordance**: the "Drop here" strip is now a fixed **45px** tall row (top-level + nested columns) instead of a tall column, making compact layouts easier to scan and drop into.
|
|
17
|
+
|
|
8
18
|
## [3.1.1] - 2026-04-30
|
|
9
19
|
|
|
10
20
|
### Added
|
package/dist/index.cjs
CHANGED
|
@@ -31,7 +31,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
31
31
|
var index_exports = {};
|
|
32
32
|
__export(index_exports, {
|
|
33
33
|
EmailPreviewModal: () => PreviewModal,
|
|
34
|
-
ReactEmailEditor: () =>
|
|
34
|
+
ReactEmailEditor: () => ReactEmailEditor2,
|
|
35
35
|
base64ToUtf8: () => base64ToUtf8,
|
|
36
36
|
emailPreviewDevices: () => DEVICES,
|
|
37
37
|
extractHtmlForDesign: () => extractHtmlForDesign,
|
|
@@ -6496,8 +6496,8 @@ var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
|
6496
6496
|
var RIGHT_RAIL_DEFAULT_W = 328;
|
|
6497
6497
|
var RIGHT_RAIL_MIN_W = 260;
|
|
6498
6498
|
var RIGHT_RAIL_MAX_W = 720;
|
|
6499
|
-
var
|
|
6500
|
-
function
|
|
6499
|
+
var ReactEmailEditorComponent = (0, import_react8.forwardRef)(
|
|
6500
|
+
function ReactEmailEditor({
|
|
6501
6501
|
minHeight = "100vh",
|
|
6502
6502
|
editorId = "email-editor",
|
|
6503
6503
|
onLoad,
|
|
@@ -8149,6 +8149,7 @@ var ReactEmailEditor = (0, import_react8.forwardRef)(
|
|
|
8149
8149
|
);
|
|
8150
8150
|
}
|
|
8151
8151
|
);
|
|
8152
|
+
var ReactEmailEditor2 = Object.assign(ReactEmailEditorComponent, { jsonToHtml });
|
|
8152
8153
|
|
|
8153
8154
|
// src/lib/htmlToEmailDesign.ts
|
|
8154
8155
|
var pad = (n) => ({ top: n, right: n, bottom: n, left: n });
|