2896ed45eb
Add text information for recent category templates
...
MAILPOET-6331
2024-12-09 10:30:42 +01:00
cec952fbde
Add help icon to recent button
...
MAILPOET-6331
2024-12-09 10:30:42 +01:00
cb091e0dc6
Add support for basic tab navigation when selecting template
...
MAILPOET-6331
2024-12-09 10:30:42 +01:00
5743ccbc5f
Separate SelectTemplateModal into smaller components
...
MAILPOET-6331
2024-12-09 10:30:42 +01:00
411943f39b
Add a workaround for replacing core notice Site updated
...
I considered doing this using a filter 'i18n.gettext', but
with this approach, we would just replace the text. The notice also
contained an action with a link to the site's homepage, so I chose this mechanism instead.
Let's see if there will be more use-cases. We can eventually move it somewhere into the store
and proxy all messages via our store.
[MAILPOET-6336]
2024-12-06 12:21:19 +01:00
2334805b95
Use more informative text in the reset template dialog
...
[MAILPOET-6336]
2024-12-06 12:21:19 +01:00
1ce1ddc952
Add the cancel button to modal when switching to template mode
...
[MAILPOET-6336]
2024-12-06 12:21:19 +01:00
8b3f7a489f
Add missing translation function to template info panel
...
[MAILPOET-6336]
2024-12-06 12:21:19 +01:00
45e0e56389
Hide command palette shortcut
...
[MAILPOET-6336]
2024-12-06 12:21:19 +01:00
d682b82bc5
Update variant of the dropdown button to match the native editor
...
[MAILPOET-6336]
2024-12-06 12:21:19 +01:00
4b29658adc
Remove experimental templates panel
...
[MAILPOET-6336]
2024-12-06 12:21:19 +01:00
10b2c2b648
Use current email content when previewing templates when swapping
...
[MAILPOET-6336]
2024-12-06 12:21:19 +01:00
1fdda485d3
Add basic swap template functionality
...
[MAILPOET-6336]
2024-12-06 12:21:19 +01:00
9f273a3ff2
Add edit template modal
...
[MAILPOET-6336
2024-12-06 12:21:19 +01:00
7811535e72
Add dropdown with edit and swap template buttons
...
[MAILPOET-6336]
2024-12-06 12:21:19 +01:00
1717a0a235
Extract template reset modal to an extra component
...
[MAILPOET-6336]
2024-12-06 12:21:19 +01:00
c7049468c2
Add revert template confirmation modal
...
[MAILPOET-6336]
2024-12-06 12:21:19 +01:00
fb74526d9d
Move revert template function from component file to store action
...
[MAILPOET-6336]
2024-12-06 12:21:19 +01:00
ebefee4de7
Add template actions menu toggle with dummy reset template action
...
[MAILPOET-6336]
2024-12-06 12:21:19 +01:00
9ebcf9b506
Add info text to the template info panel in sidebar.
...
[MAILPOET-6336]
2024-12-06 12:21:19 +01:00
1cff0c5ee1
Update text in template mode warning popup
...
[MAILPOET-6336]
2024-12-06 12:21:19 +01:00
c612eb1c4e
Rename document tab in sidebar based on editor mode
...
[MAILPOET-6336]
2024-12-06 12:21:19 +01:00
ed8d64816c
Rename mainSidebarEmailTab constant to mainSidebarDocumentTab
...
The email name was misleading because in the template mode we want to show Template.
[MAILPOET-6336]
2024-12-06 12:21:19 +01:00
ab00d505b9
Replace logic for detection of editor mode by the useEditorMode hook
...
[MAILPOET-6336]
2024-12-06 12:21:19 +01:00
02dabf9c01
Add a custom hook to determine whether we are in email or template mode
...
There are a couple of places where we determine the mode, but we use different approaches.
This commit adds a mechanism for determining the editor mode which can be easily reusable
in the whole app.
[MAILPOET-6336]
2024-12-06 12:21:19 +01:00
cd184c373c
Update readme, implement PR feedback
...
MAILPOET-6256
2024-12-04 14:48:04 +01:00
8c2ede4ff9
Update Readme documentation
...
MAILPOET-6256
2024-12-04 14:48:04 +01:00
98bc96b1b8
Add loading state and remove custom button position.
...
Based on PR feedback https://github.com/mailpoet/mailpoet/pull/5972#issuecomment-2516596159 , The Email editor cannot work without a template. So, we currently don't need to set up workflow to support template not loading
MAILPOET-6331
2024-12-04 13:29:00 +01:00
abf03d6cc7
Update "Start from scratch" button styles when no template is registered
...
MAILPOET-6333
2024-12-04 13:29:00 +01:00
46c8ae94bc
Add "Start from scratch" to the template selector
...
MAILPOET-6333
2024-12-04 13:29:00 +01:00
3386f9f4f1
Fix eslint warnings: Post not found and useSelect has a missing dependency
...
MAILPOET-6316
2024-11-27 18:02:35 +01:00
f9458c2b7f
Fix eslint warnings: block and blockinstance
...
MAILPOET-6316
2024-11-27 18:02:35 +01:00
324e02f2cf
Remove redundant lock_unlock.js
...
[MAILPOET-6319]
2024-11-26 16:44:11 +01:00
b1c8f2cc0e
Remove double import of block editor private apis
...
[MAILPOET-6319]
2024-11-26 16:44:11 +01:00
8d1d32a213
Add very simple readme for private APIs
...
[MAILPOET-6319]
2024-11-26 16:44:11 +01:00
7ad7e45d07
Remove root unlock from email editor
...
[MAILPOET-6319]
2024-11-26 16:44:11 +01:00
0431e5eb25
Consume useGlobalStylesOutputWithConfig from private-apis
...
[MAILPOET-6319]
2024-11-26 16:44:11 +01:00
b631e509ef
Export StylesColorPanel from private-apis file
...
[MAILPOET-6319]
2024-11-26 16:44:11 +01:00
ceecfe69a5
Move unlocking core store and block editor store to private apis
...
[MAILPOET-6319]
2024-11-26 16:44:11 +01:00
d8a3289414
Remove unnecessary unlock of editor settings
...
The selector is public.
[MAILPOET-6319]
2024-11-26 16:44:11 +01:00
cac56f3563
Move Tabs to private and document usage
...
[MAILPOET-6319]
2024-11-26 16:44:11 +01:00
fbdfc61eaa
Move BlockCanvas to private APIs
...
[MAILPOET-6319]
2024-11-26 16:44:11 +01:00
c72b0b6f79
Get rid of useFlashEditableBlocks
...
It is a private API which is not critical for our application.
It shortly highlights blocks that are editable after a click in the parent.
As it is not critical and is private, it is a risk, and we should rather not use it.
[MAILPOET-6319]
2024-11-26 16:44:11 +01:00
13bf305aeb
Update filter name and add reason for ts-ignore
...
MAILPOET-6315
2024-11-26 13:50:53 +01:00
b9b503889d
Add NpsPoll feature support for Email editor
...
MAILPOET-6315
2024-11-26 13:50:53 +01:00
87676ccdb6
Add base route for sending preview email
...
MAILPOET-6092
2024-11-18 15:28:31 +01:00
33e828f2ed
Remove the custom editor page
...
[MAILPOET-6090]
2024-11-15 17:16:21 +02:00
c71949e326
Render custom editor for mailpoet_email post types
...
[MAILPOET-6090]
2024-11-15 17:16:21 +02:00
da5e90a429
Refactor .scss files import to one place
...
This approach is used in the Gutenberg repository.
Our original approach, where we imported styles in index files in subdirectories, was a bit fragile
because such a file might be skipped in case a component is imported directly.
[MAILPOET-6320]
2024-11-14 17:28:53 +02:00
f945ea8388
Use @wordpress/editor store with email editor components
...
MAILPOET-6303
2024-11-12 15:41:23 +01:00