Commit Graph

21722 Commits

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