useblocks 1.0.104-alpha.4 → 1.0.113

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 (256) hide show
  1. package/CHANGELOG.en.md +64 -0
  2. package/CHANGELOG.md +59 -0
  3. package/README.md +127 -100
  4. package/asset-manifest.json +224 -215
  5. package/fm_notification.d.ts +16 -0
  6. package/iframe/429.js +1 -1
  7. package/iframe/766.js +1 -1
  8. package/iframe/css/sandbox-darktheme.css +23 -7
  9. package/iframe/css/sandbox.css +70 -12
  10. package/iframe/iframe-eblock.ddf2c21cb6230265e099.html +1 -0
  11. package/iframe/iframe.ddf2c21cb6230265e099.html +1 -0
  12. package/iframe/index.html +1 -1
  13. package/iframe/js/525.67635344.js +1 -0
  14. package/iframe/js/667.71a178b7.js +1 -0
  15. package/iframe/js/882.8ff0b349.js +1 -0
  16. package/iframe/sandbox-eblock.js +1 -1
  17. package/images/integrations/activecampaign.svg +4 -0
  18. package/images/integrations/bento.svg +9 -0
  19. package/images/integrations/brevo.svg +7 -0
  20. package/images/integrations/campaign_monitor.svg +10 -0
  21. package/images/integrations/constant_contact.svg +24 -0
  22. package/images/integrations/dotdigital.svg +144 -0
  23. package/images/integrations/getresponse.svg +23 -0
  24. package/images/integrations/hubspot.svg +3 -0
  25. package/images/integrations/klaviyo.svg +10 -0
  26. package/images/integrations/mailchimp.svg +9 -0
  27. package/images/integrations/salesforce.svg +20 -0
  28. package/js/amplitude.min.js +8 -10
  29. package/js/browser-image-compression.js +3062 -0
  30. package/js/sourcebuster.min.js +0 -1
  31. package/package.json +1 -1
  32. package/static/css/{8778.3f22f159.chunk.css → 2557.2ede4a53.chunk.css} +2 -2
  33. package/static/css/6310.49bbc429.chunk.css +2 -0
  34. package/static/css/{81.c6c6e3f4.chunk.css → 770.9875661a.chunk.css} +1 -1
  35. package/static/css/9617.36fe0d8e.chunk.css +2 -0
  36. package/static/css/main.15e1c81d.css +2 -0
  37. package/static/js/1241.e3e56034.js +2 -0
  38. package/static/js/1330.ef930318.js +2 -0
  39. package/static/js/1332.0cb959b4.js +2 -0
  40. package/static/js/1377.2c61acc1.js +2 -0
  41. package/static/js/1454.84d2c0a8.js +2 -0
  42. package/static/js/1502.8a2f6e6b.js +2 -0
  43. package/static/js/1510.e74cce46.js +2 -0
  44. package/static/js/1626.3320a5f3.js +2 -0
  45. package/static/js/1640.27be7178.js +2 -0
  46. package/static/js/1788.d2bc729b.js +2 -0
  47. package/static/js/{1807.edd17ae4.js → 1807.0ba6ab90.js} +3 -3
  48. package/static/js/1872.43ec6943.js +2 -0
  49. package/static/js/{1902.7004d313.js → 1902.7b351f26.js} +2 -2
  50. package/static/js/1940.f13d2898.js +3 -0
  51. package/static/js/197.6d76c202.js +2 -0
  52. package/static/js/2066.c62582aa.js +2 -0
  53. package/static/js/2114.e385ca42.js +2 -0
  54. package/static/js/2139.775a0a57.js +3 -0
  55. package/static/js/2248.39c53056.js +2 -0
  56. package/static/js/{2278.b3ed09ee.js → 2278.29663e62.js} +3 -3
  57. package/static/js/2336.4fc241a6.js +2 -0
  58. package/static/js/2408.c5572548.js +2 -0
  59. package/static/js/2438.712814b0.js +2 -0
  60. package/static/js/2557.663778e1.js +2 -0
  61. package/static/js/2827.36a23b69.js +2 -0
  62. package/static/js/284.efb80df6.js +2 -0
  63. package/static/js/2844.54191136.js +2 -0
  64. package/static/js/290.b615a90b.js +2 -0
  65. package/static/js/2917.a6e819bf.js +2 -0
  66. package/static/js/2988.2496986e.js +2 -0
  67. package/static/js/{3158.e4c478b5.js → 3158.afc3bdd1.js} +2 -2
  68. package/static/js/327.31ca6e0d.js +3 -0
  69. package/static/js/327.31ca6e0d.js.LICENSE.txt +29 -0
  70. package/static/js/3302.84e32b62.js +2 -0
  71. package/static/js/3411.311c6ae0.js +2 -0
  72. package/static/js/3624.c30f383e.js +2 -0
  73. package/static/js/3628.0deca530.js +3 -0
  74. package/static/js/{3628.833940c1.js.LICENSE.txt → 3628.0deca530.js.LICENSE.txt} +0 -15
  75. package/static/js/3711.102a68ee.js +2 -0
  76. package/static/js/3816.8f941c79.js +2 -0
  77. package/static/js/3914.72124e24.js +2 -0
  78. package/static/js/426.ad870198.js +3 -0
  79. package/static/js/426.ad870198.js.LICENSE.txt +163 -0
  80. package/static/js/4425.47aa4461.js +2 -0
  81. package/static/js/4607.f88cf27a.js +2 -0
  82. package/static/js/4686.180d7a12.js +2 -0
  83. package/static/js/4702.eb86f466.js +2 -0
  84. package/static/js/{476.285c6ca0.js → 476.531c09da.js} +2 -2
  85. package/static/js/4813.b282e8cb.js +2 -0
  86. package/static/js/4823.ddb0914d.js +2 -0
  87. package/static/js/{4863.3c9556d1.js → 4863.bc61c6b4.js} +3 -3
  88. package/static/js/494.447cdadd.js +2 -0
  89. package/static/js/5108.b3eccf14.js +2 -0
  90. package/static/js/5261.8499aaa1.js +2 -0
  91. package/static/js/5266.8ab2e97a.js +3 -0
  92. package/static/js/5266.8ab2e97a.js.LICENSE.txt +20 -0
  93. package/static/js/5322.413feb5a.js +2 -0
  94. package/static/js/5432.a1089dad.js +2 -0
  95. package/static/js/5466.50904f4e.js +2 -0
  96. package/static/js/5641.7f2999ab.js +3 -0
  97. package/static/js/{9318.9512cd6c.js.LICENSE.txt → 5641.7f2999ab.js.LICENSE.txt} +0 -9
  98. package/static/js/5653.016de6aa.js +2 -0
  99. package/static/js/5827.9dcc9443.js +2 -0
  100. package/static/js/5862.faad8f74.js +2 -0
  101. package/static/js/5864.6033ee51.js +2 -0
  102. package/static/js/5902.33cce976.js +2 -0
  103. package/static/js/5980.d73d6b51.js +2 -0
  104. package/static/js/6033.eb6097f0.js +2 -0
  105. package/static/js/6135.3b810692.js +2 -0
  106. package/static/js/6310.e0dfd60e.js +2 -0
  107. package/static/js/6418.59058d0d.js +2 -0
  108. package/static/js/6428.57a30f96.js +2 -0
  109. package/static/js/6552.271c84f5.js +2 -0
  110. package/static/js/6618.feb19bcb.js +2 -0
  111. package/static/js/6764.2a43d6d5.js +2 -0
  112. package/static/js/6832.2e6f8499.js +2 -0
  113. package/static/js/7288.efae06f4.js +2 -0
  114. package/static/js/737.b395c2b2.js +2 -0
  115. package/static/js/7426.1de30709.js +2 -0
  116. package/static/js/7673.2db4eeee.js +3 -0
  117. package/static/js/{5255.c937525e.js.LICENSE.txt → 7673.2db4eeee.js.LICENSE.txt} +9 -0
  118. package/static/js/77.9fcf0459.js +2 -0
  119. package/static/js/770.88557b4b.js +3 -0
  120. package/static/js/{7716.a8d67437.js → 7716.45cd053a.js} +3 -3
  121. package/static/js/7974.db4992e0.js +2 -0
  122. package/static/js/8181.9ceaa143.js +2 -0
  123. package/static/js/8363.7902220a.js +2 -0
  124. package/static/js/8466.d3339ec9.js +2 -0
  125. package/static/js/8534.a012d026.js +2 -0
  126. package/static/js/8580.05b41c79.js +2 -0
  127. package/static/js/8590.3e646adc.js +2 -0
  128. package/static/js/8682.b39ae089.js +2 -0
  129. package/static/js/8796.27f3a38e.js +2 -0
  130. package/static/js/8839.75fb5ef2.js +2 -0
  131. package/static/js/912.e406cb4c.js +3 -0
  132. package/static/js/9169.a1d48107.js +2 -0
  133. package/static/js/9200.f1b7e119.js +2 -0
  134. package/static/js/9487.6209c75a.js +3 -0
  135. package/static/js/9487.6209c75a.js.LICENSE.txt +24 -0
  136. package/static/js/9508.4fb40b12.js +2 -0
  137. package/static/js/9617.6cc3831b.js +3 -0
  138. package/static/js/9716.e99deec1.js +2 -0
  139. package/static/js/{9830.76800418.js → 9830.6890d559.js} +3 -3
  140. package/static/js/useblocks_core.16c5c107.js +3 -0
  141. package/useblocks-esm.js +1 -1
  142. package/useblocks.d.ts +95 -26
  143. package/useblocks.js +1 -1
  144. package/iframe/iframe-eblock.327a87d1da513ae71cd6.html +0 -1
  145. package/iframe/iframe.327a87d1da513ae71cd6.html +0 -1
  146. package/iframe/js/174.f2d7a34b.js +0 -1
  147. package/iframe/js/525.5008592e.js +0 -1
  148. package/iframe/js/882.1dcd22d2.js +0 -1
  149. package/static/css/1670.c105226d.chunk.css +0 -2
  150. package/static/css/5102.4bf6c54e.chunk.css +0 -2
  151. package/static/css/main.f1b5caa5.css +0 -2
  152. package/static/js/1157.1e6829d5.js +0 -3
  153. package/static/js/1157.1e6829d5.js.LICENSE.txt +0 -9
  154. package/static/js/1241.9f7c977b.js +0 -2
  155. package/static/js/1330.607183c7.js +0 -2
  156. package/static/js/1332.3eba834b.js +0 -2
  157. package/static/js/1377.b486b1f4.js +0 -2
  158. package/static/js/1454.23356a65.js +0 -2
  159. package/static/js/1502.6be06fc7.js +0 -2
  160. package/static/js/1510.32a77efc.js +0 -2
  161. package/static/js/1626.0cd4dd3f.js +0 -2
  162. package/static/js/1640.7ae88653.js +0 -2
  163. package/static/js/1670.d5169574.js +0 -3
  164. package/static/js/1788.e7e85733.js +0 -2
  165. package/static/js/1872.610556e1.js +0 -2
  166. package/static/js/197.64f9fd6b.js +0 -2
  167. package/static/js/2066.a4cfddd1.js +0 -2
  168. package/static/js/2114.dff67863.js +0 -2
  169. package/static/js/2139.5b04512a.js +0 -3
  170. package/static/js/2248.364643d4.js +0 -2
  171. package/static/js/2408.8dcea713.js +0 -2
  172. package/static/js/2438.02617e55.js +0 -2
  173. package/static/js/2827.e02551c9.js +0 -2
  174. package/static/js/284.df9cd8ae.js +0 -2
  175. package/static/js/2844.4c02df45.js +0 -2
  176. package/static/js/290.3b771060.js +0 -2
  177. package/static/js/2917.f75d7ce1.js +0 -2
  178. package/static/js/2988.6d43f35a.js +0 -2
  179. package/static/js/3302.9b320bc9.js +0 -2
  180. package/static/js/3411.69f4008b.js +0 -2
  181. package/static/js/3624.a7076f34.js +0 -2
  182. package/static/js/3628.833940c1.js +0 -3
  183. package/static/js/3711.d621dbad.js +0 -2
  184. package/static/js/3816.bf684fe1.js +0 -2
  185. package/static/js/3914.c63f1b85.js +0 -2
  186. package/static/js/392.15977b83.js +0 -2
  187. package/static/js/4425.39579a63.js +0 -2
  188. package/static/js/4607.25f2d561.js +0 -2
  189. package/static/js/4686.6a800b56.js +0 -2
  190. package/static/js/4702.de98cbd5.js +0 -2
  191. package/static/js/4813.ca2fe39e.js +0 -2
  192. package/static/js/4823.d4ba65be.js +0 -2
  193. package/static/js/4875.f29c6551.js +0 -3
  194. package/static/js/4875.f29c6551.js.LICENSE.txt +0 -40
  195. package/static/js/494.87c48e86.js +0 -2
  196. package/static/js/5102.027e3460.js +0 -2
  197. package/static/js/5108.473a7fe1.js +0 -2
  198. package/static/js/5255.c937525e.js +0 -3
  199. package/static/js/5261.3e64116f.js +0 -2
  200. package/static/js/5322.ce259c32.js +0 -2
  201. package/static/js/5466.a0f769cb.js +0 -2
  202. package/static/js/5612.37f3811e.js +0 -3
  203. package/static/js/5612.37f3811e.js.LICENSE.txt +0 -30
  204. package/static/js/5653.5f06277c.js +0 -2
  205. package/static/js/5827.6555a26a.js +0 -2
  206. package/static/js/5844.385b78d0.js +0 -3
  207. package/static/js/5862.225d9aac.js +0 -2
  208. package/static/js/5864.340bc721.js +0 -2
  209. package/static/js/5902.73cb2cc4.js +0 -2
  210. package/static/js/5980.fbc691ed.js +0 -2
  211. package/static/js/6033.71847c1c.js +0 -2
  212. package/static/js/6135.ceb22131.js +0 -2
  213. package/static/js/6413.0307be24.js +0 -2
  214. package/static/js/6418.5c3bf780.js +0 -2
  215. package/static/js/6428.8b233458.js +0 -2
  216. package/static/js/6525.6cf7ec98.js +0 -3
  217. package/static/js/6552.9d811323.js +0 -2
  218. package/static/js/6618.8866f1fa.js +0 -2
  219. package/static/js/6764.9e4a7f5f.js +0 -2
  220. package/static/js/6832.4c4f3da7.js +0 -2
  221. package/static/js/7288.170ea51b.js +0 -2
  222. package/static/js/737.fae14b35.js +0 -2
  223. package/static/js/7426.eaa2cbe4.js +0 -2
  224. package/static/js/77.6ea8ad5d.js +0 -2
  225. package/static/js/7974.5b71f208.js +0 -2
  226. package/static/js/81.45a57ae0.js +0 -3
  227. package/static/js/8466.ae622785.js +0 -2
  228. package/static/js/8534.10b79ff1.js +0 -2
  229. package/static/js/8580.4f0dc6d9.js +0 -2
  230. package/static/js/8590.2779de33.js +0 -2
  231. package/static/js/8682.ec99bbfe.js +0 -2
  232. package/static/js/8778.7cb8cbdb.js +0 -2
  233. package/static/js/8796.a6838d71.js +0 -2
  234. package/static/js/8839.25cace14.js +0 -2
  235. package/static/js/9169.dee65ca6.js +0 -2
  236. package/static/js/9200.63433716.js +0 -2
  237. package/static/js/9318.9512cd6c.js +0 -3
  238. package/static/js/9508.a68ced7b.js +0 -2
  239. package/static/js/9716.fb4af6bc.js +0 -2
  240. package/static/js/useblocks_core.7344d1c2.js +0 -3
  241. package/static/media/icon-border-radius.2a56b93a7711558098a622296b7ae2e1.svg +0 -1
  242. package/static/media/icon-create-block.0b077f4000bf7907b9ea871d28c7fb1e.svg +0 -1
  243. /package/iframe/js/{525.5008592e.js.LICENSE.txt → 525.67635344.js.LICENSE.txt} +0 -0
  244. /package/iframe/js/{174.f2d7a34b.js.LICENSE.txt → 667.71a178b7.js.LICENSE.txt} +0 -0
  245. /package/iframe/js/{882.1dcd22d2.js.LICENSE.txt → 882.8ff0b349.js.LICENSE.txt} +0 -0
  246. /package/static/js/{1807.edd17ae4.js.LICENSE.txt → 1807.0ba6ab90.js.LICENSE.txt} +0 -0
  247. /package/static/js/{2139.5b04512a.js.LICENSE.txt → 1940.f13d2898.js.LICENSE.txt} +0 -0
  248. /package/static/js/{4863.3c9556d1.js.LICENSE.txt → 2139.775a0a57.js.LICENSE.txt} +0 -0
  249. /package/static/js/{2278.b3ed09ee.js.LICENSE.txt → 2278.29663e62.js.LICENSE.txt} +0 -0
  250. /package/static/js/{6525.6cf7ec98.js.LICENSE.txt → 4863.bc61c6b4.js.LICENSE.txt} +0 -0
  251. /package/static/js/{7716.a8d67437.js.LICENSE.txt → 770.88557b4b.js.LICENSE.txt} +0 -0
  252. /package/static/js/{81.45a57ae0.js.LICENSE.txt → 7716.45cd053a.js.LICENSE.txt} +0 -0
  253. /package/static/js/{1670.d5169574.js.LICENSE.txt → 912.e406cb4c.js.LICENSE.txt} +0 -0
  254. /package/static/js/{5844.385b78d0.js.LICENSE.txt → 9617.6cc3831b.js.LICENSE.txt} +0 -0
  255. /package/static/js/{9830.76800418.js.LICENSE.txt → 9830.6890d559.js.LICENSE.txt} +0 -0
  256. /package/static/js/{useblocks_core.7344d1c2.js.LICENSE.txt → useblocks_core.16c5c107.js.LICENSE.txt} +0 -0
package/CHANGELOG.en.md CHANGED
@@ -6,15 +6,70 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
6
6
 
7
7
  ---
8
8
 
9
+ ## [1.0.109] - 2026-04-07
10
+
11
+ ### Added
12
+
13
+ - Bulleted lists in the rich text editor (DEV-12615)
14
+ - AI settings: skip dialog queries when the assistant is disabled; richer context for the AI prompt
15
+ - Subscription fields in logging methods (DEV-13876)
16
+ - Error boundary errors reported to analytics
17
+
18
+ ### Fixed
19
+
20
+ - Email subject: whitespace handling and `title` tag parsing (getSubject)
21
+ - Email layout width for columns with the `em-insert-ignore` class
22
+ - Integrations: Dotdigital, Klaviyo, ActiveCampaign; updated Brevo API key help URL
23
+ - File manager: duplicate folder notification (409), scrollable folder list in the Move submenu, DataSource and copy flow updates
24
+ - Link forms: default protocol and empty URL handling
25
+ - Sandbox: drag-and-drop and click layering (pointer-events)
26
+ - `applicationElementSettingsSet` registration and element path filtering
27
+ - Thumbnail normalization for the Pixie image editor
28
+ - Layout: EmailPane spacing, Atoms block (Ant Design Space)
29
+
30
+ ### Changed
31
+
32
+ - Sentry and dependency version bumps
33
+
34
+ ---
35
+
36
+ ## [1.0.108] - 2026-03-26
37
+
38
+ ### Added
39
+
40
+ - ESP integrations: Mailchimp, Klaviyo, HubSpot, Salesforce Marketing Cloud, ActiveCampaign, Brevo, Campaign Monitor, Constant Contact, GetResponse, Bento, Dotdigital
41
+ - Integrations tab in the project edit modal
42
+ - Data layer events for email export
43
+ - `imageCenterLocalUploadEnabled` for local uploads in the image center
44
+
45
+ ### Fixed
46
+
47
+ - File manager: Redux removed from FM integration (DEV-14018, DEV-13858), proxy and front-end pagination, stray Edited folder on upload
48
+ - Editor and sandbox: contenteditable iframe, empty list insertion (DEV-13612), text editing (DEV-13608), delete-from-end in blocks (DEV-13558), mobile text properties (DEV-13679)
49
+ - Email button issues (DEV-13746); alignment icons use `currentColor` (DEV-13790)
50
+ - Duplicate notifications when sending a test email (DEV-10977)
51
+ - Sorting in the projects table (DEV-13759)
52
+ - Autosave: `revisionService` guard and `emailId` in revisionToApply
53
+
54
+ ### Changed
55
+
56
+ - Blocks / Emails / Projects / Members tables: layout, menus, drag-and-drop on block and email pages
57
+ - Webhook handling in the email buttons component
58
+ - Dotdigital and ActiveCampaign integration improvements (drafts)
59
+
60
+ ---
61
+
9
62
  ## [1.0.104-alpha.1] - 2026-03-02
10
63
 
11
64
  ### Added
12
65
 
13
66
  **Integrations:**
67
+
14
68
  - Unisender integration and settings management
15
69
  - App-specific integration availability system
16
70
 
17
71
  **Editor:**
72
+
18
73
  - Free plan restrictions in ButtonsEmail component
19
74
  - mailto link support (subject, body) — DEV-13102
20
75
  - Mass blocks functionality
@@ -22,29 +77,35 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
22
77
  - Insert link with correct color — DEV-13172
23
78
 
24
79
  **AI & UX:**
80
+
25
81
  - AI functionality in EmailPageHeader with payment verification
26
82
  - Improved modal animations
27
83
 
28
84
  **FileManager:**
85
+
29
86
  - Support for custom names when copying files and folders
30
87
  - Cache clearing
31
88
 
32
89
  ### Fixed
33
90
 
34
91
  **Table Editor:**
92
+
35
93
  - Dropdown menu layout for Table element — DEV-13370
36
94
  - Table editor functionality — DEV-13371
37
95
 
38
96
  **Paste & Links:**
97
+
39
98
  - Tag duplication when pasting text — DEV-13293
40
99
  - Link duplication when pasting — DEV-13378
41
100
 
42
101
  **Elements:**
102
+
43
103
  - Adding Button element to email — DEV-13312
44
104
  - Incorrect marker settings display — DEV-13313
45
105
  - Line break restriction for notifications — DEV-13143
46
106
 
47
107
  **Data & API:**
108
+
48
109
  - Tag and group changes when sending email data — DEV-10189
49
110
  - Recurring payment calculation with `is_only_first_period` — DEV-13377
50
111
  - Notification on test email send error
@@ -54,6 +115,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
54
115
  ### Changed
55
116
 
56
117
  **sandbox.js → TypeScript Refactoring:**
118
+
57
119
  - Migration to modular structure with types and centralized state
58
120
  - Modules for mouse, keyboard, and drag-and-drop event handling
59
121
  - Element settings handlers (links, variables, padding)
@@ -61,10 +123,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
61
123
  - Utilities for text formatting, styles, and VML
62
124
 
63
125
  **Integrations:**
126
+
64
127
  - IntegrationSettings renamed to IntegrationSettingsData
65
128
  - Unisender integration migrated to flexible structure
66
129
 
67
130
  **UI:**
131
+
68
132
  - Updated layout for BlocksTable and EmailsTable
69
133
  - Improved checkbox styles in tables
70
134
 
package/CHANGELOG.md CHANGED
@@ -6,15 +6,65 @@
6
6
 
7
7
  ---
8
8
 
9
+ ## [1.0.109] - 2026-04-07
10
+
11
+ ### Добавлено
12
+
13
+ - Списки в текстовом редакторе (DEV-12615)
14
+ - Учёт настроек AI: отключение запросов диалогов при выключенном ассистенте; расширение контекста для промпта
15
+ - Поля subscription в методах логирования (DEV-13876)
16
+ - Отправка ошибок из error boundary в статистику
17
+
18
+ ### Исправлено
19
+
20
+ - Тема письма: обработка пробелов и разбор тега `title` (getSubject)
21
+ - Файловый менеджер: уведомление при дубликате папки (409), прокрутка списка папок в подменю «Переместить», доработки DataSource и копирования
22
+ - Ссылки в формах: корректные протокол по умолчанию и пустые URL
23
+ - Песочница: drag-and-drop и перекрытие кликов (pointer-events)
24
+ - Регистрация `applicationElementSettingsSet` и фильтрация путей элементов
25
+ - Нормализация превью изображений для редактора Pixie
26
+
27
+ ### Изменено
28
+
29
+ - Обновлены версии Sentry и зависимостей
30
+
31
+ ---
32
+
33
+ ## [1.0.108] - 2026-03-26
34
+
35
+ ### Добавлено
36
+
37
+ - Вкладка интеграций в модальном окне проекта
38
+ - События data layer при экспорте письма
39
+ - Настройка локальной загрузки в центре изображений (`imageCenterLocalUploadEnabled`)
40
+
41
+ ### Исправлено
42
+
43
+ - Файловый менеджер: отказ от Redux во взаимодействии с FM (DEV-14018, DEV-13858), прокси, фронтовая пагинация, лишняя папка Edited при загрузке
44
+ - Редактор и sandbox: iframe contenteditable, вставка пустых списков (DEV-13612), редактирование текста (DEV-13608), удаление с конца блока (DEV-13558), мобильные свойства текста (DEV-13679)
45
+ - Кнопка в письме (DEV-13746); иконки выравнивания через `currentColor` (DEV-13790)
46
+ - Дублирование уведомлений при отправке тестового письма (DEV-10977)
47
+ - Сортировка в таблице проектов (DEV-13759)
48
+ - Автосохранение: проверка `revisionService`, `emailId` в revisionToApply
49
+
50
+ ### Изменено
51
+
52
+ - Таблицы Blocks / Emails / Projects / Members: вёрстка, меню, drag-and-drop на страницах блока и письма
53
+ - Webhook в компоненте кнопок письма
54
+
55
+ ---
56
+
9
57
  ## [1.0.104-alpha.1] - 2026-03-02
10
58
 
11
59
  ### Добавлено
12
60
 
13
61
  **Интеграции:**
62
+
14
63
  - Интеграция с Unisender и управление настройками
15
64
  - Система доступности интеграций для конкретных приложений
16
65
 
17
66
  **Редактор:**
67
+
18
68
  - Ограничения для бесплатного плана в компоненте ButtonsEmail
19
69
  - Поддержка mailto ссылок (subject, body) — DEV-13102
20
70
  - Функциональность массовых блоков
@@ -22,29 +72,35 @@
22
72
  - Вставка ссылки с нужным цветом — DEV-13172
23
73
 
24
74
  **AI и UX:**
75
+
25
76
  - AI-функциональность в EmailPageHeader с проверкой оплаты
26
77
  - Улучшенные анимации модальных окон
27
78
 
28
79
  **FileManager:**
80
+
29
81
  - Поддержка задания нового имени при копировании файлов и папок
30
82
  - Очистка кеша
31
83
 
32
84
  ### Исправлено
33
85
 
34
86
  **Редактор таблиц:**
87
+
35
88
  - Вёрстка выпадающего меню элемента Таблица — DEV-13370
36
89
  - Работа редактора таблиц — DEV-13371
37
90
 
38
91
  **Вставка и ссылки:**
92
+
39
93
  - Дублирование тегов при вставке текста — DEV-13293
40
94
  - Дублирование ссылок при вставке — DEV-13378
41
95
 
42
96
  **Элементы:**
97
+
43
98
  - Добавление элемента Кнопка в письмо — DEV-13312
44
99
  - Некорректное отображение настроек маркеров — DEV-13313
45
100
  - Запрет переноса строки для уведомления — DEV-13143
46
101
 
47
102
  **Данные и API:**
103
+
48
104
  - Изменения тегов и групп при отправке данных письма — DEV-10189
49
105
  - Расчёт суммы рекуррентного платежа с `is_only_first_period` — DEV-13377
50
106
  - Уведомление при ошибке отправки тестового письма
@@ -54,6 +110,7 @@
54
110
  ### Изменено
55
111
 
56
112
  **Рефакторинг sandbox.js → TypeScript:**
113
+
57
114
  - Миграция на модульную структуру с типами и централизованным состоянием
58
115
  - Модули для обработки событий мыши, клавиатуры, drag-and-drop
59
116
  - Обработчики настроек элементов (ссылки, переменные, отступы)
@@ -61,10 +118,12 @@
61
118
  - Утилиты для текстового форматирования, стилей и VML
62
119
 
63
120
  **Интеграции:**
121
+
64
122
  - IntegrationSettings переименован в IntegrationSettingsData
65
123
  - Unisender интеграция мигрирована на гибкую структуру
66
124
 
67
125
  **UI:**
126
+
68
127
  - Обновлён layout для BlocksTable и EmailsTable
69
128
  - Улучшены стили чекбоксов в таблицах
70
129
 
package/README.md CHANGED
@@ -1,43 +1,57 @@
1
1
  # Installation
2
+
2
3
  Run this code in the command prompt:
3
4
 
4
5
  ```cmd
5
- $ npm i useblocks@1.0.104-alpha.4 -save
6
+ $ npm i useblocks@1.0.113 -save
6
7
  ```
7
8
 
8
9
  Add the Blocks plugin to your App config.
10
+
9
11
  ### For the Webpack module bundler
12
+
10
13
  Package import:
14
+
11
15
  ```javascript
12
- const useblocksPlugin = require('useblocks/webpack')
16
+ const useblocksPlugin = require('useblocks/webpack');
13
17
  ```
18
+
14
19
  Defining the package in the app:
20
+
15
21
  ```javascript
16
22
  module.exports = {
17
- plugins: [
18
- new UseblocksWebpackPlugin(),
19
- ]
20
- }
23
+ plugins: [new UseblocksWebpackPlugin()],
24
+ };
21
25
  ```
26
+
22
27
  ### For the Vite module bundler
28
+
23
29
  Package import:
30
+
24
31
  ```javascript
25
- import useblocksPlugin from 'useblocks/vite'
32
+ import useblocksPlugin from 'useblocks/vite';
26
33
  ```
34
+
27
35
  Defining the package in the app:
36
+
28
37
  ```javascript
29
38
  export default defineConfig({
30
- plugins: [useblocksPlugin()],
31
- })
39
+ plugins: [useblocksPlugin()],
40
+ });
32
41
  ```
42
+
33
43
  # Initialization
44
+
34
45
  Import the Blocks plugin into your component:
46
+
35
47
  ```javascript
36
- import * as useblocks from "useblocks"
48
+ import * as useblocks from 'useblocks';
37
49
  ```
50
+
38
51
  The Plugin configuration contains a parameter named `getAuthToken`. For authorization, you must pass the application's OAuth token to its value. For debugging purposes, the dev version of the plugin supports a mechanism for obtaining a token from the front of the application. To use this mechanism you need first to define auth-proxy in AppConfig:
39
52
 
40
53
  ### Fetching the OAuth token on the backend
54
+
41
55
  ```javascript
42
56
  curl --location 'https://api.useblocks.io/oauth/token' \
43
57
  --header 'Content-Type: application/x-www-form-urlencoded' \
@@ -47,26 +61,33 @@ curl --location 'https://api.useblocks.io/oauth/token' \
47
61
  ```
48
62
 
49
63
  ### Creating the Blocks plugin entity
64
+
50
65
  ```javascript
51
- useblocks.init({
52
- getAuthToken: getAuthToken,
53
- element: "#test",
54
- content: {
55
- title: "Email subject",
56
- html: "EMAIL_CODE",
57
- },
58
- config: { }
59
- }).then(instance => { })
66
+ useblocks
67
+ .init({
68
+ getAuthToken: getAuthToken,
69
+ element: '#test',
70
+ content: {
71
+ title: 'Email subject',
72
+ html: 'EMAIL_CODE',
73
+ },
74
+ config: {},
75
+ })
76
+ .then((instance) => {});
60
77
  ```
78
+
61
79
  You can get the EMAIL_CODE from <a href="https://cdn.useblocks.io/plugin/new-email.html" target="_blank">our example</a> or paste the HTML code of your own email
62
80
 
63
81
  # Configuration
82
+
64
83
  Plugin configuration is JSON with several nesting levels. In the config you can set the appearance, content, and the logic the plugin will work with.
65
84
 
66
85
  ### Element
86
+
67
87
  You can send the `element` line into the plugin configuration. It is a DOM element selector and you need to initiate the plugin inside of it. If the element is not defined, the app will run in the background mode.
68
88
 
69
89
  ### Content
90
+
70
91
  The `content` section contains parameters of an email that must be displayed in the editor. This is what can be sent to this parameter:
71
92
 
72
93
  #### {string}
@@ -74,6 +95,7 @@ The `content` section contains parameters of an email that must be displayed in
74
95
  HTML code of an email.
75
96
 
76
97
  #### {object} email options
98
+
77
99
  ```javascript
78
100
  {
79
101
  id?: string; // A unique ID of a project in your system.
@@ -85,6 +107,7 @@ HTML code of an email.
85
107
  ```
86
108
 
87
109
  #### {object} full description
110
+
88
111
  ```javascript
89
112
  {
90
113
  temlateId?: string; // Email template ID in Blocks.
@@ -96,8 +119,10 @@ HTML code of an email.
96
119
 
97
120
  You can change the content at any moment after the initialization with the help of the `instance.show(content)` method.
98
121
 
99
- ### Config
122
+ ### Config
123
+
100
124
  This section is dedicated to setting the appearance and settings of the editor. You can change the configuration of this section after the initialization with the help of `useblocks.setConfig` or `useblocks.updateConfig`.
125
+
101
126
  ##### The list of parameters of the config section
102
127
  | Parameter | Description | Default |
103
128
  | ---------------------- | --------------------------------- | ------- |
@@ -230,16 +255,18 @@ This section is dedicated to setting the appearance and settings of the editor.
230
255
  | elementAccordionEnabled | Element AMP accordion. | true |
231
256
  | elementFormEnabled | Element AMP form. | true |
232
257
  | | | |
258
+ | imageCenterLocalUploadEnabled | Local file upload field in Image Center. | true |
233
259
  | imageCenterStockEnabled | Stock photos tab. | true |
234
260
  | imageCenterGifEnabled | Stock GIFs tab. | true |
235
261
  | imageCenterEditorEnabled | Image editor tab. | true |
236
262
  | compressMaxSize | Max image size after optimization, MB. | true |
237
263
  | compressMaxWidthOrHeight | Max image width after optimization, px. | true |
238
-
239
264
  ### Events
265
+
240
266
  Events can be sent to configurations or added to them later while working with the instance of the plugin. All event subscribers can be asynchronous features.
241
267
 
242
- #### Example
268
+ #### Example
269
+
243
270
  ```javascript
244
271
  useblocks.init({
245
272
  ....,
@@ -254,7 +281,9 @@ useblocks.init({
254
281
  ```
255
282
 
256
283
  By sending the asynchronous feature you can implement the asynchronous data load.
257
- #### Example
284
+
285
+ #### Example
286
+
258
287
  ```javascript
259
288
  useblocks.init({
260
289
  element: "#test",
@@ -264,61 +293,58 @@ useblocks.init({
264
293
  handleReadEmail: async (id) => {
265
294
  return await fetchData(id); // Your data fetch feature.
266
295
  }
267
- }).then((instance) => {
296
+ }).then((instance) => {
268
297
  setTimeout(() => instance.show({ id: "2" }), 1000)
269
298
  });
270
299
  ```
271
300
 
272
-
273
-
274
301
  ### Events
275
- | Name | Description |
276
- | ------------------------- | -------------------------------------------- |
277
- | handleReadEmail | Read email |
278
- | handleSaveEmail | Save / update email |
279
- | handleReadEmailRevisions | Read autosave list |
280
- | handleEmailAutosave | Autosave |
281
- | handleReadBlocks | Read project blocks list |
282
- | handleSaveBlock | Save / update project block |
283
- | handleRemoveBlock | Delete project block |
284
- | handleReadComments | Read email comments list |
285
- | handleSaveComment | Save / update comment |
286
- | handleRemoveComment | Delete email comment |
287
- | handleSaveButtonClick | Email save button click |
288
- | handleNextButtonClick | Next button click |
289
- | handlePreviousButtonClick | Back button click |
290
- | handleEmailChanged | Any email parameter changed |
291
- | handleHtmlChanged | Email HTML changed |
292
- | handleDestroy | Plugin destroy |
293
- | handleLoad | Plugin instance initialization completed |
294
- | handleLoadImage | Load images |
295
- | handleNotify | Notification |
296
- | handleError | Error notification |
297
- | handleSuccess | Success notification |
298
- | handleTestEmailSend | Test email send |
299
- | handleTestEmailModal | Open test email modal window |
300
-
301
302
 
303
+ | Name | Description |
304
+ | ------------------------- | ---------------------------------------- |
305
+ | handleReadEmail | Read email |
306
+ | handleSaveEmail | Save / update email |
307
+ | handleReadEmailRevisions | Read autosave list |
308
+ | handleEmailAutosave | Autosave |
309
+ | handleReadBlocks | Read project blocks list |
310
+ | handleSaveBlock | Save / update project block |
311
+ | handleRemoveBlock | Delete project block |
312
+ | handleReadComments | Read email comments list |
313
+ | handleSaveComment | Save / update comment |
314
+ | handleRemoveComment | Delete email comment |
315
+ | handleSaveButtonClick | Email save button click |
316
+ | handleNextButtonClick | Next button click |
317
+ | handlePreviousButtonClick | Back button click |
318
+ | handleEmailChanged | Any email parameter changed |
319
+ | handleHtmlChanged | Email HTML changed |
320
+ | handleDestroy | Plugin destroy |
321
+ | handleLoad | Plugin instance initialization completed |
322
+ | handleLoadImage | Load images |
323
+ | handleNotify | Notification |
324
+ | handleError | Error notification |
325
+ | handleSuccess | Success notification |
326
+ | handleTestEmailSend | Test email send |
327
+ | handleTestEmailModal | Open test email modal window |
302
328
 
303
329
  ### Methods
304
- | Method name | Description |
305
- | ------------------------- | -------------------------------------------- |
306
- | init | Initialization (async) |
307
- | show | Update content after initialization |
308
- | destroy | Destroy instance |
309
- | reset | Reset all configuration |
310
- | getEmail | Get current email |
311
- | getConfig | Get configuration |
312
- | getBlocks | Get project blocks |
313
- | getComments | Get email comments |
314
- | getEmailRevisions | Get version control list |
315
- | setConfig | Set new config parameters |
316
- | updateConfig | Add to config parameters |
317
- | notify | Show notifications |
318
- | getElement | Get initialization element |
319
- | save | Save email |
320
- | compileEmail | Get compiled email |
321
330
 
331
+ | Method name | Description |
332
+ | ----------------- | ----------------------------------- |
333
+ | init | Initialization (async) |
334
+ | show | Update content after initialization |
335
+ | destroy | Destroy instance |
336
+ | reset | Reset all configuration |
337
+ | getEmail | Get current email |
338
+ | getConfig | Get configuration |
339
+ | getBlocks | Get project blocks |
340
+ | getComments | Get email comments |
341
+ | getEmailRevisions | Get version control list |
342
+ | setConfig | Set new config parameters |
343
+ | updateConfig | Add to config parameters |
344
+ | notify | Show notifications |
345
+ | getElement | Get initialization element |
346
+ | save | Save email |
347
+ | compileEmail | Get compiled email |
322
348
 
323
349
  ## 📂 File Manager
324
350
 
@@ -349,6 +375,7 @@ The `fileManager` section controls the features of the file manager. All fields
349
375
  - **enableDelete** — allows deleting files and folders. When the recycle bin is enabled, files are moved there instead of being permanently deleted. Default is true
350
376
  - **multiSelect** — allows multiple selection of files and folders for batch operations. Default is true
351
377
  - **defaultFolderName** — default folder name
378
+ - **sortOptions** — whitelist of sort dropdown values (`'date-desc' \| 'date-asc' \| 'size-desc' \| 'size-asc' \| 'name-asc' \| 'name-desc' \| 'type-asc'`). If omitted or empty, all options supported by the file-manager package are shown. Use a non-empty array to hide sorts your platform does not implement (e.g. size or type).
352
379
 
353
380
  #### Pagination & Display
354
381
 
@@ -379,45 +406,44 @@ The `fileManager` section controls the features of the file manager. All fields
379
406
  - **comparator** — comparison function for sorting two files. Default: name-based comparison
380
407
  - **filterMatch** — function to check if a file passes current filters. Default: name-based search
381
408
 
382
-
383
409
  ### Interface StorageProvider
384
410
 
385
411
  #### Properties
386
412
 
387
- | Property | Type | Description | Default |
388
- |----------|------|-------------|---------|
389
- | `pathMode` | `boolean` | Use path as identifier for folders | - |
390
- | `rootId` | `string` | Custom identifier for root folder | `''` |
391
- | `trashPath` | `string` | Path to trash/recycle bin folder | - |
392
- | `tempPath` | `string` | Path to temporary folder for uploads | - |
393
- | `useSoftDelete` | `boolean` | Enable client-side soft delete | `false` |
394
- | `ensureFolderTrailingSlash` | boolean | Add a trailing slash to folder paths | `true` |
395
- | `validateDuplicates` | `boolean` | Client-side check for existing files or folders | - |
413
+ | Property | Type | Description | Default |
414
+ | --------------------------- | --------- | ----------------------------------------------- | ------- |
415
+ | `pathMode` | `boolean` | Use path as identifier for folders | - |
416
+ | `rootId` | `string` | Custom identifier for root folder | `''` |
417
+ | `trashPath` | `string` | Path to trash/recycle bin folder | - |
418
+ | `tempPath` | `string` | Path to temporary folder for uploads | - |
419
+ | `useSoftDelete` | `boolean` | Enable client-side soft delete | `false` |
420
+ | `ensureFolderTrailingSlash` | boolean | Add a trailing slash to folder paths | `true` |
421
+ | `validateDuplicates` | `boolean` | Client-side check for existing files or folders | - |
396
422
 
397
423
  #### Methods
398
424
 
399
425
  ##### Core Methods
400
426
 
401
- | Method | Parameters | Returns | Description |
402
- |--------|------------|---------|-------------|
403
- | **getItems** | `options`:<br>- `folderId?: string`<br>- `search?: string`<br>- `sortBy?: string`<br>- `sortOrder?: 'asc'\|'desc'`<br>- `page?: number`<br>- `limit?: number`<br>- `itemType: 'all'\|'file'\|'folder'` | `{ items: FileSystemItem[], pagination?: Partial<ApiPaginationResponse> }` | Retrieve files/folders with filtering, sorting, pagination |
404
- | **createFolder** | `name: string`, `parentid?: string` | `FileSystemItem` | Create new folder |
405
- | uploadFile | `file`: <br>- `name: string`<br>- `size: number`<br>- `type: string`<br>- `folderId?: string`<br>- `data: Blob \| string`<br>- `thumbnail?: string`<br>- `dimensions?: string`<br>- `aspectRatio?: string`<br>- `extension?: string` | `FileSystemItemUpdate` | Upload file with metadata |
406
- | uploadFiles | `request`:<br>- `items: { requestId?: string, name: string, size: number, type: string, folderId?: string \| null, data: Blob \| string, extension?: string }[]`<br>- `folderId?: string \| null` | `BatchResult<UploadFileResultData>` | Upload multiple files. The order of items matters — if `requestId` is not provided, results are matched by index |
407
- | **uploadFileByUrl** | `url: string`, `folderId?: string` | `FileSystemItem` | Upload file from URL (check for existing files) |
408
- | `findItemByPath` | `path: string` | `FileSystemItem \| undefined` | Find system files/folders by path |
409
- | `setController` | `controller: StorageProviderController` | `void` | Set cache management controller |
410
- | `getFileData` | `file: FileSystemItem` | `Blob` | Get file content as blob |
411
- | `getUrl` | `file: FileSystemItem` | `string` | Get file access URL |
412
- | `getThumbnailUrl` | `file: FileSystemItem` | `string` | Get thumbnail URL |
413
- | `renameItem` | `item: FileSystemItem`, `newName: string` | `FileSystemItemUpdate` | Rename file/folder |
414
- | `deleteItem` | `item: FileSystemItem` | `void` | Delete single item (moves to trash if soft delete enabled) |
415
- | `deleteItems` | `items: FileSystemItem[]` | `BatchResult<never>` | Delete multiple items |
416
- | `moveItem` | `item: FileSystemItem`, `targetFolderId?: string` | `FileSystemItemUpdate` | Move single item |
417
- | `moveItems` | `items: FileSystemItem[]`, `targetFolderId?: string` | `BatchResult<FileSystemItemUpdate>` | Move multiple items |
418
- | `copyItem` | `item: FileSystemItem`, `targetFolderId?: string` | `FileSystemItemUpdate` | Copy single item |
419
- | `copyItems` | `items: FileSystemItem[]`, `targetFolderId?: string` | `BatchResult<FileSystemItemUpdate>` | Copy multiple items |
420
- | `updateFile` | `file: FileSystemItem`, `updates`: metadata object | `FileSystemItemUpdate` | Update file metadata/content |
427
+ | Method | Parameters | Returns | Description |
428
+ | ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
429
+ | **getItems** | `options`:<br>- `folderId?: string`<br>- `search?: string`<br>- `sortBy?: string`<br>- `sortOrder?: 'asc'\|'desc'`<br>- `page?: number`<br>- `limit?: number`<br>- `itemType: 'all'\|'file'\|'folder'` | `{ items: FileSystemItem[], pagination?: Partial<ApiPaginationResponse> }` | Retrieve files/folders with filtering, sorting, pagination |
430
+ | **createFolder** | `name: string`, `parentid?: string` | `FileSystemItem` | Create new folder |
431
+ | uploadFile | `file`: <br>- `name: string`<br>- `size: number`<br>- `type: string`<br>- `folderId?: string`<br>- `data: Blob \| string`<br>- `thumbnail?: string`<br>- `dimensions?: string`<br>- `aspectRatio?: string`<br>- `extension?: string` | `FileSystemItemUpdate` | Upload file with metadata |
432
+ | uploadFiles | `request`:<br>- `items: { requestId?: string, name: string, size: number, type: string, folderId?: string \| null, data: Blob \| string, extension?: string }[]`<br>- `folderId?: string \| null` | `BatchResult<UploadFileResultData>` | Upload multiple files. The order of items matters — if `requestId` is not provided, results are matched by index |
433
+ | **uploadFileByUrl** | `url: string`, `folderId?: string` | `FileSystemItem` | Upload file from URL (check for existing files) |
434
+ | `findItemByPath` | `path: string` | `FileSystemItem \| undefined` | Find system files/folders by path |
435
+ | `setController` | `controller: StorageProviderController` | `void` | Set cache management controller |
436
+ | `getFileData` | `file: FileSystemItem` | `Blob` | Get file content as blob |
437
+ | `getUrl` | `file: FileSystemItem` | `string` | Get file access URL |
438
+ | `getThumbnailUrl` | `file: FileSystemItem` | `string` | Get thumbnail URL |
439
+ | `renameItem` | `item: FileSystemItem`, `newName: string` | `FileSystemItemUpdate` | Rename file/folder |
440
+ | `deleteItem` | `item: FileSystemItem` | `void` | Delete single item (moves to trash if soft delete enabled) |
441
+ | `deleteItems` | `items: FileSystemItem[]` | `BatchResult<never>` | Delete multiple items |
442
+ | `moveItem` | `item: FileSystemItem`, `targetFolderId?: string` | `FileSystemItemUpdate` | Move single item |
443
+ | `moveItems` | `items: FileSystemItem[]`, `targetFolderId?: string` | `BatchResult<FileSystemItemUpdate>` | Move multiple items |
444
+ | `copyItem` | `item: FileSystemItem`, `targetFolderId?: string` | `FileSystemItemUpdate` | Copy single item |
445
+ | `copyItems` | `items: FileSystemItem[]`, `targetFolderId?: string` | `BatchResult<FileSystemItemUpdate>` | Copy multiple items |
446
+ | `updateFile` | `file: FileSystemItem`, `updates`: metadata object | `FileSystemItemUpdate` | Update file metadata/content |
421
447
 
422
448
  ##### Type Definitions
423
449
 
@@ -436,4 +462,5 @@ The `fileManager` section controls the features of the file manager. All fields
436
462
  - **Cache Control**: Use `setController` for cache invalidation requests
437
463
 
438
464
  ### Keywords
439
- none
465
+
466
+ none