best-email-builder 0.22.0 → 0.24.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 +40 -0
  2. package/dist/ai-server.js +3 -3
  3. package/dist/ai.js +6 -6
  4. package/dist/builder.js +11 -8
  5. package/dist/chunk-6MOFRBFL.js +768 -0
  6. package/dist/chunk-6MOFRBFL.js.map +1 -0
  7. package/dist/{chunk-3FKHX47M.js → chunk-7KOL5ON4.js} +565 -636
  8. package/dist/chunk-7KOL5ON4.js.map +1 -0
  9. package/dist/{chunk-HE2VAOLR.js → chunk-BNCV6YFL.js} +127 -7
  10. package/dist/chunk-BNCV6YFL.js.map +1 -0
  11. package/dist/{chunk-IGC3I4XL.js → chunk-DVC7C52B.js} +2 -2
  12. package/dist/{chunk-WWP3FQYO.js → chunk-FIPMQV6N.js} +4 -4
  13. package/dist/{chunk-2XSNS7EW.js → chunk-FSDQV6FU.js} +3 -3
  14. package/dist/{chunk-2XSNS7EW.js.map → chunk-FSDQV6FU.js.map} +1 -1
  15. package/dist/{chunk-XYXN3UBQ.js → chunk-HBFZQGE7.js} +2 -2
  16. package/dist/{chunk-LQ3JCPZ2.js → chunk-MDFZRNZW.js} +12 -5
  17. package/dist/chunk-MDFZRNZW.js.map +1 -0
  18. package/dist/{chunk-C22PQBW4.js → chunk-OX22IB5D.js} +15 -4
  19. package/dist/chunk-OX22IB5D.js.map +1 -0
  20. package/dist/{chunk-OSQ5YGHL.js → chunk-QY67KPCS.js} +2 -2
  21. package/dist/{chunk-4SRNGFAV.js → chunk-YKPRHFMR.js} +3 -3
  22. package/dist/index.js +10 -10
  23. package/dist/library.js +7 -5
  24. package/dist/server.js +99 -16
  25. package/dist/server.js.map +1 -1
  26. package/dist/styles.css +1 -1
  27. package/dist/types/builder.d.ts +1 -0
  28. package/dist/types/core/constants.d.ts +1 -1
  29. package/dist/types/engine/NativeAdapter.d.ts +1 -1
  30. package/dist/types/features/preview/PreviewButton.d.ts +4 -3
  31. package/dist/types/features/test-email/TestEmailDialog.d.ts +29 -0
  32. package/dist/types/library.d.ts +1 -0
  33. package/dist/types/renderer/columnAlignment.d.ts +9 -0
  34. package/dist/types/server/handler.d.ts +45 -0
  35. package/dist/types/server/render.d.ts +6 -2
  36. package/dist/types/server/sendTest.d.ts +21 -3
  37. package/dist/types/storage/client.d.ts +39 -5
  38. package/package.json +1 -1
  39. package/dist/chunk-3FKHX47M.js.map +0 -1
  40. package/dist/chunk-7ZI7ZOYQ.js +0 -294
  41. package/dist/chunk-7ZI7ZOYQ.js.map +0 -1
  42. package/dist/chunk-C22PQBW4.js.map +0 -1
  43. package/dist/chunk-HE2VAOLR.js.map +0 -1
  44. package/dist/chunk-LQ3JCPZ2.js.map +0 -1
  45. package/dist/types/features/test-email/TestEmailButton.d.ts +0 -3
  46. /package/dist/{chunk-IGC3I4XL.js.map → chunk-DVC7C52B.js.map} +0 -0
  47. /package/dist/{chunk-WWP3FQYO.js.map → chunk-FIPMQV6N.js.map} +0 -0
  48. /package/dist/{chunk-XYXN3UBQ.js.map → chunk-HBFZQGE7.js.map} +0 -0
  49. /package/dist/{chunk-OSQ5YGHL.js.map → chunk-QY67KPCS.js.map} +0 -0
  50. /package/dist/{chunk-4SRNGFAV.js.map → chunk-YKPRHFMR.js.map} +0 -0
package/CHANGELOG.md CHANGED
@@ -6,6 +6,46 @@ All notable changes are documented here. The format follows
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.24.0] — 2026-11-13
10
+
11
+ ### Fixed
12
+ - New Outlook (Windows), Outlook on the web and webmails that ignore media
13
+ queries showed the columns of a row stacked, one under the other, in a
14
+ 600 px email. Each column of a multi-column row now carries its pixel width
15
+ inline (`max-width`, the width MJML computes for classic Outlook): the
16
+ columns sit side by side at the email's width in every client, and still
17
+ stack full width on a phone. Saved templates get it when saved or rendered
18
+ again.
19
+
20
+ ## [0.23.0] — 2026-11-04
21
+
22
+ ### Added
23
+ - `TestEmailDialog` from `best-email-builder/builder` and `/library`: the test
24
+ dialog alone (preview, contact lists, typed addresses) for a host's own
25
+ button. `getMjml` is handed back to `storage.render` and `storage.sendTest`.
26
+ - The test dialog shows the email beside its recipients, as the selected one
27
+ will get it. With a `contactStore` on the server (`createHttpStorage({
28
+ contacts: true })`), a field finds your contacts: a contact gets its own
29
+ values, empty ones included, read by the server from its id. A typed
30
+ address still gets sample values. Typed addresses are remembered for the
31
+ next test; contacts are not.
32
+ - The test dialog is the preview's (devices, dark mode, refresh), with the
33
+ recipients beside it. Contacts are picked from the host's lists
34
+ (`contactStore.lists`), addresses typed in a field of their own; while the
35
+ test leaves, the preview goes from one recipient to the next.
36
+ - The preview's « Fictitious values » switch: off, every variable shows as its
37
+ tag, unsubscribe link included (`render({ samples: false })`).
38
+
39
+ ### Changed
40
+ - A variable is inserted with a space after it (none in a link's address,
41
+ nor before a space already there): the next word is typed right away.
42
+
43
+ ### Fixed
44
+ - The variable list of a link field opened in the window's top-left corner
45
+ under React StrictMode: the field is now its only anchor.
46
+ - A select or popover inside a builder dialog opened under it when the host
47
+ pins every Radix popper below its own modals (scroll-locked body).
48
+
9
49
  ## [0.22.0] — 2026-11-04
10
50
 
11
51
  ### Added
package/dist/ai-server.js CHANGED
@@ -28,9 +28,9 @@ import {
28
28
  reviewFix,
29
29
  reviewRewrite,
30
30
  reviewSubjects
31
- } from "./chunk-4SRNGFAV.js";
32
- import "./chunk-OSQ5YGHL.js";
33
- import "./chunk-HE2VAOLR.js";
31
+ } from "./chunk-YKPRHFMR.js";
32
+ import "./chunk-QY67KPCS.js";
33
+ import "./chunk-BNCV6YFL.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-IGC3I4XL.js";
3
+ } from "./chunk-DVC7C52B.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-C22PQBW4.js";
24
- import "./chunk-2XSNS7EW.js";
23
+ } from "./chunk-OX22IB5D.js";
24
+ import "./chunk-FSDQV6FU.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-4SRNGFAV.js";
50
- import "./chunk-OSQ5YGHL.js";
51
- import "./chunk-HE2VAOLR.js";
49
+ } from "./chunk-YKPRHFMR.js";
50
+ import "./chunk-QY67KPCS.js";
51
+ import "./chunk-BNCV6YFL.js";
52
52
 
53
53
  // src/ai/keys.js
54
54
  var STORAGE_PREFIX = "best-email-builder:ai-key:";
package/dist/builder.js CHANGED
@@ -5,20 +5,22 @@ import {
5
5
  TEMPLATE_GALLERY,
6
6
  buildGallery,
7
7
  createStarterMjml
8
- } from "./chunk-3FKHX47M.js";
9
- import "./chunk-7ZI7ZOYQ.js";
10
- import "./chunk-LQ3JCPZ2.js";
8
+ } from "./chunk-7KOL5ON4.js";
9
+ import {
10
+ TestEmailDialog
11
+ } from "./chunk-6MOFRBFL.js";
12
+ import "./chunk-MDFZRNZW.js";
11
13
  import "./chunk-UFKCLU2D.js";
12
- import "./chunk-IGC3I4XL.js";
14
+ import "./chunk-DVC7C52B.js";
13
15
  import {
14
16
  StorageError,
15
17
  createHttpStorage,
16
18
  createMemoryStorage
17
- } from "./chunk-C22PQBW4.js";
19
+ } from "./chunk-OX22IB5D.js";
18
20
  import {
19
21
  EMAIL_BUILDER_VERSION
20
- } from "./chunk-2XSNS7EW.js";
21
- import "./chunk-OSQ5YGHL.js";
22
+ } from "./chunk-FSDQV6FU.js";
23
+ import "./chunk-QY67KPCS.js";
22
24
  import {
23
25
  CUSTOM_GROUP,
24
26
  DEFAULT_VARIABLES,
@@ -28,7 +30,7 @@ import {
28
30
  defineVariables,
29
31
  mergeVariables,
30
32
  translatorFor
31
- } from "./chunk-HE2VAOLR.js";
33
+ } from "./chunk-BNCV6YFL.js";
32
34
  export {
33
35
  CUSTOM_GROUP,
34
36
  DEFAULT_VARIABLES,
@@ -40,6 +42,7 @@ export {
40
42
  STARTER_MJML,
41
43
  StorageError,
42
44
  TEMPLATE_GALLERY,
45
+ TestEmailDialog,
43
46
  buildGallery,
44
47
  createHttpStorage,
45
48
  createMemoryStorage,