best-email-builder 0.18.0 → 0.19.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 (47) hide show
  1. package/CHANGELOG.md +28 -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-LKD6QZMD.js → chunk-4662C22G.js} +3 -3
  7. package/dist/{chunk-2M44NIFG.js → chunk-BMCXSP4Q.js} +2 -2
  8. package/dist/{chunk-L7NSAYYX.js → chunk-CYTZO2MW.js} +9 -5
  9. package/dist/chunk-CYTZO2MW.js.map +1 -0
  10. package/dist/{chunk-37PEEEBB.js → chunk-GUF6MIXZ.js} +2 -2
  11. package/dist/{chunk-BER25JS7.js → chunk-HWNNYG45.js} +20 -3
  12. package/dist/{chunk-BER25JS7.js.map → chunk-HWNNYG45.js.map} +1 -1
  13. package/dist/{chunk-D46HKFV5.js → chunk-K43QP3TX.js} +14 -13
  14. package/dist/chunk-K43QP3TX.js.map +1 -0
  15. package/dist/{chunk-POUAC5TN.js → chunk-LJXCMXYI.js} +2 -2
  16. package/dist/{chunk-2B3N6CH4.js → chunk-MW3ZGK34.js} +13 -1
  17. package/dist/chunk-MW3ZGK34.js.map +1 -0
  18. package/dist/{chunk-F3566ZQB.js → chunk-NSNODUL6.js} +3 -3
  19. package/dist/{chunk-JLQDVA4B.js → chunk-UR3UTVC5.js} +4 -4
  20. package/dist/{chunk-W4UKDEB4.js → chunk-WYYATB37.js} +511 -372
  21. package/dist/chunk-WYYATB37.js.map +1 -0
  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 +8 -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/canvasMjml.d.ts +7 -0
  31. package/dist/types/features/variables/VariableInsertButton.d.ts +7 -3
  32. package/dist/types/ui/TextRibbon.d.ts +26 -1
  33. package/dist/types/ui/fields.d.ts +13 -0
  34. package/dist/types/ui/primitives/color-picker.d.ts +4 -2
  35. package/dist/types/ui/primitives/fields.d.ts +4 -3
  36. package/dist/types/ui/primitives/overlays.d.ts +3 -3
  37. package/package.json +1 -1
  38. package/dist/chunk-2B3N6CH4.js.map +0 -1
  39. package/dist/chunk-D46HKFV5.js.map +0 -1
  40. package/dist/chunk-L7NSAYYX.js.map +0 -1
  41. package/dist/chunk-W4UKDEB4.js.map +0 -1
  42. /package/dist/{chunk-LKD6QZMD.js.map → chunk-4662C22G.js.map} +0 -0
  43. /package/dist/{chunk-2M44NIFG.js.map → chunk-BMCXSP4Q.js.map} +0 -0
  44. /package/dist/{chunk-37PEEEBB.js.map → chunk-GUF6MIXZ.js.map} +0 -0
  45. /package/dist/{chunk-POUAC5TN.js.map → chunk-LJXCMXYI.js.map} +0 -0
  46. /package/dist/{chunk-F3566ZQB.js.map → chunk-NSNODUL6.js.map} +0 -0
  47. /package/dist/{chunk-JLQDVA4B.js.map → chunk-UR3UTVC5.js.map} +0 -0
package/CHANGELOG.md CHANGED
@@ -6,6 +6,34 @@ All notable changes are documented here. The format follows
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.19.0] — 2026-10-30
10
+
11
+ ### Added
12
+ - Images side by side line up: when an image of a row gets its file, every
13
+ image of the row takes the height the first one has, cropped
14
+ (`object-fit: cover`) rather than stretched, so the texts and buttons under
15
+ them line up. On a phone, where the columns stack, each keeps its own
16
+ proportions; Outlook on Windows stretches instead of cropping. An image's
17
+ Height is in its panel, to change or clear.
18
+ - The text ribbon holds every text tool: font, size, line height, text
19
+ color, capitals, bold, italic, underline, strikethrough, alignment. The
20
+ properties panel no longer repeats them.
21
+ - The ribbon works on any block: on a menu, a section or a column, its
22
+ tools act on every element inside that has them (a menu's links, a
23
+ section's texts and buttons), in one step of the history. On a button or
24
+ a menu link, italic and underline are its own attributes.
25
+ - A link's address can be a variable (`{{ unsubscribe }}`): the `{ }` in the
26
+ ribbon's link field.
27
+
28
+ ### Changed
29
+ - The blocks panel opens two blocks to a row (272 px, was three at 328 px).
30
+ A width the viewer chose is still remembered; the former default, which
31
+ every visit saved, is not taken for a choice.
32
+ - Every input and select is as tall as the toolbar's buttons (28 px), with
33
+ their border and background.
34
+ - A button's and a section's corner radius is in px only: a percentage of a
35
+ wide box made an oval. An image and an icon keep %.
36
+
9
37
  ## [0.18.0] — 2026-10-27
10
38
 
11
39
  ### 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-4662C22G.js";
32
+ import "./chunk-LJXCMXYI.js";
33
+ import "./chunk-MW3ZGK34.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-GUF6MIXZ.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-K43QP3TX.js";
24
+ import "./chunk-CYTZO2MW.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-4662C22G.js";
50
+ import "./chunk-LJXCMXYI.js";
51
+ import "./chunk-MW3ZGK34.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,