Commit Graph

19799 Commits

Author SHA1 Message Date
Pavel Dohnal
709f5bd6e5 Refactor file steps-numbers to typescript
[MAILPOET-5547]
2023-10-18 09:39:25 +02:00
Pavel Dohnal
ffe18f5683 Skip MSS wizard step if user already entered key
[MAILPOET-5547]
2023-10-18 09:39:25 +02:00
Rostislav Wolny
1a620e83d6 Update acceptance tests
[MAILPOET-5637]
2023-10-17 16:06:06 +02:00
Rostislav Wolny
399ed61503 Introduce SettingsController for managing editor settings
[MAILPOET-5637]
2023-10-17 16:06:06 +02:00
Rostislav Wolny
3e3e081dbf Prefill the current WP user email to send a preview form and validate
[MAILPOET-5637]
2023-10-17 16:06:06 +02:00
Rostislav Wolny
3a88989a84 Rename custom email editor to email editor
[MAILPOET-5637]
2023-10-17 16:06:06 +02:00
Rostislav Wolny
e9a5658be5 Cleanup post editor approach code
[MAILPOET-5637]
2023-10-17 16:06:06 +02:00
Rostislav Wolny
151f6b8870 Fix mobile preview CSS and animation
[MAILPOET-5637]
2023-10-17 16:06:06 +02:00
Rostislav Wolny
4646214c62 Add send email preview to custom editor
[MAILPOET-5637]
2023-10-17 16:06:06 +02:00
Rostislav Wolny
c04658d9c0 Skip page renderer when rendering email editor
As for now, we will not load mailpoet admin scripts for MailPoet
and other default variables that are used in MailPoet Layout.
This is to prevent unwanted dependencies on the MailPoet plugin.

[MAILPOET-5637]
2023-10-17 16:06:06 +02:00
Rostislav Wolny
6e2454ff01 Add states to save button
[MAILPOET-5637]
2023-10-17 16:06:06 +02:00
Rostislav Wolny
726c50cdb7 Get rid of an import from automations
[MAILPOET-5637]
2023-10-17 16:06:06 +02:00
Rostislav Wolny
425a9d711f Refactor the save button to an extra component
[MAILPOET-5637]
2023-10-17 16:06:06 +02:00
Rostislav Wolny
2b7f9de9ea Unify order and look of the header buttons on the left
[MAILPOET-5637]
2023-10-17 16:06:06 +02:00
Rostislav Wolny
0113138069 Unify the appearance of inserter and list view sidebars with the post editor
- fix the width of the list view panel
- remove close buttons from the panels

[MAILPOET-5637]
2023-10-17 16:06:06 +02:00
Rostislav Wolny
d4d79b7f3d Temporarily diable acceptance test to make build pass
[MAILPOET-5603]
2023-10-17 16:06:06 +02:00
Rostislav Wolny
c84c3da07f Update integration tests
[MAILPOET-5603]
2023-10-17 16:06:06 +02:00
Rostislav Wolny
4b2e5e8eae Hotfix redirect when creating new email
[MAILPOET-5603]
2023-10-17 16:06:06 +02:00
Jan Lysý
5d864d3e58 Add preview dropdown
[MAILPOET-5603]
2023-10-17 16:06:06 +02:00
Jan Lysý
1c74b680ea Add more dropdown with fullscreen mode
[MAILPOET-5603]
2023-10-17 16:06:06 +02:00
Jan Lysý
a07a744707 Rename folders and files by the new lint rule
[MAILPOET-5603]
2023-10-17 16:06:06 +02:00
Jan Lysý
79fd74bc86 Add details and email type info panels
[MAILPOET-5603]
2023-10-17 16:06:06 +02:00
Rostislav Wolny
03498c8ff2 Switch application links from post editor to custom email editor
[MAILPOET-5603]
2023-10-17 16:06:06 +02:00
Rostislav Wolny
c770901c4f Ensure post exists when loading editor page without postId
[MAILPOET-5603]
2023-10-17 16:06:06 +02:00
Rostislav Wolny
c5e934e477 Add undo/redo
[MAILPOET-5603]
2023-10-17 16:06:06 +02:00
Rostislav Wolny
526b459b03 Add initial editor settings and add allowed block types
[MAILPOET-5603]
2023-10-17 16:06:06 +02:00
Rostislav Wolny
f60723daa9 Add email and block tabs to sidebar
[MAILPOET-5603]
2023-10-17 16:06:06 +02:00
Rostislav Wolny
796df6e1b9 Adjust visual editor css
[MAILPOET-5603]
2023-10-17 16:06:06 +02:00
Rostislav Wolny
20b9a16241 Load post by postId parameter in URL
[MAILPOET-5603]
2023-10-17 16:06:06 +02:00
Rostislav Wolny
28445d4259 Add save draft button without notifications
[MAILPOET-5603]
2023-10-17 16:06:06 +02:00
Rostislav Wolny
5e97b0276a Add Send button
[MAILPOET-5603]
2023-10-17 16:06:06 +02:00
Rostislav Wolny
aa5cbc5511 Load email post from hardcoded post id
[MAILPOET-5603]
2023-10-17 16:06:06 +02:00
Rostislav Wolny
f309a5febd Fix Inserter and ListView
They need to be placed inside the block editor provider
Another option could be wrapping the layout into the block editor provider
[MAILPOET-5603]
2023-10-17 16:06:06 +02:00
Rostislav Wolny
ed21fb63f7 Attempt to add listview
[MAILPOET-5603]
2023-10-17 16:06:06 +02:00
Rostislav Wolny
61d2b5074d Add inserter sidebar
[MAILPOET-5603]
2023-10-17 16:06:06 +02:00
Rostislav Wolny
ac6197ea71 Add store and main sidebar with block inspector
[MAILPOET-5603]
2023-10-17 16:06:06 +02:00
Rostislav Wolny
07576b9f79 Render basic block editor with header
[MAILPOET-5603]
2023-10-17 16:06:06 +02:00
Rostislav Wolny
1919d58973 Add JS build and an index file for the editor app
[MAILPOET-5603]
2023-10-17 16:06:06 +02:00
Rostislav Wolny
debbeaafdc Add EmailEditor page into MailPoet admin
[MAILPOET-5603]
2023-10-17 16:06:06 +02:00
Jan Jakes
821681db0b Fix missing padding in floating editor settings panels
[MAILPOET-5654]
2023-10-17 12:41:28 +02:00
Jan Jakes
d1be5887c2 Ensure Lodash doesn't override Undesrcore on "window._"
This is a better fix than the previous ones in JS, as it should cover all assets
that can use Lodash, and it reverts back to the WP Underscore instance.

[MAILPOET-5653]
2023-10-17 12:41:28 +02:00
Jan Jakes
daab7d8c11 Ensure @wordpress/hooks is never installed in multiple instances
This ensures that all methods imported from @wordpress/hooks write to the same
instance and thus "addFilter" used in one part of the code works with "applyFilters"
called in another place.

In the future, we should use DependencyExtractionWebpackPlugin to always access
the window.wp.hooks object rather than bundling @wordpress/hooks with our code.

[MAILPOET-5653]
2023-10-17 12:41:28 +02:00
alex-mpoet
645f6678c5 Release 4.32.0 2023-10-17 13:28:15 +03:00
Jan Lysý
66bf725e2c Update acceptance test for preview
[MAILPOET-5635]
2023-10-16 12:19:15 +02:00
Jan Lysý
fb9a9566f1 Update Gutenberg acceptance test
[MAILPOET-5635]
2023-10-16 10:56:15 +02:00
Jan Lysý
6a3cd53d2d Redesign new editor modal
[MAILPOET-5635]
2023-10-16 10:56:15 +02:00
Jan Lysý
e900b0e9e1 Add button group with dropdown
[MAILPOET-5635]
2023-10-16 10:56:15 +02:00
John Oleksowicz
64624e017b Store sendContextValue in state
MAILPOET-5512
2023-10-16 10:22:22 +02:00
John Oleksowicz
d08343f215 Convert saveDraftNewsletter to async
MAILPOET-5512
2023-10-16 10:22:22 +02:00
John Oleksowicz
cc34ed42db Create variable for new segment URL
MAILPOET-5512
2023-10-16 10:22:22 +02:00