react-email-studio 2.0.0 → 3.1.1
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/TUTORIAL.md +264 -264
- package/USER_README.md +28 -28
- package/dist/index.cjs +608 -77
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +13 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +608 -77
- package/dist/index.js.map +1 -1
- package/package.json +6 -2
package/dist/index.d.cts
CHANGED
|
@@ -188,6 +188,13 @@ type EmailDocumentSettings = {
|
|
|
188
188
|
color?: string;
|
|
189
189
|
responsive?: boolean;
|
|
190
190
|
rtl?: boolean;
|
|
191
|
+
/** Canvas chrome + full editor settings snapshot for lossless studio JSON export/import. */
|
|
192
|
+
_reactEmailStudio?: {
|
|
193
|
+
contentPadding?: number;
|
|
194
|
+
contentBorderRadius?: number;
|
|
195
|
+
/** Full `ReactEmailEditor` settings object (merged on load after canonical fields). */
|
|
196
|
+
editorSettings?: Record<string, unknown>;
|
|
197
|
+
};
|
|
191
198
|
};
|
|
192
199
|
type RowLayout = {
|
|
193
200
|
columns?: number;
|
|
@@ -247,6 +254,8 @@ type BlockBase = {
|
|
|
247
254
|
styles?: Record<string, unknown>;
|
|
248
255
|
behavior?: Record<string, unknown>;
|
|
249
256
|
responsive?: Record<string, unknown>;
|
|
257
|
+
/** Full editor block props for lossless export/import (react-email-studio). */
|
|
258
|
+
props?: Record<string, unknown>;
|
|
250
259
|
};
|
|
251
260
|
type EmailDocumentColumn = {
|
|
252
261
|
id?: string;
|
|
@@ -260,6 +269,10 @@ type EmailDocumentRow = {
|
|
|
260
269
|
layout?: RowLayout;
|
|
261
270
|
styles?: RowStyles;
|
|
262
271
|
columns?: EmailDocumentColumn[];
|
|
272
|
+
/** Internal row fields (`preset`, `ratios`, `columnStyles`, …) without `cells` — merged on load. */
|
|
273
|
+
_reactEmailStudio?: {
|
|
274
|
+
row?: Record<string, unknown>;
|
|
275
|
+
};
|
|
263
276
|
};
|
|
264
277
|
type EmailDocument = {
|
|
265
278
|
type: "email_document";
|
package/dist/index.d.ts
CHANGED
|
@@ -188,6 +188,13 @@ type EmailDocumentSettings = {
|
|
|
188
188
|
color?: string;
|
|
189
189
|
responsive?: boolean;
|
|
190
190
|
rtl?: boolean;
|
|
191
|
+
/** Canvas chrome + full editor settings snapshot for lossless studio JSON export/import. */
|
|
192
|
+
_reactEmailStudio?: {
|
|
193
|
+
contentPadding?: number;
|
|
194
|
+
contentBorderRadius?: number;
|
|
195
|
+
/** Full `ReactEmailEditor` settings object (merged on load after canonical fields). */
|
|
196
|
+
editorSettings?: Record<string, unknown>;
|
|
197
|
+
};
|
|
191
198
|
};
|
|
192
199
|
type RowLayout = {
|
|
193
200
|
columns?: number;
|
|
@@ -247,6 +254,8 @@ type BlockBase = {
|
|
|
247
254
|
styles?: Record<string, unknown>;
|
|
248
255
|
behavior?: Record<string, unknown>;
|
|
249
256
|
responsive?: Record<string, unknown>;
|
|
257
|
+
/** Full editor block props for lossless export/import (react-email-studio). */
|
|
258
|
+
props?: Record<string, unknown>;
|
|
250
259
|
};
|
|
251
260
|
type EmailDocumentColumn = {
|
|
252
261
|
id?: string;
|
|
@@ -260,6 +269,10 @@ type EmailDocumentRow = {
|
|
|
260
269
|
layout?: RowLayout;
|
|
261
270
|
styles?: RowStyles;
|
|
262
271
|
columns?: EmailDocumentColumn[];
|
|
272
|
+
/** Internal row fields (`preset`, `ratios`, `columnStyles`, …) without `cells` — merged on load. */
|
|
273
|
+
_reactEmailStudio?: {
|
|
274
|
+
row?: Record<string, unknown>;
|
|
275
|
+
};
|
|
263
276
|
};
|
|
264
277
|
type EmailDocument = {
|
|
265
278
|
type: "email_document";
|