f20237ab1c
Update and fix failing tests
...
MAILPOET-6323
2025-01-29 08:42:48 +01:00
bd266ed403
Add personalization tags support for email-post preview and send test mails
...
MAILPOET-6323
2025-01-29 08:42:48 +01:00
26ea3a0d04
Render email content in the editor and pass rendered HTML output to the emails custom post-type template
...
MAILPOET-6323
2025-01-29 08:42:48 +01:00
a28ff7da50
Refactor Send_Preview_Email
to add support for reusability
...
MAILPOET-6323
2025-01-29 08:42:48 +01:00
ecb040c4a4
Add basic support for email custom post-type post-template.
...
The template will be used when previewing email editor posts
MAILPOET-6323
2025-01-29 08:42:48 +01:00
441541e3eb
Use PostPreviewButton component for email content preview
...
This commit will also remove the dependency on MailPoet preview url
2025-01-29 08:42:48 +01:00
dadf76c519
Ensure we preserve post types in response eventually added by other plugins
...
[MAILPOET-6445]
2025-01-27 15:24:56 +01:00
14e5a82a49
Fix condition for adding post_types to API response for templates
...
The wrong condition was causing we added the data to more templates.
They were then displayed in the select template modal.
[MAILPOET-6445]
2025-01-27 15:24:56 +01:00
6ac171bdeb
Fix inserting personalization tags
...
Personalization tags should be inserted with default attribute values.
[MAILPOET-6443]
2025-01-27 14:51:46 +01:00
9b65494bf8
Switch to using getBlockPatterns
and update implementation
...
MAILPOET-6444
2025-01-27 14:34:51 +01:00
74f2281ff0
Remove item from the readme
...
[MAILPOET-6429]
2025-01-27 13:55:23 +01:00
3d45ea92e2
Make send button independent on MailPoet
...
[MAILPOET-6429]
2025-01-27 13:55:23 +01:00
6f8a1716c0
Make the send action configurable
...
[MAILPOET-6429]
2025-01-27 13:55:23 +01:00
997de285c9
Make the send button label configurable
...
[MAILPOET-6429]
2025-01-27 13:55:23 +01:00
1b565bf430
Hide recent email categories when swapping a template
...
[MAILPOET-6425]
2025-01-23 13:53:42 +01:00
0a02295c1e
Show heading by template select mode in the template select modal
...
[MAILPOET-6425]
2025-01-23 13:53:42 +01:00
2070b502ad
Fix type in Initializer::allow_styles()
...
[MAILPOET-6426]
2025-01-17 13:15:53 +01:00
3693abf0d4
Disable @wordpress/no-unsafe-wp-apis
...
The unsafe APIs concept was replaced by private APIs.
[MAILPOET-6438]
2025-01-17 11:35:49 +01:00
07629938cb
Fix rest of Typescript related issues
...
[MAILPOET-6438]
2025-01-17 11:35:49 +01:00
4059e5cef0
Replace ts-ignore with ts-expect-error
...
[MAILPOET-6438]
2025-01-17 11:35:49 +01:00
99d7191a23
Add missing text domains to translations
...
[MAILPOET-6438]
2025-01-17 11:35:49 +01:00
eb03fc9bac
Configure mailpoet as allowed text domain
...
[MAILPOET-6438]
2025-01-17 11:35:49 +01:00
92e9642e1f
Fix and workaround woocommerce/dependency-group errors
...
[MAILPOET-6438]
2025-01-17 11:35:49 +01:00
3c7b5aba85
Add @woocommerce/eslint-plugin with basic configuration
...
[MAILPOET-6438]
2025-01-17 11:35:49 +01:00
b2a0f09a7f
Use pnpm for lint-staged files
...
[MAILPOET-6370]
2025-01-15 11:48:23 +01:00
142b0f3d2c
Add scss files formatting for staged files
...
[MAILPOET-6370]
2025-01-15 11:48:23 +01:00
8e6c81ae75
Reformat SCSS files using WP prettier
...
[MAILPOET-6370]
2025-01-15 11:48:23 +01:00
013dd6aad8
Configure format script to cover also SCSS
...
[MAILPOET-6370]
2025-01-15 11:48:23 +01:00
3f44160ab4
Add @wordpress/rich-text package into email editor package
...
[MAILPOET-6420]
2025-01-14 08:32:06 +01:00
b53f69cddb
Revert "Update email-editor @wordpress/rich-text dependency to 7.14.0"
...
[MAILPOET-6420]
This reverts commit 132c247d97
.
2025-01-14 08:32:06 +01:00
05bf20ec20
Update strict spacing condition
...
The more strict condition does not work properly for the group block, and the default column patterns were broken.
[MAILPOET-6364]
2025-01-13 15:35:17 +01:00
a8a412b405
Add Todo for content validation
...
[MAILPOET-6393]
2025-01-13 11:34:21 +01:00
afb183bd71
Fetch template content for validation properly
...
When editing the template, the content property might be a function or empty, and
we need to build content by serializing blocks.
[MAILPOET-6393]
2025-01-13 11:34:21 +01:00
79ec5a5ffd
Move content validation hook call to header
...
It was originally in the send button, and in case the send button is
hidden, the hook is not called, and the inner validation which
is subscribed to changes has outdated data.
[MAILPOET-6393]
2025-01-13 11:34:21 +01:00
59b90d2836
Ensure that correct template data are used for validation
...
The difference between getCurrentTemplate and getEditedPostTemplate,
which is also internally used in getTemplateContent
is that getCurrentTemplate always returns the template associated with the email,
but getEditedPostTemplate returns the template associated with the currently edited post
and this doesn't give us correct data in the template mode because in the template mode
the edited post is the template.
[MAILPOET-6393]
2025-01-13 11:34:21 +01:00
6c005c96d7
Improve look of auto inserted unsubscribe and manage links
...
[MAILPOET-6393]
2025-01-13 11:34:21 +01:00
c05a2edfba
Update insert link callback to insert links with new tags
...
[MAILPOET-6393]
2025-01-13 11:34:21 +01:00
80f35169a2
Update email content validation check to look for new tag
...
[MAILPOET-6393]
2025-01-13 11:34:21 +01:00
78a632d1bc
Ensure we only register block template when required
...
MAILPOET-6366
2025-01-10 18:39:26 +01:00
9b2f6680b6
Enable h5 and h6 in the styles panel
...
[MAILPOET-6411]
2025-01-10 09:38:07 +01:00
ad83043084
Ensure we send only the required template information
...
MAILPOET-6365
2025-01-09 19:33:22 +01:00
a16f20b93d
Add more comments for clarification purposes
...
MAILPOET-6365
2025-01-09 19:33:22 +01:00
81c8f88ab9
Ensure edit_template_blocks_notification_opened
event is tracked once
...
MAILPOET-6365
2025-01-09 19:33:22 +01:00
711f410f53
Add delay for range and form controls user event record
...
MAILPOET-6365
2025-01-09 19:33:22 +01:00
2e207efce1
Ensure we send limited but important email editor information to mixpanel
...
We are limiting the amount of events information so as not to go over mixpanel monthly quota
MAILPOET-6365
2025-01-09 19:33:22 +01:00
0dccc4a33d
Add events for BlocksNotification and Sidebar Inserter
...
MAILPOET-6365
2025-01-09 19:33:22 +01:00
3ab2cd92bf
Add events for PersonalizationTags usage in block controls and update implementation to submit where modal was opened
...
MAILPOET-6365
2025-01-09 19:33:22 +01:00
c3cb92cd47
Add events for PersonalizationTags usage
...
MAILPOET-6365
2025-01-09 19:33:22 +01:00
760c6e7506
Disable email editor event tracking by default. Allow implementers and extenders to opt in to event tracking
...
MAILPOET-6365
2025-01-09 19:33:22 +01:00
80d698c8c7
Add event tracking for MoreMenu, SaveAllButton, SendButton and TrashModal components
...
MAILPOET-6365
2025-01-09 19:33:22 +01:00