best-email-builder 0.13.0 → 0.14.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 +25 -0
- package/dist/ai-server.js +3 -3
- package/dist/ai.js +6 -6
- package/dist/builder.js +10 -8
- package/dist/{chunk-G7G3TRWG.js → chunk-2ZRGQFX6.js} +684 -700
- package/dist/chunk-2ZRGQFX6.js.map +1 -0
- package/dist/{chunk-UGF3YJ64.js → chunk-7JJ4EZAZ.js} +2 -2
- package/dist/{chunk-LSOR4OII.js → chunk-NEEOZR5C.js} +68 -68
- package/dist/chunk-NEEOZR5C.js.map +1 -0
- package/dist/{chunk-6QTSXJG4.js → chunk-O2A2DPFJ.js} +3 -3
- package/dist/{chunk-JJ56652Y.js → chunk-OTE7BRKU.js} +9 -5
- package/dist/chunk-OTE7BRKU.js.map +1 -0
- package/dist/{chunk-2KOI5SWV.js → chunk-PCSKVVSZ.js} +2 -2
- package/dist/{chunk-A4KF7NMP.js → chunk-R3DWMSSR.js} +2 -2
- package/dist/{chunk-Q5UPFM7J.js → chunk-SAYIBNH5.js} +3 -3
- package/dist/{chunk-Q5UPFM7J.js.map → chunk-SAYIBNH5.js.map} +1 -1
- package/dist/{chunk-ZTUW25BG.js → chunk-SYEUC7I2.js} +24 -21
- package/dist/chunk-SYEUC7I2.js.map +1 -0
- package/dist/{chunk-Q2ZUJFOY.js → chunk-VHTV32EW.js} +2 -2
- package/dist/{chunk-XF25DLD4.js → chunk-XXUYQ5BX.js} +3 -3
- package/dist/index.js +12 -10
- package/dist/index.js.map +1 -1
- package/dist/library.js +5 -5
- package/dist/server.js +7 -5
- package/dist/server.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/types/builder.d.ts +1 -1
- package/dist/types/core/constants.d.ts +1 -1
- package/dist/types/engine/NativeAdapter.d.ts +1 -1
- package/dist/types/features/variables/VariablePicker.d.ts +2 -2
- package/dist/types/features/variables/VariablesBar.d.ts +10 -5
- package/dist/types/features/variables/catalog.d.ts +15 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/server/index.d.ts +1 -1
- package/dist/types/ui/primitives/searchShortcut.d.ts +1 -1
- package/package.json +1 -1
- package/dist/chunk-G7G3TRWG.js.map +0 -1
- package/dist/chunk-JJ56652Y.js.map +0 -1
- package/dist/chunk-LSOR4OII.js.map +0 -1
- package/dist/chunk-ZTUW25BG.js.map +0 -1
- package/dist/types/features/variables/VariablesMenu.d.ts +0 -18
- /package/dist/{chunk-UGF3YJ64.js.map → chunk-7JJ4EZAZ.js.map} +0 -0
- /package/dist/{chunk-6QTSXJG4.js.map → chunk-O2A2DPFJ.js.map} +0 -0
- /package/dist/{chunk-2KOI5SWV.js.map → chunk-PCSKVVSZ.js.map} +0 -0
- /package/dist/{chunk-A4KF7NMP.js.map → chunk-R3DWMSSR.js.map} +0 -0
- /package/dist/{chunk-Q2ZUJFOY.js.map → chunk-VHTV32EW.js.map} +0 -0
- /package/dist/{chunk-XF25DLD4.js.map → chunk-XXUYQ5BX.js.map} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,31 @@ All notable changes are documented here. The format follows
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [0.14.0] — 2026-10-20
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
- The *Email provider variables* bar above the canvas (formerly
|
|
13
|
+
*Personalization fields*) is the one place to insert a variable: the
|
|
14
|
+
toolbar's *Variables* menu is gone. The bar now also offers the unsubscribe
|
|
15
|
+
link, *New variable*, and a pencil to edit or delete a custom variable.
|
|
16
|
+
The `{ }` buttons next to *Subject* and *Preview text* keep their search.
|
|
17
|
+
- No variables by default: `DEFAULT_VARIABLES` holds only the unsubscribe
|
|
18
|
+
link, and users create the others with the bar's new **+** button (and edit
|
|
19
|
+
them with the pencil of their badge). The former five (first name, last
|
|
20
|
+
name, email address, company, campaign name) are exported as
|
|
21
|
+
`EXAMPLE_VARIABLES`: pass `[...EXAMPLE_VARIABLES, ...DEFAULT_VARIABLES]` to
|
|
22
|
+
`<EmailBuilder variables>` and `createEmailBuilderHandler({ variables })` to
|
|
23
|
+
keep them.
|
|
24
|
+
- The starter template and the *Welcome* template hold no variable: the
|
|
25
|
+
greeting is "Hello," and the heading "Welcome aboard!".
|
|
26
|
+
|
|
27
|
+
## [0.13.1] — 2026-10-20
|
|
28
|
+
|
|
29
|
+
### Fixed
|
|
30
|
+
- Deleting a template in the library selects the next one of the list (the
|
|
31
|
+
one before it when it was the last). Deleting the first template showed
|
|
32
|
+
*Template not found*, and deleting another one jumped to the first.
|
|
33
|
+
|
|
9
34
|
## [0.13.0] — 2026-10-20
|
|
10
35
|
|
|
11
36
|
### Added
|
package/dist/ai-server.js
CHANGED
|
@@ -26,9 +26,9 @@ import {
|
|
|
26
26
|
reviewFix,
|
|
27
27
|
reviewRewrite,
|
|
28
28
|
reviewSubjects
|
|
29
|
-
} from "./chunk-
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
29
|
+
} from "./chunk-XXUYQ5BX.js";
|
|
30
|
+
import "./chunk-R3DWMSSR.js";
|
|
31
|
+
import "./chunk-SYEUC7I2.js";
|
|
32
32
|
|
|
33
33
|
// src/ai/agentEndpoint.js
|
|
34
34
|
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-7JJ4EZAZ.js";
|
|
4
4
|
import {
|
|
5
5
|
Button,
|
|
6
6
|
Dialog,
|
|
@@ -19,8 +19,8 @@ import {
|
|
|
19
19
|
cn,
|
|
20
20
|
createHttpCaller,
|
|
21
21
|
useUi
|
|
22
|
-
} from "./chunk-
|
|
23
|
-
import "./chunk-
|
|
22
|
+
} from "./chunk-O2A2DPFJ.js";
|
|
23
|
+
import "./chunk-SAYIBNH5.js";
|
|
24
24
|
import {
|
|
25
25
|
AGENT_ERROR_CODES,
|
|
26
26
|
AGENT_PROTOCOL,
|
|
@@ -43,9 +43,9 @@ import {
|
|
|
43
43
|
providerEmailModel,
|
|
44
44
|
resolveProvider,
|
|
45
45
|
visibleText
|
|
46
|
-
} from "./chunk-
|
|
47
|
-
import "./chunk-
|
|
48
|
-
import "./chunk-
|
|
46
|
+
} from "./chunk-XXUYQ5BX.js";
|
|
47
|
+
import "./chunk-R3DWMSSR.js";
|
|
48
|
+
import "./chunk-SYEUC7I2.js";
|
|
49
49
|
|
|
50
50
|
// src/ai/keys.js
|
|
51
51
|
var STORAGE_PREFIX = "best-email-builder:ai-key:";
|
package/dist/builder.js
CHANGED
|
@@ -5,33 +5,35 @@ import {
|
|
|
5
5
|
TEMPLATE_GALLERY,
|
|
6
6
|
buildGallery,
|
|
7
7
|
createStarterMjml
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-2ZRGQFX6.js";
|
|
9
|
+
import "./chunk-NEEOZR5C.js";
|
|
10
|
+
import "./chunk-VHTV32EW.js";
|
|
11
11
|
import "./chunk-UFKCLU2D.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-7JJ4EZAZ.js";
|
|
13
13
|
import {
|
|
14
14
|
StorageError,
|
|
15
15
|
createHttpStorage,
|
|
16
16
|
createMemoryStorage
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-O2A2DPFJ.js";
|
|
18
18
|
import {
|
|
19
19
|
EMAIL_BUILDER_VERSION
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-SAYIBNH5.js";
|
|
21
|
+
import "./chunk-R3DWMSSR.js";
|
|
22
22
|
import {
|
|
23
23
|
CUSTOM_GROUP,
|
|
24
24
|
DEFAULT_VARIABLES,
|
|
25
|
+
EXAMPLE_VARIABLES,
|
|
25
26
|
LOCALES,
|
|
26
27
|
createTranslator,
|
|
27
28
|
defineVariables,
|
|
28
29
|
mergeVariables,
|
|
29
30
|
translatorFor
|
|
30
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-SYEUC7I2.js";
|
|
31
32
|
export {
|
|
32
33
|
CUSTOM_GROUP,
|
|
33
34
|
DEFAULT_VARIABLES,
|
|
34
35
|
EMAIL_BUILDER_VERSION,
|
|
36
|
+
EXAMPLE_VARIABLES,
|
|
35
37
|
EmailBuilder,
|
|
36
38
|
EmailBuilderBoundary,
|
|
37
39
|
LOCALES,
|