best-email-builder 0.17.1 → 0.18.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 (39) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/ai-server.js +3 -3
  3. package/dist/ai.js +6 -6
  4. package/dist/builder.js +8 -8
  5. package/dist/{chunk-FPJF77MO.js → chunk-2B3N6CH4.js} +49 -1
  6. package/dist/chunk-2B3N6CH4.js.map +1 -0
  7. package/dist/{chunk-QDAVDMA4.js → chunk-2M44NIFG.js} +2 -2
  8. package/dist/{chunk-PCLRIXAQ.js → chunk-37PEEEBB.js} +2 -2
  9. package/dist/{chunk-WFZO7GQ4.js → chunk-BER25JS7.js} +2 -2
  10. package/dist/{chunk-YPSSQZ4R.js → chunk-D46HKFV5.js} +22 -3
  11. package/dist/chunk-D46HKFV5.js.map +1 -0
  12. package/dist/{chunk-XDE6SMXH.js → chunk-F3566ZQB.js} +3 -3
  13. package/dist/{chunk-37N22Z4Y.js → chunk-JLQDVA4B.js} +4 -4
  14. package/dist/{chunk-Z5NGST5W.js → chunk-L7NSAYYX.js} +3 -3
  15. package/dist/{chunk-Z5NGST5W.js.map → chunk-L7NSAYYX.js.map} +1 -1
  16. package/dist/{chunk-ZRER4JD4.js → chunk-LKD6QZMD.js} +3 -3
  17. package/dist/{chunk-2F7P4FXX.js → chunk-POUAC5TN.js} +2 -2
  18. package/dist/{chunk-6CLBQRCI.js → chunk-W4UKDEB4.js} +133 -57
  19. package/dist/chunk-W4UKDEB4.js.map +1 -0
  20. package/dist/index.js +10 -10
  21. package/dist/library.js +5 -5
  22. package/dist/server.js +48 -5
  23. package/dist/server.js.map +1 -1
  24. package/dist/types/core/constants.d.ts +1 -1
  25. package/dist/types/engine/NativeAdapter.d.ts +1 -1
  26. package/dist/types/features/variables/VariablesPanel.d.ts +4 -0
  27. package/dist/types/server/variables.d.ts +12 -0
  28. package/dist/types/storage/client.d.ts +4 -0
  29. package/package.json +1 -1
  30. package/dist/chunk-6CLBQRCI.js.map +0 -1
  31. package/dist/chunk-FPJF77MO.js.map +0 -1
  32. package/dist/chunk-YPSSQZ4R.js.map +0 -1
  33. /package/dist/{chunk-QDAVDMA4.js.map → chunk-2M44NIFG.js.map} +0 -0
  34. /package/dist/{chunk-PCLRIXAQ.js.map → chunk-37PEEEBB.js.map} +0 -0
  35. /package/dist/{chunk-WFZO7GQ4.js.map → chunk-BER25JS7.js.map} +0 -0
  36. /package/dist/{chunk-XDE6SMXH.js.map → chunk-F3566ZQB.js.map} +0 -0
  37. /package/dist/{chunk-37N22Z4Y.js.map → chunk-JLQDVA4B.js.map} +0 -0
  38. /package/dist/{chunk-ZRER4JD4.js.map → chunk-LKD6QZMD.js.map} +0 -0
  39. /package/dist/{chunk-2F7P4FXX.js.map → chunk-POUAC5TN.js.map} +0 -0
package/CHANGELOG.md CHANGED
@@ -6,6 +6,17 @@ All notable changes are documented here. The format follows
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.18.0] — 2026-10-27
10
+
11
+ ### Added
12
+ - Variable groups can be renamed and deleted: the pencil beside a group's
13
+ "+". Renamed, its variables follow it; deleted, they go back to their
14
+ default group (the application's, or Custom). A group its variables belong
15
+ to by default cannot be deleted.
16
+ - Storage: `renameVariableGroup(from, name)` and `deleteVariableGroup(name)`;
17
+ server: `PUT` and `DELETE {base}/variable-groups/:name`, with the
18
+ repository's `renameGroup` and `removeGroup`.
19
+
9
20
  ## [0.17.1] — 2026-10-26
10
21
 
11
22
  ### Changed
package/dist/ai-server.js CHANGED
@@ -28,9 +28,9 @@ import {
28
28
  reviewFix,
29
29
  reviewRewrite,
30
30
  reviewSubjects
31
- } from "./chunk-ZRER4JD4.js";
32
- import "./chunk-2F7P4FXX.js";
33
- import "./chunk-FPJF77MO.js";
31
+ } from "./chunk-LKD6QZMD.js";
32
+ import "./chunk-POUAC5TN.js";
33
+ import "./chunk-2B3N6CH4.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-PCLRIXAQ.js";
3
+ } from "./chunk-37PEEEBB.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-YPSSQZ4R.js";
24
- import "./chunk-Z5NGST5W.js";
23
+ } from "./chunk-D46HKFV5.js";
24
+ import "./chunk-L7NSAYYX.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-ZRER4JD4.js";
50
- import "./chunk-2F7P4FXX.js";
51
- import "./chunk-FPJF77MO.js";
49
+ } from "./chunk-LKD6QZMD.js";
50
+ import "./chunk-POUAC5TN.js";
51
+ import "./chunk-2B3N6CH4.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,20 @@ import {
5
5
  TEMPLATE_GALLERY,
6
6
  buildGallery,
7
7
  createStarterMjml
8
- } from "./chunk-6CLBQRCI.js";
9
- import "./chunk-XDE6SMXH.js";
10
- import "./chunk-WFZO7GQ4.js";
8
+ } from "./chunk-W4UKDEB4.js";
9
+ import "./chunk-F3566ZQB.js";
10
+ import "./chunk-BER25JS7.js";
11
11
  import "./chunk-UFKCLU2D.js";
12
- import "./chunk-PCLRIXAQ.js";
12
+ import "./chunk-37PEEEBB.js";
13
13
  import {
14
14
  StorageError,
15
15
  createHttpStorage,
16
16
  createMemoryStorage
17
- } from "./chunk-YPSSQZ4R.js";
17
+ } from "./chunk-D46HKFV5.js";
18
18
  import {
19
19
  EMAIL_BUILDER_VERSION
20
- } from "./chunk-Z5NGST5W.js";
21
- import "./chunk-2F7P4FXX.js";
20
+ } from "./chunk-L7NSAYYX.js";
21
+ import "./chunk-POUAC5TN.js";
22
22
  import {
23
23
  CUSTOM_GROUP,
24
24
  DEFAULT_VARIABLES,
@@ -28,7 +28,7 @@ import {
28
28
  defineVariables,
29
29
  mergeVariables,
30
30
  translatorFor
31
- } from "./chunk-FPJF77MO.js";
31
+ } from "./chunk-2B3N6CH4.js";
32
32
  export {
33
33
  CUSTOM_GROUP,
34
34
  DEFAULT_VARIABLES,
@@ -597,6 +597,14 @@ var de = {
597
597
  "New group": "Neue Gruppe",
598
598
  "Organize your variables into groups.": "Organisieren Sie Ihre Variablen in Gruppen.",
599
599
  "This group already exists.": "Diese Gruppe existiert bereits.",
600
+ "Edit group": "Gruppe bearbeiten",
601
+ "Edit the group \u201C{group}\u201D": "Gruppe \u201E{group}\u201C bearbeiten",
602
+ "Its variables follow the new name.": "Ihre Variablen \xFCbernehmen den neuen Namen.",
603
+ "Delete the group \u201C{group}\u201D?": "Gruppe \u201E{group}\u201C l\xF6schen?",
604
+ "Its variables go back to their default group.": "Ihre Variablen kehren in ihre Standardgruppe zur\xFCck.",
605
+ "It has no variables.": "Sie enth\xE4lt keine Variablen.",
606
+ "Group deleted.": "Gruppe gel\xF6scht.",
607
+ "Its variables belong to it: it cannot be deleted.": "Ihre Variablen geh\xF6ren zu ihr: Sie kann nicht gel\xF6scht werden.",
600
608
  "New variable in {group}": "Neue Variable in {group}",
601
609
  "Unit": "Einheit"
602
610
  };
@@ -1200,6 +1208,14 @@ var es = {
1200
1208
  "New group": "Nuevo grupo",
1201
1209
  "Organize your variables into groups.": "Organiza tus variables en grupos.",
1202
1210
  "This group already exists.": "Este grupo ya existe.",
1211
+ "Edit group": "Editar grupo",
1212
+ "Edit the group \u201C{group}\u201D": "Editar el grupo \xAB{group}\xBB",
1213
+ "Its variables follow the new name.": "Sus variables adoptan el nuevo nombre.",
1214
+ "Delete the group \u201C{group}\u201D?": "\xBFEliminar el grupo \xAB{group}\xBB?",
1215
+ "Its variables go back to their default group.": "Sus variables vuelven a su grupo predeterminado.",
1216
+ "It has no variables.": "No tiene variables.",
1217
+ "Group deleted.": "Grupo eliminado.",
1218
+ "Its variables belong to it: it cannot be deleted.": "Sus variables le pertenecen: no se puede eliminar.",
1203
1219
  "New variable in {group}": "Nueva variable en {group}",
1204
1220
  "Unit": "Unidad"
1205
1221
  };
@@ -1803,6 +1819,14 @@ var fr = {
1803
1819
  "New group": "Nouveau groupe",
1804
1820
  "Organize your variables into groups.": "Organisez vos variables en groupes.",
1805
1821
  "This group already exists.": "Ce groupe existe d\xE9j\xE0.",
1822
+ "Edit group": "Modifier le groupe",
1823
+ "Edit the group \u201C{group}\u201D": "Modifier le groupe \xAB {group} \xBB",
1824
+ "Its variables follow the new name.": "Ses variables suivent le nouveau nom.",
1825
+ "Delete the group \u201C{group}\u201D?": "Supprimer le groupe \xAB {group} \xBB ?",
1826
+ "Its variables go back to their default group.": "Ses variables retournent dans leur groupe par d\xE9faut.",
1827
+ "It has no variables.": "Il n\u2019a aucune variable.",
1828
+ "Group deleted.": "Groupe supprim\xE9.",
1829
+ "Its variables belong to it: it cannot be deleted.": "Ses variables lui appartiennent : il ne peut pas \xEAtre supprim\xE9.",
1806
1830
  "New variable in {group}": "Nouvelle variable dans {group}",
1807
1831
  "Unit": "Unit\xE9"
1808
1832
  };
@@ -2406,6 +2430,14 @@ var pt = {
2406
2430
  "New group": "Novo grupo",
2407
2431
  "Organize your variables into groups.": "Organize suas vari\xE1veis em grupos.",
2408
2432
  "This group already exists.": "Este grupo j\xE1 existe.",
2433
+ "Edit group": "Editar grupo",
2434
+ "Edit the group \u201C{group}\u201D": "Editar o grupo \u201C{group}\u201D",
2435
+ "Its variables follow the new name.": "Suas vari\xE1veis seguem o novo nome.",
2436
+ "Delete the group \u201C{group}\u201D?": "Excluir o grupo \u201C{group}\u201D?",
2437
+ "Its variables go back to their default group.": "Suas vari\xE1veis voltam ao grupo padr\xE3o.",
2438
+ "It has no variables.": "N\xE3o tem vari\xE1veis.",
2439
+ "Group deleted.": "Grupo exclu\xEDdo.",
2440
+ "Its variables belong to it: it cannot be deleted.": "Suas vari\xE1veis pertencem a ele: n\xE3o pode ser exclu\xEDdo.",
2409
2441
  "New variable in {group}": "Nova vari\xE1vel em {group}",
2410
2442
  "Unit": "Unidade"
2411
2443
  };
@@ -3009,6 +3041,14 @@ var ru = {
3009
3041
  "New group": "\u041D\u043E\u0432\u0430\u044F \u0433\u0440\u0443\u043F\u043F\u0430",
3010
3042
  "Organize your variables into groups.": "\u041E\u0431\u044A\u0435\u0434\u0438\u043D\u044F\u0439\u0442\u0435 \u043F\u0435\u0440\u0435\u043C\u0435\u043D\u043D\u044B\u0435 \u0432 \u0433\u0440\u0443\u043F\u043F\u044B.",
3011
3043
  "This group already exists.": "\u0422\u0430\u043A\u0430\u044F \u0433\u0440\u0443\u043F\u043F\u0430 \u0443\u0436\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442.",
3044
+ "Edit group": "\u0418\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u0433\u0440\u0443\u043F\u043F\u0443",
3045
+ "Edit the group \u201C{group}\u201D": "\u0418\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u0433\u0440\u0443\u043F\u043F\u0443 \xAB{group}\xBB",
3046
+ "Its variables follow the new name.": "\u0415\u0451 \u043F\u0435\u0440\u0435\u043C\u0435\u043D\u043D\u044B\u0435 \u043F\u043E\u043B\u0443\u0447\u0430\u0442 \u043D\u043E\u0432\u043E\u0435 \u043D\u0430\u0437\u0432\u0430\u043D\u0438\u0435 \u0433\u0440\u0443\u043F\u043F\u044B.",
3047
+ "Delete the group \u201C{group}\u201D?": "\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0433\u0440\u0443\u043F\u043F\u0443 \xAB{group}\xBB?",
3048
+ "Its variables go back to their default group.": "\u0415\u0451 \u043F\u0435\u0440\u0435\u043C\u0435\u043D\u043D\u044B\u0435 \u0432\u0435\u0440\u043D\u0443\u0442\u0441\u044F \u0432 \u0441\u0432\u043E\u044E \u0433\u0440\u0443\u043F\u043F\u0443 \u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E.",
3049
+ "It has no variables.": "\u0412 \u043D\u0435\u0439 \u043D\u0435\u0442 \u043F\u0435\u0440\u0435\u043C\u0435\u043D\u043D\u044B\u0445.",
3050
+ "Group deleted.": "\u0413\u0440\u0443\u043F\u043F\u0430 \u0443\u0434\u0430\u043B\u0435\u043D\u0430.",
3051
+ "Its variables belong to it: it cannot be deleted.": "\u0415\u0451 \u043F\u0435\u0440\u0435\u043C\u0435\u043D\u043D\u044B\u0435 \u043F\u0440\u0438\u043D\u0430\u0434\u043B\u0435\u0436\u0430\u0442 \u0435\u0439: \u0443\u0434\u0430\u043B\u0438\u0442\u044C \u0435\u0451 \u043D\u0435\u043B\u044C\u0437\u044F.",
3012
3052
  "New variable in {group}": "\u041D\u043E\u0432\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u0435\u043D\u043D\u0430\u044F \u0432 \u0433\u0440\u0443\u043F\u043F\u0435 {group}",
3013
3053
  "Unit": "\u0415\u0434\u0438\u043D\u0438\u0446\u0430"
3014
3054
  };
@@ -3612,6 +3652,14 @@ var zh = {
3612
3652
  "New group": "\u65B0\u5EFA\u5206\u7EC4",
3613
3653
  "Organize your variables into groups.": "\u5C06\u53D8\u91CF\u6574\u7406\u5230\u5206\u7EC4\u4E2D\u3002",
3614
3654
  "This group already exists.": "\u6B64\u5206\u7EC4\u5DF2\u5B58\u5728\u3002",
3655
+ "Edit group": "\u7F16\u8F91\u5206\u7EC4",
3656
+ "Edit the group \u201C{group}\u201D": "\u7F16\u8F91\u5206\u7EC4\u201C{group}\u201D",
3657
+ "Its variables follow the new name.": "\u5176\u4E2D\u7684\u53D8\u91CF\u5C06\u4F7F\u7528\u65B0\u540D\u79F0\u3002",
3658
+ "Delete the group \u201C{group}\u201D?": "\u5220\u9664\u5206\u7EC4\u201C{group}\u201D\uFF1F",
3659
+ "Its variables go back to their default group.": "\u5176\u4E2D\u7684\u53D8\u91CF\u5C06\u56DE\u5230\u9ED8\u8BA4\u5206\u7EC4\u3002",
3660
+ "It has no variables.": "\u8BE5\u5206\u7EC4\u6CA1\u6709\u53D8\u91CF\u3002",
3661
+ "Group deleted.": "\u5206\u7EC4\u5DF2\u5220\u9664\u3002",
3662
+ "Its variables belong to it: it cannot be deleted.": "\u5176\u4E2D\u7684\u53D8\u91CF\u5C5E\u4E8E\u8BE5\u5206\u7EC4\uFF1A\u65E0\u6CD5\u5220\u9664\u3002",
3615
3663
  "New variable in {group}": "\u5728 {group} \u4E2D\u65B0\u5EFA\u53D8\u91CF",
3616
3664
  "Unit": "\u5355\u4F4D"
3617
3665
  };
@@ -3803,4 +3851,4 @@ export {
3803
3851
  absoluteAssetUrls,
3804
3852
  applyServiceLinks
3805
3853
  };
3806
- //# sourceMappingURL=chunk-FPJF77MO.js.map
3854
+ //# sourceMappingURL=chunk-2B3N6CH4.js.map