Commit Graph

226 Commits

Author SHA1 Message Date
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
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
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
150403f158 Add event tracking for SendPreviewEmail and KeyboardShortcuts components
MAILPOET-6365
2025-01-09 19:33:22 +01:00
6f9211ca57 Add event tracking for Header, PreviewDropdown, CampaignName and SaveEmailButton components
MAILPOET-6365
2025-01-09 19:33:22 +01:00
1e21223a73 Refactor DropDownMenu to use onToggle method for event tracking
MAILPOET-6365
2025-01-09 19:33:22 +01:00
e73ffc1a79 Add event record for Screen colors and Screen layout
MAILPOET-6365
2025-01-09 19:33:22 +01:00
503e111722 Add event record for Typography and Typography elements
MAILPOET-6365
2025-01-09 19:33:22 +01:00
8b9203fe09 Prevent unnecessary rerender of Sidebar and StylesSidebar components when the Layout component re-renders
MAILPOET-6365
2025-01-09 19:33:22 +01:00
9f65f04271 Add event tracking for auto-saved content
MAILPOET-6365
2025-01-09 19:33:22 +01:00
5de7df1433 Add event tracking for sidebar details section
MAILPOET-6365
2025-01-09 19:33:22 +01:00
1537cacbf4 Add event tracking for sidebar template actions
MAILPOET-6365
2025-01-09 19:33:22 +01:00
34a8625318 Add event tracking for template select modal
MAILPOET-6365
2025-01-09 19:33:22 +01:00
69aa7b906e Setup basic event tracking framework
MAILPOET-6365
2025-01-09 19:33:22 +01:00
7b2d113330 Enable undo/redo keyboard shortcuts
[MAILPOET-6362]
2025-01-09 13:57:22 +01:00
498cfda3b1 Update KB article
[MAILPOET-6386]
2025-01-09 13:33:34 +01:00
03f4c8d9c3 Add bigger gap between subject and preheader
[MAILPOET-6386]
2025-01-09 13:33:34 +01:00
ccd07ba46d Stop using Shortcodes in the UI
[MAILPOET-6386]
2025-01-09 13:33:34 +01:00
6ba1e19621 Use default WP Admin colours for Tags
[MAILPOET-6409]
2025-01-09 11:10:07 +01:00
378ab3bc94 Switching to @wordpress/edit-site to fix incompatibility issues with Jetpack 2025-01-08 16:30:36 +01:00
c102ef7003 Improve inserting at the end of the text
In some cases inserting at the end of the text skipped the latest character.
[MAILPOET-6396]
2025-01-08 09:50:17 +01:00
70e6a9328b Add a non-breaking space at the end of the personalization tag
When a text block contains only a personalization tag, WP renderer removes the block.
Adding a non-breaking space is a workaround solving this issue.
[MAILPOET-6396]
2025-01-08 09:50:17 +01:00
54815b44f3 Unify link tag edit popover look with native link edit popover
[MAILPOET-6394]
2025-01-06 15:46:22 +01:00
5a16de1521 Refactor work with personalization tags selection
The new approach works more with RichText object and looks more stable.
[MAILPOET-6394]
2025-01-06 15:46:22 +01:00
3f6358a2fe Add popover component for editing personalization tag links
[MAILPOET-6394]
2025-01-06 15:46:22 +01:00
16e66ac62b Add new modal inserting personalization tag as link
[MAILPOET-6394]
2025-01-06 15:46:22 +01:00
dd37e6a543 Unify link tag edit popover look with native link edit popover
[MAILPOET-6379]
2025-01-06 12:22:56 +01:00