Commit Graph

202 Commits

Author SHA1 Message Date
Pavel Dohnal
7b2d113330 Enable undo/redo keyboard shortcuts
[MAILPOET-6362]
2025-01-09 13:57:22 +01:00
Pavel Dohnal
498cfda3b1 Update KB article
[MAILPOET-6386]
2025-01-09 13:33:34 +01:00
Pavel Dohnal
03f4c8d9c3 Add bigger gap between subject and preheader
[MAILPOET-6386]
2025-01-09 13:33:34 +01:00
Pavel Dohnal
ccd07ba46d Stop using Shortcodes in the UI
[MAILPOET-6386]
2025-01-09 13:33:34 +01:00
Pavel Dohnal
6ba1e19621 Use default WP Admin colours for Tags
[MAILPOET-6409]
2025-01-09 11:10:07 +01:00
Oluwaseun Olorunsola
378ab3bc94 Switching to @wordpress/edit-site to fix incompatibility issues with Jetpack 2025-01-08 16:30:36 +01:00
Jan Lysý
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
Jan Lysý
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
Rostislav Wolny
54815b44f3 Unify link tag edit popover look with native link edit popover
[MAILPOET-6394]
2025-01-06 15:46:22 +01:00
Jan Lysý
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
Jan Lysý
3f6358a2fe Add popover component for editing personalization tag links
[MAILPOET-6394]
2025-01-06 15:46:22 +01:00
Jan Lysý
16e66ac62b Add new modal inserting personalization tag as link
[MAILPOET-6394]
2025-01-06 15:46:22 +01:00
Jan Lysý
dd37e6a543 Unify link tag edit popover look with native link edit popover
[MAILPOET-6379]
2025-01-06 12:22:56 +01:00
Jan Lysý
69d1714487 Adjust Gutenberg component usage to minimize warnings in console
[MAILPOET-6379]
2025-01-06 12:22:56 +01:00
Jan Lysý
29254bc962 Use PersonalizationTagsPopover for editing in blocks and details panel
[MAILPOET-6379]
2025-01-06 12:22:56 +01:00
Jan Lysý
aa2987352e Add a new popover component for editing Personalization Tags
[MAILPOET-6379]
2025-01-06 12:22:56 +01:00
Rostislav Wolny
a2b75a73f3 Add support for the stable border feature name
[MAILPOET-6359]
2025-01-06 08:52:49 +01:00
Rostislav Wolny
5fb8247163 Fix duplicate templates in select modal
[MAILPOET-6334]
2024-12-31 14:09:12 +01:00
Rostislav Wolny
09747dd98a Update start from scratch and close to use the first template + pattern
[MAILPOET-6334]
2024-12-31 14:09:12 +01:00
Rostislav Wolny
a617062e72 Update names of template + pattern combinations in select modal
[MAILPOET-6334]
2024-12-31 14:09:12 +01:00
Rostislav Wolny
e97869e6eb Show combination of templates and all patterns in select template modal
[MAILPOET-6334]
2024-12-31 14:09:12 +01:00
Rostislav Wolny
106d22448f Hide blank email-general template from the template selection
[MAILPOET-6334]
2024-12-31 14:09:12 +01:00
Rostislav Wolny
a5db2564c8 Add post_types field to the template REST API response
We want to use post_type for filtering email templates.
There is a PR that adds this property https://github.com/WordPress/wordpress-develop/pull/7530
but it is not merged.
This commit added the property and also future compatibility check
so that we don't attempt to add it after the PR is merged.
[MAILPOET-6356]
2024-12-20 15:14:30 +01:00
Rostislav Wolny
2fc0ad3c9e Switch template registration to use register_block_template
[MAILPOET-6356]
2024-12-20 15:14:30 +01:00
Jan Lysý
62b77b724c Change callback and function names
[MAILPOET-6376]
2024-12-20 10:12:04 +01:00
Jan Lysý
e56fe9a95e Add support for replacing written Personalization Tags with attributes
[MAILPOET-6376]
2024-12-20 10:12:04 +01:00
Jan Lysý
0e13133499 Use valueToInsert in Personalization Tag modal
[MAILPOET-6376]
2024-12-20 10:12:04 +01:00
Jan Lysý
6fbaebcc09 Add replacing Personalization Tags for subject and preheader
[MAILPOET-6376]
2024-12-20 10:12:04 +01:00
Jan Lysý
041d76830b Add filter replacing written Personalization Tags to email editor
[MAILPOET-6376]
2024-12-20 10:12:04 +01:00
Rostislav Wolny
891bc34efa Fix switching to template mode
When we switch to template mode RichTextButton, which is dependent
on mailpoetData fails to render. The panel is hidden but it is hidden
in a subsequent render so we need to add check if mailpoet data are available.
[MAILPOET-6354]
2024-12-18 14:15:05 +01:00
Jan Lysý
635ba35a52 Add small comment and performance improvements
[MAILPOET-6354]
2024-12-18 14:15:05 +01:00
Jan Lysý
0b44ccdb4a Use @ts-expect-error instead of @ts-ignore
[MAILPOET-6354]
2024-12-18 14:15:05 +01:00
Jan Lysý
9edd4a6096 Add link into modal header
I unified the link with the link in details panel.
The target link should be replaced later in a different task.
[MAILPOET-6354]
2024-12-18 14:15:05 +01:00
Jan Lysý
cece3711f8 Use useCallback for insert functions
[MAILPOET-6354]
2024-12-18 14:15:05 +01:00
Jan Lysý
bc1581b174 Change rich-text-utils filename extension
[MAILPOET-6354]
2024-12-18 14:15:05 +01:00
Jan Lysý
2aae43b91e Create new richText component with button
[MAILPOET-6354]
2024-12-18 14:15:05 +01:00
Jan Lysý
b264c74ce9 Refactor modal to pass insert callback and isOpened value
[MAILPOET-6354]
2024-12-18 14:15:05 +01:00
Jan Lysý
64264460e8 Refactor initial fetch tags into resolver
[MAILPOET-6354]
2024-12-18 14:15:05 +01:00
Jan Lysý
cc38100109 Move common functions into utils file
[MAILPOET-6354]
2024-12-18 14:15:05 +01:00
Jan Lysý
0173ddd38e Add inserting personalization tags to text blocks
[MAILPOET-6354]
2024-12-18 14:15:05 +01:00
Jan Lysý
29c1f7462a Add inserting personalization tags to subject and preheader
[MAILPOET-6354]
2024-12-18 14:15:05 +01:00
Jan Lysý
bbe2f988e0 Add onInsert callback into PersonalizationTags from store
[MAILPOET-6354]
2024-12-18 14:15:05 +01:00
Jan Lysý
74c2a99e80 Refactor category modal into smaller components
[MAILPOET-6354]
2024-12-18 14:15:05 +01:00
Jan Lysý
74e4b333ac Add search for filtering Personalization Tags by query
[MAILPOET-6354]
2024-12-18 14:15:05 +01:00
Jan Lysý
9282cf91c6 Add filtering personalization tags by category
[MAILPOET-6354]
2024-12-18 14:15:05 +01:00
Jan Lysý
d17faaa13a Add rendering Personalization tags to modal
[MAILPOET-6354]
2024-12-18 14:15:05 +01:00
Jan Lysý
2c031b01fc Add loading personalization to store
[MAILPOET-6354]
2024-12-18 14:15:05 +01:00
Jan Lysý
3a3b53545f Add personalization tags modal component
[MAILPOET-6354]
2024-12-18 14:15:05 +01:00
Jan Lysý
1d11502e93 Add personalizationTags state to custom editor
[MAILPOET-6354]
2024-12-18 14:15:05 +01:00
Jan Lysý
7f2f9ff7ca Add button with shortcode icon for subject and preheader
[MAILPOET-6354]
2024-12-18 14:15:05 +01:00