best-email-builder 0.17.0 → 0.17.1
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 +9 -0
- package/dist/ai.js +2 -2
- package/dist/builder.js +5 -5
- package/dist/{chunk-4AUHYQPE.js → chunk-37N22Z4Y.js} +4 -4
- package/dist/{chunk-X4WTY6LC.js → chunk-6CLBQRCI.js} +22 -19
- package/dist/chunk-6CLBQRCI.js.map +1 -0
- package/dist/{chunk-U3BA4NK3.js → chunk-WFZO7GQ4.js} +2 -2
- package/dist/{chunk-V2PO42EN.js → chunk-XDE6SMXH.js} +3 -3
- package/dist/{chunk-DOK6E6GK.js → chunk-YPSSQZ4R.js} +5 -2
- package/dist/chunk-YPSSQZ4R.js.map +1 -0
- package/dist/{chunk-5OUMNUJS.js → chunk-Z5NGST5W.js} +2 -2
- package/dist/{chunk-5OUMNUJS.js.map → chunk-Z5NGST5W.js.map} +1 -1
- package/dist/index.js +6 -6
- package/dist/library.js +4 -4
- package/dist/server.js +2 -2
- package/dist/styles.css +1 -1
- package/dist/types/core/constants.d.ts +1 -1
- package/dist/types/engine/NativeAdapter.d.ts +1 -1
- package/dist/types/ui/primitives/fields.d.ts +2 -0
- package/package.json +1 -1
- package/dist/chunk-DOK6E6GK.js.map +0 -1
- package/dist/chunk-X4WTY6LC.js.map +0 -1
- /package/dist/{chunk-4AUHYQPE.js.map → chunk-37N22Z4Y.js.map} +0 -0
- /package/dist/{chunk-U3BA4NK3.js.map → chunk-WFZO7GQ4.js.map} +0 -0
- /package/dist/{chunk-V2PO42EN.js.map → chunk-XDE6SMXH.js.map} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,15 @@ All notable changes are documented here. The format follows
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [0.17.1] — 2026-10-26
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
- No browser up/down arrows on number fields (corner radius, size, line
|
|
13
|
+
height, padding…): the arrow keys still step them.
|
|
14
|
+
- The unit of a field (px or %) is picked in the builder's own list, as the
|
|
15
|
+
font is, not the browser's. The variable dialog's group field no longer
|
|
16
|
+
opens the browser's suggestions: the groups are the buttons under it.
|
|
17
|
+
|
|
9
18
|
## [0.17.0] — 2026-10-26
|
|
10
19
|
|
|
11
20
|
### Added
|
package/dist/ai.js
CHANGED
package/dist/builder.js
CHANGED
|
@@ -5,19 +5,19 @@ import {
|
|
|
5
5
|
TEMPLATE_GALLERY,
|
|
6
6
|
buildGallery,
|
|
7
7
|
createStarterMjml
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-6CLBQRCI.js";
|
|
9
|
+
import "./chunk-XDE6SMXH.js";
|
|
10
|
+
import "./chunk-WFZO7GQ4.js";
|
|
11
11
|
import "./chunk-UFKCLU2D.js";
|
|
12
12
|
import "./chunk-PCLRIXAQ.js";
|
|
13
13
|
import {
|
|
14
14
|
StorageError,
|
|
15
15
|
createHttpStorage,
|
|
16
16
|
createMemoryStorage
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-YPSSQZ4R.js";
|
|
18
18
|
import {
|
|
19
19
|
EMAIL_BUILDER_VERSION
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-Z5NGST5W.js";
|
|
21
21
|
import "./chunk-2F7P4FXX.js";
|
|
22
22
|
import {
|
|
23
23
|
CUSTOM_GROUP,
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
useLayoutWidth,
|
|
6
6
|
useSearchShortcut,
|
|
7
7
|
withPlaceholderImages
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-XDE6SMXH.js";
|
|
9
9
|
import {
|
|
10
10
|
Button,
|
|
11
11
|
Dialog,
|
|
@@ -23,14 +23,14 @@ import {
|
|
|
23
23
|
cn,
|
|
24
24
|
createHttpStorage,
|
|
25
25
|
useUi
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-YPSSQZ4R.js";
|
|
27
27
|
import {
|
|
28
28
|
MAX_TEMPLATE_TAGS,
|
|
29
29
|
TAG_COLORS,
|
|
30
30
|
TAG_LIMITS,
|
|
31
31
|
sortTags,
|
|
32
32
|
validateTag
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-Z5NGST5W.js";
|
|
34
34
|
|
|
35
35
|
// src/ui/library/TemplateLibrary.jsx
|
|
36
36
|
import { useCallback, useEffect as useEffect2, useMemo, useRef, useState as useState2 } from "react";
|
|
@@ -868,4 +868,4 @@ function TemplateLibrary({ locale = "en", messages, onNotify, ...props }) {
|
|
|
868
868
|
export {
|
|
869
869
|
TemplateLibrary
|
|
870
870
|
};
|
|
871
|
-
//# sourceMappingURL=chunk-
|
|
871
|
+
//# sourceMappingURL=chunk-37N22Z4Y.js.map
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
useLayoutWidth,
|
|
7
7
|
useSearchShortcut,
|
|
8
8
|
withThumbnailImages
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-XDE6SMXH.js";
|
|
10
10
|
import {
|
|
11
11
|
BORDER_STYLES,
|
|
12
12
|
BRAND_NOTES,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
parseSpacing,
|
|
23
23
|
toAttributes,
|
|
24
24
|
toValues
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-WFZO7GQ4.js";
|
|
26
26
|
import {
|
|
27
27
|
cleanRichText,
|
|
28
28
|
escapeText,
|
|
@@ -43,6 +43,7 @@ import {
|
|
|
43
43
|
FilterReset,
|
|
44
44
|
Input,
|
|
45
45
|
Label,
|
|
46
|
+
NO_SPINNER,
|
|
46
47
|
NoticeArea,
|
|
47
48
|
Popover,
|
|
48
49
|
PopoverAnchor,
|
|
@@ -67,7 +68,7 @@ import {
|
|
|
67
68
|
createHttpStorage,
|
|
68
69
|
useT,
|
|
69
70
|
useUi
|
|
70
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-YPSSQZ4R.js";
|
|
71
72
|
import {
|
|
72
73
|
BRAND_FONT_SIZES,
|
|
73
74
|
DEFAULT_BUTTON_URL,
|
|
@@ -112,7 +113,7 @@ import {
|
|
|
112
113
|
setAttributes,
|
|
113
114
|
setContent,
|
|
114
115
|
toProject
|
|
115
|
-
} from "./chunk-
|
|
116
|
+
} from "./chunk-Z5NGST5W.js";
|
|
116
117
|
import {
|
|
117
118
|
IMAGE_ATTRIBUTES,
|
|
118
119
|
isSafeUrl
|
|
@@ -1561,14 +1562,12 @@ function VariableDialog({ open, onOpenChange, variable = null, initialLabel = ""
|
|
|
1561
1562
|
{
|
|
1562
1563
|
dense: true,
|
|
1563
1564
|
id: "eb-var-group",
|
|
1564
|
-
list: "eb-var-groups",
|
|
1565
1565
|
value: form.group,
|
|
1566
1566
|
onChange: set("group"),
|
|
1567
1567
|
maxLength: VARIABLE_LIMITS.group,
|
|
1568
1568
|
placeholder: t(system ? variable.group : CUSTOM_GROUP)
|
|
1569
1569
|
}
|
|
1570
1570
|
),
|
|
1571
|
-
/* @__PURE__ */ jsx2("datalist", { id: "eb-var-groups", children: groups.map((g) => /* @__PURE__ */ jsx2("option", { value: g }, g)) }),
|
|
1572
1571
|
groups.length > 0 && /* @__PURE__ */ jsx2("div", { className: "eb:flex eb:flex-wrap eb:gap-1", children: groups.map((group) => /* @__PURE__ */ jsx2(
|
|
1573
1572
|
"button",
|
|
1574
1573
|
{
|
|
@@ -6059,19 +6058,23 @@ function SizeField({ id, property, value, fallback = "", onCommit }) {
|
|
|
6059
6058
|
if (e.key === "Escape") setDraft(asNumber(value));
|
|
6060
6059
|
},
|
|
6061
6060
|
dense: true,
|
|
6062
|
-
className: "eb:pr-
|
|
6061
|
+
className: cn("eb:tabular-nums", property.units ? "eb:pr-14" : "eb:pr-8")
|
|
6063
6062
|
}
|
|
6064
6063
|
),
|
|
6065
|
-
|
|
6066
|
-
|
|
6067
|
-
{
|
|
6068
|
-
|
|
6069
|
-
|
|
6070
|
-
|
|
6071
|
-
|
|
6072
|
-
|
|
6073
|
-
|
|
6074
|
-
|
|
6064
|
+
property.units ? (
|
|
6065
|
+
// The unit, picked in the builder's own list (as the font's), not the browser's.
|
|
6066
|
+
/* @__PURE__ */ jsxs11(Select, { value: unit, onValueChange: (next) => commit(draft || asNumber(fallback) || "0", next), children: [
|
|
6067
|
+
/* @__PURE__ */ jsx12(
|
|
6068
|
+
SelectTrigger,
|
|
6069
|
+
{
|
|
6070
|
+
"aria-label": `${t(property.label)} \u2014 ${t("Unit")}`,
|
|
6071
|
+
className: "eb:absolute eb:top-1/2 eb:right-1 eb:h-5.5 eb:w-auto eb:-translate-y-1/2 eb:gap-0.5 eb:rounded-md eb:border-0 eb:bg-transparent eb:px-1.5 eb:text-[12px] eb:shadow-none eb:hover:bg-accent eb:[&_svg:not([class*='size-'])]:size-3",
|
|
6072
|
+
children: /* @__PURE__ */ jsx12(SelectValue, {})
|
|
6073
|
+
}
|
|
6074
|
+
),
|
|
6075
|
+
/* @__PURE__ */ jsx12(SelectContent, { align: "end", className: "eb:min-w-[4.5rem]", children: property.units.map((option) => /* @__PURE__ */ jsx12(SelectItem, { value: option, children: option }, option)) })
|
|
6076
|
+
] })
|
|
6077
|
+
) : /* @__PURE__ */ jsx12("span", { className: "eb:pointer-events-none eb:absolute eb:right-2.5 eb:top-1/2 eb:-translate-y-1/2 eb:text-[12px] eb:text-foreground-muted", children: property.unit || "px" })
|
|
6075
6078
|
] })
|
|
6076
6079
|
] });
|
|
6077
6080
|
}
|
|
@@ -6287,7 +6290,7 @@ function SideInput({ id, label, value, placeholder, max, className, onChange, on
|
|
|
6287
6290
|
className: cn(
|
|
6288
6291
|
"eb:h-5 eb:w-8 eb:justify-self-center eb:rounded-md eb:bg-transparent eb:text-center eb:text-[11.5px] eb:text-foreground eb:tabular-nums eb:outline-none eb:transition-colors eb:placeholder:text-foreground-muted",
|
|
6289
6292
|
"eb:hover:bg-background/80 eb:focus:bg-background eb:focus-visible:ring-2 eb:focus-visible:ring-ring/60",
|
|
6290
|
-
|
|
6293
|
+
NO_SPINNER,
|
|
6291
6294
|
className
|
|
6292
6295
|
)
|
|
6293
6296
|
}
|
|
@@ -8234,4 +8237,4 @@ export {
|
|
|
8234
8237
|
EmailBuilder,
|
|
8235
8238
|
EmailBuilderBoundary
|
|
8236
8239
|
};
|
|
8237
|
-
//# sourceMappingURL=chunk-
|
|
8240
|
+
//# sourceMappingURL=chunk-6CLBQRCI.js.map
|