best-email-builder 0.17.1 → 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.
- package/CHANGELOG.md +39 -0
- package/dist/ai-server.js +3 -3
- package/dist/ai.js +11 -11
- package/dist/ai.js.map +1 -1
- package/dist/builder.js +8 -8
- package/dist/{chunk-ZRER4JD4.js → chunk-4662C22G.js} +3 -3
- package/dist/{chunk-QDAVDMA4.js → chunk-BMCXSP4Q.js} +2 -2
- package/dist/{chunk-Z5NGST5W.js → chunk-CYTZO2MW.js} +9 -5
- package/dist/chunk-CYTZO2MW.js.map +1 -0
- package/dist/{chunk-PCLRIXAQ.js → chunk-GUF6MIXZ.js} +2 -2
- package/dist/{chunk-WFZO7GQ4.js → chunk-HWNNYG45.js} +20 -3
- package/dist/{chunk-WFZO7GQ4.js.map → chunk-HWNNYG45.js.map} +1 -1
- package/dist/{chunk-YPSSQZ4R.js → chunk-K43QP3TX.js} +33 -13
- package/dist/chunk-K43QP3TX.js.map +1 -0
- package/dist/{chunk-2F7P4FXX.js → chunk-LJXCMXYI.js} +2 -2
- package/dist/{chunk-FPJF77MO.js → chunk-MW3ZGK34.js} +61 -1
- package/dist/chunk-MW3ZGK34.js.map +1 -0
- package/dist/{chunk-XDE6SMXH.js → chunk-NSNODUL6.js} +3 -3
- package/dist/{chunk-37N22Z4Y.js → chunk-UR3UTVC5.js} +4 -4
- package/dist/{chunk-6CLBQRCI.js → chunk-WYYATB37.js} +635 -420
- package/dist/chunk-WYYATB37.js.map +1 -0
- package/dist/index.js +10 -10
- package/dist/library.js +5 -5
- package/dist/server.js +48 -5
- package/dist/server.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/types/blocks/shared.d.ts +1 -1
- package/dist/types/core/EmailEditor.d.ts +8 -4
- package/dist/types/core/constants.d.ts +1 -1
- package/dist/types/engine/NativeAdapter.d.ts +1 -1
- package/dist/types/engine/canvasMjml.d.ts +7 -0
- package/dist/types/features/variables/VariableInsertButton.d.ts +7 -3
- package/dist/types/features/variables/VariablesPanel.d.ts +4 -0
- package/dist/types/server/variables.d.ts +12 -0
- package/dist/types/storage/client.d.ts +4 -0
- package/dist/types/ui/TextRibbon.d.ts +26 -1
- package/dist/types/ui/fields.d.ts +13 -0
- package/dist/types/ui/primitives/color-picker.d.ts +4 -2
- package/dist/types/ui/primitives/fields.d.ts +4 -3
- package/dist/types/ui/primitives/overlays.d.ts +3 -3
- package/package.json +1 -1
- package/dist/chunk-6CLBQRCI.js.map +0 -1
- package/dist/chunk-FPJF77MO.js.map +0 -1
- package/dist/chunk-YPSSQZ4R.js.map +0 -1
- package/dist/chunk-Z5NGST5W.js.map +0 -1
- /package/dist/{chunk-ZRER4JD4.js.map → chunk-4662C22G.js.map} +0 -0
- /package/dist/{chunk-QDAVDMA4.js.map → chunk-BMCXSP4Q.js.map} +0 -0
- /package/dist/{chunk-PCLRIXAQ.js.map → chunk-GUF6MIXZ.js.map} +0 -0
- /package/dist/{chunk-2F7P4FXX.js.map → chunk-LJXCMXYI.js.map} +0 -0
- /package/dist/{chunk-XDE6SMXH.js.map → chunk-NSNODUL6.js.map} +0 -0
- /package/dist/{chunk-37N22Z4Y.js.map → chunk-UR3UTVC5.js.map} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,45 @@ 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
|
+
|
|
37
|
+
## [0.18.0] — 2026-10-27
|
|
38
|
+
|
|
39
|
+
### Added
|
|
40
|
+
- Variable groups can be renamed and deleted: the pencil beside a group's
|
|
41
|
+
"+". Renamed, its variables follow it; deleted, they go back to their
|
|
42
|
+
default group (the application's, or Custom). A group its variables belong
|
|
43
|
+
to by default cannot be deleted.
|
|
44
|
+
- Storage: `renameVariableGroup(from, name)` and `deleteVariableGroup(name)`;
|
|
45
|
+
server: `PUT` and `DELETE {base}/variable-groups/:name`, with the
|
|
46
|
+
repository's `renameGroup` and `removeGroup`.
|
|
47
|
+
|
|
9
48
|
## [0.17.1] — 2026-10-26
|
|
10
49
|
|
|
11
50
|
### Changed
|
package/dist/ai-server.js
CHANGED
|
@@ -28,9 +28,9 @@ import {
|
|
|
28
28
|
reviewFix,
|
|
29
29
|
reviewRewrite,
|
|
30
30
|
reviewSubjects
|
|
31
|
-
} from "./chunk-
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
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-
|
|
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-
|
|
24
|
-
import "./chunk-
|
|
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-
|
|
50
|
-
import "./chunk-
|
|
51
|
-
import "./chunk-
|
|
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-
|
|
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-
|
|
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:
|
|
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:
|
|
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-
|
|
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,
|