Commit Graph

21722 Commits

Author SHA1 Message Date
Jan Jakes
b6c81f8ff6 Add getters for billing & shipping customer data with order fallback
[MAILPOET-5378]
2024-03-18 13:36:08 +01:00
Jan Jakes
adb5d16fab Allow optional WC_Order to customer payload for guest user data
[MAILPOET-5378]
2024-03-18 13:36:08 +01:00
Pavel Dohnal
91ba2dc89d Refactor forms column block to container queries
[MAILPOET-5917]
2024-03-18 12:17:37 +01:00
Jan Jakes
8ba4335dfb Optimize and cache term loading
[MAILPOET-5942]
2024-03-18 11:53:16 +01:00
Jan Lysý
6f87dd6b01 Move layout background colors to theme.json
[MAILPOET-5640]
2024-03-15 16:57:41 +01:00
Jan Lysý
2ea6bca7a3 Update renderer integration test
[MAILPOET-5640]
2024-03-15 16:57:41 +01:00
Jan Lysý
60204c11cc Update getting values for styles preview
[MAILPOET-5640]
2024-03-15 16:57:41 +01:00
Jan Lysý
6181d8a683 Change default values for block gap and padding
[MAILPOET-5640]
2024-03-15 16:57:41 +01:00
Jan Lysý
5ceef236bf Use the same format for styles as it is in theme.json
This should be the first step to using theme.json format in DB and merging more style configurations to the final one.
[MAILPOET-5640]
2024-03-15 16:57:41 +01:00
Jan Lysý
c415f1efce Move heading styles from CSS file to theme.json
Because we want to have all editor configurations in theme.json, I moved heading font sized to theme.json and removed redundant filters.
[MAILPOET-5640]
2024-03-15 16:57:41 +01:00
alex-mpoet
15b0846f34 Leave on-save email validation only in SubscriberSaveController
[MAILPOET-5878]
2024-03-15 15:29:36 +01:00
Jan Jakes
5d781f3f7f Fix popover in automation template modal opening behind the modal
[MAILPOET-5953]
2024-03-15 15:00:13 +01:00
Rostislav Wolny
f640fb58ef Use a smaller bottom margin for the canvas to prevent hidden inserter popup
[MAILPOET-5907]
2024-03-15 14:43:01 +01:00
Rostislav Wolny
9f6fa6e47d Disable unwanted focus outline on buttons in sidebar
[MAILPOET-5907]
2024-03-15 14:43:01 +01:00
Rostislav Wolny
3bbb7b71a1 Fix border radius issues in the button
When only the radius was defined, we set border solid and it caused
that sometimes it was rendered even when the width was not defined.
Overflow hidden ensures that inner link element doesn't break the border radius.
[MAILPOET-5907
2024-03-15 14:43:01 +01:00
Rostislav Wolny
46f94e0901 Ensure correct display when switching mobile/desktop preview
useResizeCanvas hook started to return some values for margin, but only after the switch happened and
they were breaking margins
[MAILPOET-5907]
2024-03-15 14:43:01 +01:00
Rostislav Wolny
619446051d Fix the padding issue in the preview dropdown menu
The preview in the new tab button had a different padding.
[MALPOET-5907]
2024-03-15 14:43:01 +01:00
Rostislav Wolny
b9ef6bb258 Add a workaround for fixed toolbar backward compatibility
In WP 6.4 and below is the fixed toolbar rendered within the same
slot as the floating toolbar but is positioned via CSS.

In WP 6.5, the fixed toolbar needs to be rendered in the Header explicitly.
This commit adds a workaround to backward compatibility with WP 6.4 to prevent rendering
two fixed toolbars.

Inspired by 1abf85fb83
[MAILPOET-5907]
2024-03-15 14:43:01 +01:00
Rostislav Wolny
055e841c03 Add fixed block toolbar collapse toggle
[MAILPOET-5907]
2024-03-15 14:43:01 +01:00
Rostislav Wolny
5083ad8342 Add fixed block toolbar support for WP 6.5
The fixed toolbar used to be just an absolutely positioned toolbar.
After the recent changes, we need to render it ourselves.
[MAILPOET-5907]
2024-03-15 14:43:01 +01:00
Rostislav Wolny
2e795f09df Disable shadow for all blocks
The shadow is currently not opt-in and can't be disabled in theme.json
[MAILPOET-5907]
2024-03-15 14:43:01 +01:00
Rostislav Wolny
ab35ac7925 Fix sidebar tabs appearance for WP 6.5
I explored using the private Tabs component and it worked, but it
doesn't work with WP 6.4 so I went with adding CSS.
We can switch to Tabs later. Hopefully they won't be private.
[MAILPOET-5907]
2024-03-15 14:43:01 +01:00
Rostislav Wolny
6fe8bc5432 Fix desktop email content view
The condition stopped working because useResizeCanvas started returning
some styles also for Desktop
[MAILPOET-5907]
2024-03-15 14:43:01 +01:00
Rostislav Wolny
06ae808295 Fix the left header toolbar appearance
[MAILPOET-5907]
2024-03-15 14:43:01 +01:00
Rostislav Wolny
4d4be7b9d0 Remove unnecessary className
The class name is added automatically. Adding it explicitly causes a duplicity.
[MAILPOET-5907]
2024-03-15 14:43:01 +01:00
David Remer
9a75b7d92d Add test
[MAILPOET-5939]
2024-03-15 13:18:01 +01:00
David Remer
bb84e1fc03 Add GA params only when tracking is set
[MAILPOET-5939]
2024-03-15 13:18:01 +01:00
Rostislav Wolny
39aa76d4d0 Improve typehints and use typed properties in ContentRenderer and test
[MAILPOET-5798]
2024-03-15 10:28:48 +01:00
Rostislav Wolny
4071175178 Move ContentRenderer to the Renderer/ContentRenderer namespace
[MAILPOET-5798]
2024-03-15 10:28:48 +01:00
Rostislav Wolny
da87807330 Split CSS for inlining to a file for content and for the HTML template
This is a continuation of the idea of separating content rendering
and adding content to the HTML template.
I assume that in the future, we may move more parts from the renderer
to the content render (e.g. we may introduce a block for layout wrap).
[MAILPOET-5798]
2024-03-15 10:28:48 +01:00
Rostislav Wolny
8f20b4bfa9 Simplify code in RendererTest using WP_HTML_Tag_Processor
[MAILPOET-5798]
2024-03-15 10:28:48 +01:00
Rostislav Wolny
8b09fd6183 Add basic integration test for ContentRenderer
[MAILPOET-5798]
2024-03-15 10:28:48 +01:00
Rostislav Wolny
2c5857e89b Split renderer into content renderer and renderer
Content renderer - renders the content of the email post
Renderer - places the content into the email HTML template and generates text version
[MAILPOET-5798]
2024-03-15 10:28:48 +01:00
Veljko
c7a75a897b Rebase onto trunk and update expector 2024-03-15 08:20:00 +01:00
Veljko
099ea279bd Add new k6 test to cover automation triggering workflow 2024-03-15 08:20:00 +01:00
Brezo Cordero
ef00c8dadf Update mailpoet_shortcode_links type
[MAILPOET-5889]
2024-03-14 19:14:21 +01:00
Brezo Cordero
42f929fba3 Display Premium Banner if key is not valid
and move Products Sold Tab to free plugin for consistency.

[MAILPOET-5889]
2024-03-14 19:14:21 +01:00
Jan Lysý
9bfa20d345 Use ts-expects error instead of ignore and remove domain from common translations
[MAILPOET-5640]
2024-03-14 12:53:32 +01:00
Jan Lysý
0abadb3f92 Add dimension panel for layout styles configuration
At this moment, it's only UI component that does not contain any callbacks.
[MAILPOET-5640]
2024-03-14 12:53:32 +01:00
Jan Lysý
5c46bbda30 Add layout screen component
Each section of styles in the sidebar should have its screen component.
[MAILPOET-5640]
2024-03-14 12:53:32 +01:00
Jan Lysý
97d31c0dbf Add screen header component
[MAILPOET-5640]
2024-03-14 12:53:32 +01:00
Jan Jakes
165c3eb6b7 Fix typos, unify casing
[MAILPOET-5936]
2024-03-14 11:09:12 +01:00
Jan Jakes
1b73d6b143 Unify automation icon sizes
[MAILPOET-5936]
2024-03-14 11:09:12 +01:00
Jan Jakes
b234fdf55d Fix label style for delay step settings
[MAILPOET-5936]
2024-03-14 11:09:12 +01:00
Jan Jakes
c8c4d861c7 Add missing label for abandoned cart delay
[MAILPOET-5936]
2024-03-14 11:09:12 +01:00
Jan Jakes
3972a4d7e7 Remove automations beta badge
[MAILPOET-5936]
2024-03-14 11:09:12 +01:00
Jan Jakes
c2ed2c1847 Fix if/else branch artifact when scaled or zoomed
[MAILPOET-5934]
2024-03-14 11:09:12 +01:00
Jan Jakes
0c3eee9a57 Fix rendering of if/else conditions in template previews
[MAILPOET-5934]
2024-03-14 11:09:12 +01:00
Jan Jakes
eaee987048 Implement cart total field
[MAILPOET-5934]
2024-03-14 11:09:12 +01:00
Jan Jakes
7560aa495e Unify quotes and apostrophes
[MAILPOET-5934]
2024-03-14 11:09:12 +01:00