Commit Graph

21621 Commits

Author SHA1 Message Date
e8352d3dc8 Save template styles to mailpoet_email_theme
[MAILPOET-6014]
2024-05-01 11:15:27 +01:00
f2333cddf5 Fix fetching styles for template previews
[MAILPOET-6014]
2024-05-01 11:15:27 +01:00
ccad08822d Use mailpoet content pattern in template previews
[MAILPOET-6014]
2024-05-01 11:15:27 +01:00
7ba921018a Use the main background in the preview components in styles
[MAILPOET-6014]
2024-05-01 11:15:27 +01:00
3f68881478 Fix type issues after rebase
[MAILPOET-6014]
2024-05-01 11:15:27 +01:00
abc9e58c68 Pass template style settings to the client in the template response
[MAILPOET-6014]
2024-05-01 11:15:27 +01:00
7590576c09 Hide sidebar when clicking canvas 2024-05-01 11:15:27 +01:00
118c0edb72 Create pattern for default content 2024-05-01 11:15:27 +01:00
f2a2709582 Refactor templates fetching to a hook
[MAILPOET-6014]
2024-05-01 11:15:27 +01:00
efafa95ef7 Set the selected template to the post
[MAILPOET-6014]
2024-05-01 11:15:27 +01:00
3a3ee4504a Fetch templates data for select template modal via API
[MAILPOET-6014]
2024-05-01 11:15:27 +01:00
4becea02ff Set content pattern when selecting template from select tempate modal
[MAILPOET-6014]
2024-05-01 11:15:27 +01:00
f159a23a8a Cleanup layout file 2024-05-01 11:15:27 +01:00
8bc52a29b9 Inline styles using emogrifier 2024-05-01 11:15:27 +01:00
4b411af1ca Update general template to enforce content width 2024-05-01 11:15:27 +01:00
21ae45acb6 Enqueue special block styles and inject using emogrifier 2024-05-01 11:15:27 +01:00
c8163059f0 Remove extra padding in editor 2024-05-01 11:15:27 +01:00
004c31e5d7 Remove extra padding and empty rendered paragraphs 2024-05-01 11:15:27 +01:00
c660fd217f Add columns to default content 2024-05-01 11:15:27 +01:00
71d9d628e9 Add emogrifier 2024-05-01 11:15:27 +01:00
7874b12bf6 Remove invalid bg property from json 2024-05-01 11:15:27 +01:00
9f38100567 Add select template modal with hardcoded template, pattern data 2024-05-01 11:15:27 +01:00
5563e7ecef Remove unused BlockEditor component
[MAILPOET-6014]
2024-05-01 11:15:27 +01:00
047fd4930b Render email styles via EditorCanvas
[MAILPOET-6014]
2024-05-01 11:15:27 +01:00
66108e9588 Move the document bar component to header
[MAILPOET-6014]
2024-05-01 11:15:27 +01:00
fc1a408ea9 Use iframed canvas for template mode 2024-05-01 11:15:27 +01:00
53424c4136 Use createInterpolateElement for links 2024-05-01 11:15:27 +01:00
05b930081f Do not fetch template when editing template 2024-05-01 11:15:27 +01:00
15f3ffb16e Remove a couple of useless wrappers from the editor component
- the shortcuts seems to work without the provider component
- slot fill is added in the InnerEditor
2024-05-01 11:15:27 +01:00
1e0a6cf51e Fix incorrect keys warning in detail panel 2024-05-01 11:15:27 +01:00
4a0f46e3d4 Hide templates from site editor 2024-05-01 11:15:27 +01:00
76f6e7cdbd Render using custom template on preview 2024-05-01 11:15:27 +01:00
36ff27d927 Fix block toolbar and spotlight toggles 2024-05-01 11:15:27 +01:00
1ab89f36ae Fix error when clicking saving in experimental panel 2024-05-01 11:15:27 +01:00
07c974e7c7 Added the ability to edit the general-email template in site editor 2024-05-01 11:15:27 +01:00
3eaaa3edde Add templates experiment panel with save component and post/template toggle WIP 2024-05-01 11:15:27 +01:00
00e158108f Assign email-general template in editor 2024-05-01 11:15:27 +01:00
c834ca3ab6 Enable template mode + style it 2024-05-01 11:15:27 +01:00
82a0792fe3 Add EditTemplate button 2024-05-01 11:15:27 +01:00
e03ec76858 Use the inner editor instead the BlockEditor component 2024-05-01 11:15:27 +01:00
1449cacf49 Add a hook for navigating between posts
Copied from @wordpress/edit-post
2024-05-01 11:15:27 +01:00
b0e235ef26 Add Layout component with EditorCanvas
Basically, it's a copy of the block-editor.tsx minus canvas components plus EditorCanvas
2024-05-01 11:15:27 +01:00
3a17656d88 Add InnerEditor component that fetches post and template 2024-05-01 11:15:27 +01:00
8c7fadeecf Wait for select all element 2024-05-01 11:08:21 +03:00
ff56eef904 Move page screenshot after submit 2024-05-01 11:08:21 +03:00
c1b19d9c07 Refactor segments select template test 2024-05-01 11:08:21 +03:00
9320d87162 Add wait to helper method 2024-05-01 11:08:21 +03:00
1116c4bb7b Revert timeout limit 2024-05-01 11:08:21 +03:00
d73e973547 Improve step in the newsletter editor tests 2024-05-01 11:08:21 +03:00
6a86656b11 Update selector to aria label and introduce new helper 2024-05-01 11:08:21 +03:00