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 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
@@ -20,8 +20,8 @@ import {
20
20
  cn,
21
21
  createHttpCaller,
22
22
  useUi
23
- } from "./chunk-DOK6E6GK.js";
24
- import "./chunk-5OUMNUJS.js";
23
+ } from "./chunk-YPSSQZ4R.js";
24
+ import "./chunk-Z5NGST5W.js";
25
25
  import {
26
26
  AGENT_ERROR_CODES,
27
27
  AGENT_PROTOCOL,
package/dist/builder.js CHANGED
@@ -5,19 +5,19 @@ import {
5
5
  TEMPLATE_GALLERY,
6
6
  buildGallery,
7
7
  createStarterMjml
8
- } from "./chunk-X4WTY6LC.js";
9
- import "./chunk-V2PO42EN.js";
10
- import "./chunk-U3BA4NK3.js";
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-DOK6E6GK.js";
17
+ } from "./chunk-YPSSQZ4R.js";
18
18
  import {
19
19
  EMAIL_BUILDER_VERSION
20
- } from "./chunk-5OUMNUJS.js";
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-V2PO42EN.js";
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-DOK6E6GK.js";
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-5OUMNUJS.js";
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-4AUHYQPE.js.map
871
+ //# sourceMappingURL=chunk-37N22Z4Y.js.map
@@ -6,7 +6,7 @@ import {
6
6
  useLayoutWidth,
7
7
  useSearchShortcut,
8
8
  withThumbnailImages
9
- } from "./chunk-V2PO42EN.js";
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-U3BA4NK3.js";
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-DOK6E6GK.js";
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-5OUMNUJS.js";
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-8 eb:tabular-nums"
6061
+ className: cn("eb:tabular-nums", property.units ? "eb:pr-14" : "eb:pr-8")
6063
6062
  }
6064
6063
  ),
6065
- /* @__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.units ? /* @__PURE__ */ jsx12(
6066
- "select",
6067
- {
6068
- "aria-label": `${t(property.label)} \u2014 ${t("Unit")}`,
6069
- value: unit,
6070
- className: "eb:pointer-events-auto eb:bg-transparent eb:text-foreground eb:outline-none",
6071
- onChange: (event) => commit(draft || asNumber(fallback) || "0", event.target.value),
6072
- children: property.units.map((option) => /* @__PURE__ */ jsx12("option", { value: option, children: option }, option))
6073
- }
6074
- ) : property.unit || "px" })
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
- "eb:[appearance:textfield] eb:[&::-webkit-inner-spin-button]:appearance-none eb:[&::-webkit-outer-spin-button]:appearance-none",
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-X4WTY6LC.js.map
8240
+ //# sourceMappingURL=chunk-6CLBQRCI.js.map