best-email-builder 0.18.0 → 0.20.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.
Files changed (50) hide show
  1. package/CHANGELOG.md +53 -0
  2. package/dist/ai-server.js +3 -3
  3. package/dist/ai.js +11 -11
  4. package/dist/ai.js.map +1 -1
  5. package/dist/builder.js +8 -8
  6. package/dist/{chunk-2M44NIFG.js → chunk-2N6YC6JN.js} +2 -2
  7. package/dist/{chunk-W4UKDEB4.js → chunk-ACJQTHMG.js} +658 -390
  8. package/dist/chunk-ACJQTHMG.js.map +1 -0
  9. package/dist/{chunk-2B3N6CH4.js → chunk-DLQYMFN7.js} +25 -1
  10. package/dist/chunk-DLQYMFN7.js.map +1 -0
  11. package/dist/{chunk-LKD6QZMD.js → chunk-EAE6R7EQ.js} +3 -3
  12. package/dist/{chunk-D46HKFV5.js → chunk-FJ6IJO3K.js} +14 -13
  13. package/dist/chunk-FJ6IJO3K.js.map +1 -0
  14. package/dist/{chunk-JLQDVA4B.js → chunk-LYGVIQGG.js} +4 -4
  15. package/dist/{chunk-37PEEEBB.js → chunk-Q2J547BE.js} +2 -2
  16. package/dist/{chunk-F3566ZQB.js → chunk-RCN6FCCK.js} +3 -3
  17. package/dist/{chunk-L7NSAYYX.js → chunk-RZPCNCWF.js} +9 -5
  18. package/dist/chunk-RZPCNCWF.js.map +1 -0
  19. package/dist/{chunk-BER25JS7.js → chunk-THOQ3RVD.js} +20 -3
  20. package/dist/{chunk-BER25JS7.js.map → chunk-THOQ3RVD.js.map} +1 -1
  21. package/dist/{chunk-POUAC5TN.js → chunk-VLBVJJ4X.js} +2 -2
  22. package/dist/index.js +10 -10
  23. package/dist/library.js +5 -5
  24. package/dist/server.js +5 -5
  25. package/dist/styles.css +1 -1
  26. package/dist/types/blocks/shared.d.ts +1 -1
  27. package/dist/types/core/EmailEditor.d.ts +12 -4
  28. package/dist/types/core/constants.d.ts +1 -1
  29. package/dist/types/engine/NativeAdapter.d.ts +1 -1
  30. package/dist/types/engine/canvas/CanvasView.d.ts +4 -0
  31. package/dist/types/engine/canvas/canvasStyles.d.ts +1 -1
  32. package/dist/types/engine/canvasMjml.d.ts +7 -0
  33. package/dist/types/features/variables/VariableInsertButton.d.ts +7 -3
  34. package/dist/types/features/variables/VariablesPanel.d.ts +1 -2
  35. package/dist/types/ui/TextRibbon.d.ts +26 -1
  36. package/dist/types/ui/fields.d.ts +13 -0
  37. package/dist/types/ui/primitives/color-picker.d.ts +4 -2
  38. package/dist/types/ui/primitives/fields.d.ts +4 -3
  39. package/dist/types/ui/primitives/overlays.d.ts +3 -3
  40. package/package.json +1 -1
  41. package/dist/chunk-2B3N6CH4.js.map +0 -1
  42. package/dist/chunk-D46HKFV5.js.map +0 -1
  43. package/dist/chunk-L7NSAYYX.js.map +0 -1
  44. package/dist/chunk-W4UKDEB4.js.map +0 -1
  45. /package/dist/{chunk-2M44NIFG.js.map → chunk-2N6YC6JN.js.map} +0 -0
  46. /package/dist/{chunk-LKD6QZMD.js.map → chunk-EAE6R7EQ.js.map} +0 -0
  47. /package/dist/{chunk-JLQDVA4B.js.map → chunk-LYGVIQGG.js.map} +0 -0
  48. /package/dist/{chunk-37PEEEBB.js.map → chunk-Q2J547BE.js.map} +0 -0
  49. /package/dist/{chunk-F3566ZQB.js.map → chunk-RCN6FCCK.js.map} +0 -0
  50. /package/dist/{chunk-POUAC5TN.js.map → chunk-VLBVJJ4X.js.map} +0 -0
package/CHANGELOG.md CHANGED
@@ -6,6 +6,59 @@ All notable changes are documented here. The format follows
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.20.0] — 2026-10-30
10
+
11
+ ### Added
12
+ - Column widths by hand: with a layout selected, or anything inside it, the
13
+ lines between its columns can be dragged on the canvas (or moved with the
14
+ arrow keys, Shift for 5 %). Only the two columns beside the line change,
15
+ never below 10 %; the whole drag is one undo step.
16
+ - A menu link has a line height.
17
+ - `parentId` on a selected element: the element it is in.
18
+
19
+ ### Fixed
20
+ - Bold on a column, a section or a menu: every text, button and menu link
21
+ inside takes the weight.
22
+ - Every ribbon icon acts on a menu link and on a menu: bold, italic,
23
+ underline, strikethrough, clear formatting (their weight, slant and lines
24
+ go), line height, alignment (a link's is its menu's); the link and remove
25
+ the link change a menu link's address, a button's or an image's. A whole
26
+ menu keeps the link off: one address for all its links would make no sense.
27
+ - The unsubscribe link of the Variables panel behaves like every variable:
28
+ its tag (`{{ unsubscribe }}`) is typed and previewed, no longer a ready-made
29
+ "Unsubscribe" link. As an address, it is picked from the `{ }` of the link
30
+ field.
31
+ - The variables of a field open under it, flush with its edges, rather than
32
+ hanging off the `{ }` button.
33
+
34
+ ## [0.19.0] — 2026-10-30
35
+
36
+ ### Added
37
+ - Images side by side line up: when an image of a row gets its file, every
38
+ image of the row takes the height the first one has, cropped
39
+ (`object-fit: cover`) rather than stretched, so the texts and buttons under
40
+ them line up. On a phone, where the columns stack, each keeps its own
41
+ proportions; Outlook on Windows stretches instead of cropping. An image's
42
+ Height is in its panel, to change or clear.
43
+ - The text ribbon holds every text tool: font, size, line height, text
44
+ color, capitals, bold, italic, underline, strikethrough, alignment. The
45
+ properties panel no longer repeats them.
46
+ - The ribbon works on any block: on a menu, a section or a column, its
47
+ tools act on every element inside that has them (a menu's links, a
48
+ section's texts and buttons), in one step of the history. On a button or
49
+ a menu link, italic and underline are its own attributes.
50
+ - A link's address can be a variable (`{{ unsubscribe }}`): the `{ }` in the
51
+ ribbon's link field.
52
+
53
+ ### Changed
54
+ - The blocks panel opens two blocks to a row (272 px, was three at 328 px).
55
+ A width the viewer chose is still remembered; the former default, which
56
+ every visit saved, is not taken for a choice.
57
+ - Every input and select is as tall as the toolbar's buttons (28 px), with
58
+ their border and background.
59
+ - A button's and a section's corner radius is in px only: a percentage of a
60
+ wide box made an oval. An image and an icon keep %.
61
+
9
62
  ## [0.18.0] — 2026-10-27
10
63
 
11
64
  ### Added
package/dist/ai-server.js CHANGED
@@ -28,9 +28,9 @@ import {
28
28
  reviewFix,
29
29
  reviewRewrite,
30
30
  reviewSubjects
31
- } from "./chunk-LKD6QZMD.js";
32
- import "./chunk-POUAC5TN.js";
33
- import "./chunk-2B3N6CH4.js";
31
+ } from "./chunk-EAE6R7EQ.js";
32
+ import "./chunk-VLBVJJ4X.js";
33
+ import "./chunk-DLQYMFN7.js";
34
34
 
35
35
  // src/ai/agentEndpoint.js
36
36
  var TASKS = ["rewrite", "subjects"];
package/dist/ai.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  cleanRichText
3
- } from "./chunk-37PEEEBB.js";
3
+ } from "./chunk-Q2J547BE.js";
4
4
  import {
5
5
  Button,
6
6
  Dialog,
@@ -20,8 +20,8 @@ import {
20
20
  cn,
21
21
  createHttpCaller,
22
22
  useUi
23
- } from "./chunk-D46HKFV5.js";
24
- import "./chunk-L7NSAYYX.js";
23
+ } from "./chunk-FJ6IJO3K.js";
24
+ import "./chunk-RZPCNCWF.js";
25
25
  import {
26
26
  AGENT_ERROR_CODES,
27
27
  AGENT_PROTOCOL,
@@ -46,9 +46,9 @@ import {
46
46
  providerEmailModel,
47
47
  resolveProvider,
48
48
  visibleText
49
- } from "./chunk-LKD6QZMD.js";
50
- import "./chunk-POUAC5TN.js";
51
- import "./chunk-2B3N6CH4.js";
49
+ } from "./chunk-EAE6R7EQ.js";
50
+ import "./chunk-VLBVJJ4X.js";
51
+ import "./chunk-DLQYMFN7.js";
52
52
 
53
53
  // src/ai/keys.js
54
54
  var STORAGE_PREFIX = "best-email-builder:ai-key:";
@@ -361,7 +361,7 @@ function ModelPicker({ aiKey, provider, apiKey, address = "", delay = 0, value,
361
361
  "aria-describedby": hintId,
362
362
  onClick: () => onOpenChange(!open),
363
363
  className: cn(
364
- "eb:flex eb:h-9 eb:w-full eb:min-w-0 eb:items-center eb:gap-2 eb:rounded-lg2 eb:border eb:border-input eb:bg-transparent eb:px-3 eb:text-left eb:shadow-xs eb:transition-[color,box-shadow] eb:outline-none eb:focus-visible:border-ring eb:focus-visible:ring-[3px] eb:focus-visible:ring-ring/50",
364
+ "eb:flex eb:h-7 eb:w-full eb:min-w-0 eb:items-center eb:gap-2 eb:rounded-lg2 eb:border eb:border-border eb:bg-background eb:px-2.5 eb:text-left eb:shadow-xs eb:transition-[color,box-shadow] eb:outline-none eb:focus-visible:border-ring eb:focus-visible:ring-[3px] eb:focus-visible:ring-ring/50",
365
365
  open && "eb:border-ring"
366
366
  ),
367
367
  "data-testid": "eb-ai-connect-model",
@@ -401,7 +401,7 @@ function ModelPicker({ aiKey, provider, apiKey, address = "", delay = 0, value,
401
401
  autoCapitalize: "off",
402
402
  autoCorrect: "off",
403
403
  spellCheck: false,
404
- className: "eb:h-8 eb:w-full eb:rounded-lg2 eb:bg-surface-75 eb:pr-2 eb:pl-7 eb:text-[13px] eb:text-foreground eb:outline-none eb:placeholder:text-foreground-muted eb:focus-visible:ring-2 eb:focus-visible:ring-ring/40",
404
+ className: "eb:h-7 eb:w-full eb:rounded-lg2 eb:border eb:border-border eb:bg-background eb:pr-2 eb:pl-7 eb:text-[12px] eb:text-foreground eb:shadow-xs eb:outline-none eb:placeholder:text-foreground-muted eb:focus-visible:ring-2 eb:focus-visible:ring-ring/40",
405
405
  "data-testid": "eb-ai-connect-model-search"
406
406
  }
407
407
  )
@@ -657,7 +657,7 @@ function ConnectAi({ aiKey }) {
657
657
  spellCheck: false,
658
658
  "aria-invalid": where && !addressOk ? true : void 0,
659
659
  "aria-describedby": addressHintId,
660
- className: "eb:h-9 eb:font-mono eb:text-[12.5px]",
660
+ className: "eb:font-mono",
661
661
  "data-testid": "eb-ai-connect-address"
662
662
  }
663
663
  ),
@@ -680,7 +680,7 @@ function ConnectAi({ aiKey }) {
680
680
  autoCorrect: "off",
681
681
  spellCheck: false,
682
682
  "aria-describedby": hintId,
683
- className: "eb:h-9 eb:pr-10 eb:font-mono eb:text-[12.5px]",
683
+ className: "eb:pr-10 eb:font-mono",
684
684
  "data-testid": "eb-ai-connect-key"
685
685
  }
686
686
  ),
@@ -688,7 +688,7 @@ function ConnectAi({ aiKey }) {
688
688
  "button",
689
689
  {
690
690
  type: "button",
691
- className: "eb:absolute eb:top-1/2 eb:right-1 eb:flex eb:size-7 eb:-translate-y-1/2 eb:items-center eb:justify-center eb:rounded-md eb:text-foreground-muted eb:transition-colors eb:outline-none eb:hover:bg-muted eb:hover:text-foreground eb:focus-visible:ring-[3px] eb:focus-visible:ring-ring/50",
691
+ className: "eb:absolute eb:top-1/2 eb:right-1 eb:flex eb:size-6 eb:-translate-y-1/2 eb:items-center eb:justify-center eb:rounded-md eb:text-foreground-muted eb:transition-colors eb:outline-none eb:hover:bg-muted eb:hover:text-foreground eb:focus-visible:ring-[3px] eb:focus-visible:ring-ring/50",
692
692
  onClick: () => setShown((current) => !current),
693
693
  "aria-label": shown ? t("Hide the key") : t("Show the key"),
694
694
  "aria-pressed": shown,