Skip to content

Commit 67eb82f

Browse files
costasovowoocommercebot
authored andcommitted
Mirror package @woocommerce/email-editor-config from WooCommerce
Upstream-Ref: woocommerce/woocommerce@1f120a8
1 parent d6d198a commit 67eb82f

File tree

2 files changed

+60
-35
lines changed

2 files changed

+60
-35
lines changed

changelog.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,36 @@
11
# Changelog
22

33
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
4+
5+
## [1.0.0](https://github.com/woocommerce/email-editor/releases/tag/1.0.0) - 2025-06-27
6+
7+
- Patch - Address PHP 8.4 deprecation warnings. [#57722]
8+
- Patch - Fix default rendering mode for WordPress 6.8 [#56820]
9+
- Patch - Fixed parsing empty argument values in personalization tags. [#58500]
10+
- Patch - Fix tiny rendering issues with image borders, list padding when the background color is set, and top margin for cite in the quote block. [#58796]
11+
- Patch - Sending correct email when user create an account after placing an order. [#57689]
12+
- Minor - Add autosave timeout and disable code editor in editor settings [#57775]
13+
- Minor - Add email block renderer for the Quote core block. [#57280]
14+
- Minor - Add support for rendering Social Link and Social Links block in the Email Editor. [#58194]
15+
- Minor - Add Woo email content to the preview in the email editor [#57337]
16+
- Minor - Add `woocommerce_email_editor_send_preview_email_personalizer_context` filter to modify the personalizer context data for the send preview email function [#57795]
17+
- Minor - Handle Personalization Tags in href attributes [#57958]
18+
- Minor - Implement logging support in the email editor [#58607]
19+
- Minor - Add support for a block custom callback render_email_callback and remove Blocks_Registry class. [#59070]
20+
- Patch - Refactor Email Editor Container to use email editor container instead of Blocks registry container for better library export compatibility. [#59209]
21+
- Major [ **BREAKING CHANGE** ] - Updated post type for theme from `mailpoet_email_theme` to `woocommerce_email_theme` for consistency with WooCommerce naming conventions. [#55938]
22+
- Major [ **BREAKING CHANGE** ] - Updated user theme post name from `wp-global-styles-mailpoet` to `wp-global-styles-woocommerce-email` to align with WooCommerce naming standards. [#55938]
23+
- Major [ **BREAKING CHANGE** ] - Update minimum supported WordPress version to 6.7 [#58246]
24+
- Patch - Add command for PHP static analysis. [#58135]
25+
- Patch - Add email editor files to the Woo Monorepo [#55598]
26+
- Patch - Introduce a new Rendering_Context class that replaces Settings_Controller in renderer classes [#58796]
27+
- Patch - Monorepo: consolidate packages licenses to `GPL-2.0-or-later`. [#58941]
28+
- Patch - Remove unused Codeception config file for the email-editor package [#55971]
29+
- Patch - Remove usage of `settings.allowedBlockTypes` from the email editor configuration. [#58966]
30+
- Patch - Update package.json commands [#56161]
31+
- Patch - Add possibility to get current context to for personalization [#57330]
32+
- Patch - Fixed social links block styling by adding explicit margin-right:0 to prevent unwanted spacing on social icon images [#59188]
33+
- Minor - Update package for publishing to Packagist [#59058]
34+
- Patch - Add theme color pallete to base theme and remove the default heading color and use text color as fallback [#58078]
35+
- Patch - Ensure "Preview in new tab" shows the lastest editor saved content. [#58481]
36+
- Patch - Use email templates registry when listing allowed templates for association with an email post [#56110]

src/class-email-editor-container.php

Lines changed: 27 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
declare( strict_types = 1 );
99
namespace Automattic\WooCommerce\EmailEditor;
1010

11-
use Automattic\WooCommerce\Blocks\Registry\Container;
11+
use Automattic\WooCommerce\EmailEditor\Container;
1212
use Automattic\WooCommerce\EmailEditor\Engine\Dependency_Check;
1313
use Automattic\WooCommerce\EmailEditor\Engine\Email_Api_Controller;
1414
use Automattic\WooCommerce\EmailEditor\Engine\Email_Editor;
@@ -72,106 +72,98 @@ public static function container( $reset = false ) {
7272

7373
$container = new Container();
7474

75-
// Start: MailPoet plugin dependencies.
76-
$container->register(
75+
$container->set(
7776
Initializer::class,
7877
function () {
7978
return new Initializer();
8079
}
8180
);
82-
// End: MailPoet plugin dependencies.
8381
// Start: Email editor dependencies.
84-
$container->register(
82+
$container->set(
8583
Theme_Controller::class,
8684
function () {
8785
return new Theme_Controller();
8886
}
8987
);
90-
$container->register(
88+
$container->set(
9189
User_Theme::class,
9290
function () {
9391
return new User_Theme();
9492
}
9593
);
96-
$container->register(
94+
$container->set(
9795
Settings_Controller::class,
9896
function ( $container ) {
9997
return new Settings_Controller( $container->get( Theme_Controller::class ) );
10098
}
10199
);
102-
$container->register(
103-
Settings_Controller::class,
104-
function ( $container ) {
105-
return new Settings_Controller( $container->get( Theme_Controller::class ) );
106-
}
107-
);
108-
$container->register(
100+
$container->set(
109101
Templates_Registry::class,
110102
function () {
111103
return new Templates_Registry();
112104
}
113105
);
114-
$container->register(
106+
$container->set(
115107
Templates::class,
116108
function ( $container ) {
117109
return new Templates( $container->get( Templates_Registry::class ) );
118110
}
119111
);
120-
$container->register(
112+
$container->set(
121113
Patterns::class,
122114
function () {
123115
return new Patterns();
124116
}
125117
);
126-
$container->register(
118+
$container->set(
127119
Cleanup_Preprocessor::class,
128120
function () {
129121
return new Cleanup_Preprocessor();
130122
}
131123
);
132-
$container->register(
124+
$container->set(
133125
Blocks_Width_Preprocessor::class,
134126
function () {
135127
return new Blocks_Width_Preprocessor();
136128
}
137129
);
138-
$container->register(
130+
$container->set(
139131
Typography_Preprocessor::class,
140132
function ( $container ) {
141133
return new Typography_Preprocessor( $container->get( Settings_Controller::class ) );
142134
}
143135
);
144-
$container->register(
136+
$container->set(
145137
Spacing_Preprocessor::class,
146138
function () {
147139
return new Spacing_Preprocessor();
148140
}
149141
);
150-
$container->register(
142+
$container->set(
151143
Quote_Preprocessor::class,
152144
function () {
153145
return new Quote_Preprocessor();
154146
}
155147
);
156-
$container->register(
148+
$container->set(
157149
Highlighting_Postprocessor::class,
158150
function () {
159151
return new Highlighting_Postprocessor();
160152
}
161153
);
162-
$container->register(
154+
$container->set(
163155
Variables_Postprocessor::class,
164156
function ( $container ) {
165157
return new Variables_Postprocessor( $container->get( Theme_Controller::class ) );
166158
}
167159
);
168-
$container->register(
160+
$container->set(
169161
Border_Style_Postprocessor::class,
170162
function () {
171163
return new Border_Style_Postprocessor();
172164
}
173165
);
174-
$container->register(
166+
$container->set(
175167
Process_Manager::class,
176168
function ( $container ) {
177169
return new Process_Manager(
@@ -186,7 +178,7 @@ function ( $container ) {
186178
);
187179
}
188180
);
189-
$container->register(
181+
$container->set(
190182
Content_Renderer::class,
191183
function ( $container ) {
192184
return new Content_Renderer(
@@ -197,7 +189,7 @@ function ( $container ) {
197189
);
198190
}
199191
);
200-
$container->register(
192+
$container->set(
201193
Renderer::class,
202194
function ( $container ) {
203195
return new Renderer(
@@ -208,23 +200,23 @@ function ( $container ) {
208200
);
209201
}
210202
);
211-
$container->register(
203+
$container->set(
212204
Personalization_Tags_Registry::class,
213205
function ( $container ) {
214206
return new Personalization_Tags_Registry(
215207
$container->get( Email_Editor_Logger::class )
216208
);
217209
}
218210
);
219-
$container->register(
211+
$container->set(
220212
Personalizer::class,
221213
function ( $container ) {
222214
return new Personalizer(
223215
$container->get( Personalization_Tags_Registry::class ),
224216
);
225217
}
226218
);
227-
$container->register(
219+
$container->set(
228220
Send_Preview_Email::class,
229221
function ( $container ) {
230222
return new Send_Preview_Email(
@@ -233,27 +225,27 @@ function ( $container ) {
233225
);
234226
}
235227
);
236-
$container->register(
228+
$container->set(
237229
Email_Api_Controller::class,
238230
function ( $container ) {
239231
return new Email_Api_Controller(
240232
$container->get( Personalization_Tags_Registry::class ),
241233
);
242234
}
243235
);
244-
$container->register(
236+
$container->set(
245237
Dependency_Check::class,
246238
function () {
247239
return new Dependency_Check();
248240
}
249241
);
250-
$container->register(
242+
$container->set(
251243
Email_Editor_Logger::class,
252244
function () {
253245
return new Email_Editor_Logger();
254246
}
255247
);
256-
$container->register(
248+
$container->set(
257249
Email_Editor::class,
258250
function ( $container ) {
259251
return new Email_Editor(
@@ -269,7 +261,7 @@ function ( $container ) {
269261
// End: Email editor dependencies.
270262

271263
// Start: Woo dependencies.
272-
$container->register(
264+
$container->set(
273265
Bootstrap::class,
274266
function ( $container ) {
275267
return new Bootstrap(

0 commit comments

Comments
 (0)