better-react-email-editor 0.1.2 → 0.1.4

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/dist/styles.css CHANGED
@@ -19,6 +19,7 @@
19
19
  --bree-accent-soft: #eff6ff;
20
20
  --bree-danger: #dc2626;
21
21
  --bree-radius: 8px;
22
+ --bree-frame-gap: 4px;
22
23
  --bree-canvas-bg: #eef1f5;
23
24
  --bree-topbar-height: 56px;
24
25
  --bree-sidebar-width: 360px;
@@ -360,6 +361,14 @@
360
361
  border-radius: 2px;
361
362
  }
362
363
 
364
+ /* Hover and selection frames sit a few pixels off the block, not on its content. */
365
+ .bree-ov-hover,
366
+ .bree-ov-selected {
367
+ box-sizing: content-box;
368
+ padding: var(--bree-frame-gap);
369
+ margin: calc(var(--bree-frame-gap) * -1);
370
+ }
371
+
363
372
  .bree-ov-hover {
364
373
  box-shadow: 0 0 0 1px #60a5fa;
365
374
  }
@@ -1,5 +1,7 @@
1
1
  import { Extension } from '@tiptap/core';
2
2
  /**
3
+ * Select-all that keeps the email's structure.
4
+ *
3
5
  * The package's Mod-a inside a column selects the whole column with a
4
6
  * TextSelection whose ends sit on the column itself, not in text. Deleting it
5
7
  * (Delete, Backspace, cut) empties the column, but the mapped selection then
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "better-react-email-editor",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "Drag & drop email builder for React (Unlayer-style), built on @react-email/editor. Modular components, English and French included.",
5
5
  "keywords": [
6
6
  "react",