Commit Graph

20858 Commits

Author SHA1 Message Date
1d69fcb49f Deprecate NewsletterSegment model as it is not used anymore
[MAILPOET-5763]
2024-02-23 17:07:34 +01:00
3312d033ef Deprecate Newsletter model as it is not used anymore
[MAILPOET-5763]
2024-02-23 17:07:34 +01:00
cb0b4acd33 Deprecate CustomField model as it is not used anymore
[MAILPOET-5763]
2024-02-23 17:07:34 +01:00
1d6a6a7894 Deprecate main Model class as models are not used anymore
[MAILPOET-5763]
2024-02-23 17:07:34 +01:00
4febc024ef Remove integration tests for all the remaining models
The Paris models are not used anymore and will be deprecated in
subsequent commits. Removing the tests for those models.

[MAILPOET-5763]
2024-02-23 17:07:34 +01:00
aba54c5116 Fix ampersand character rendered by newsletter:post_title shortcode
[MAILPOET-5724]
2024-02-22 10:00:38 +01:00
bc56bfd050 Update readme.txt
[MAILPOET-5915]
2024-02-21 08:37:42 +01:00
188beb896e Release 4.44.0 2024-02-20 12:40:11 +01:00
814f8ce302 Use large instance for zip build
After the update of Gutenberg packages, builds stared failing with
an exit code 1 without any other information.
Increasing the instance helps. We are not completely sure what's causing
the issue. We suspect memory consumption during the build.
In the past, we had to increase from medium to medium+ after updating the webpack to v5
[MAILPOET-5714]
2024-02-19 14:25:47 +01:00
e11a11a1c5 Bump WooCommerce versions: minimum to 8.5, tested up to 8.6
[MAILPOET-5904]
2024-02-19 12:05:57 +01:00
95fc8662a6 Fix issue with month switching in date range picker
The issue is related to the underlying react-dates library used
in woocommerce/components in calendar/date-range.js

See https://github.com/woocommerce/woocommerce/blob/trunk/packages/js/components/src/calendar/date-range.js#L45-L104

I was not able to fully understand why it started to happen after the update
but I have a suspicion that it may be related to the change that causes rendering
popups at the end of the body.

The Gutenberg library already moved away from react-dates and I assume
that Woo Components will do that as well.

This commit adds a patch that adds e.stopPropagation() to the place
where the original workaround is trying to prevent losing focus.

[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
0835249258 Dont render an empty tooltip for failed stats in mailpoet:send-email step
This fixes a console warning: "Tooltip should be called with only a single child element."
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
430aef9fd4 Fix deprecation warnings for popovers
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
3bed8cabed Fix icons and spacing issues on the automations stats page
With the previous fix I accidentally applied box-sizing: border-box;
to everything on the page.
This commit fixes it so that the rule is applied only in places
where it was applied before the upgrade.
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
93de29b379 Add support for heading and paragraph padding to form renderer
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
7a5241d3d3 Add support for padding for headings and paragraphs in the form editor
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
19506d724b Add gradient support for heading and paragraph to form renderer
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
325b223953 Add support for gradient for heading and paragraph in form editor
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
f629dc9793 Fix apperance of date filter in automation analytics
All popups are not appended at the end of body so we needed to
adjust CSS selectors that were used to modify the component.
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
2858a21783 Add spacing sizes presets
This commit addresses an issue that padding control in the email
an editor is rendered without a slider.
This change makes the padding control render the same as in TT4 theme
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
0298f48dae Fix lint issue after rebase
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
74d217ea62 Remove @types/wordpress__components package
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
de7400e474 Use conditional types for fixing button type
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
4882a1c66f Remove unnecessary array spread in webpack config for email editor
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
bbc4a86759 Rename flag for skipping tests in webpack build
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
ef99b96b66 Fix padding in automation editor name edit popup
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
c929f49761 Fix support of WP admin colors schemes for all plugin pages
When checking pages after updating dependencies, I noticed that some buttons have strange colors.
For example, buttons on the "What would you like to create?" page for new newsletters.

I found that this was related to a change in wordpress/components styles.
The original colors were identical to the default WordPress admin color scheme,
so the buttons were ok when an admin used the default scheme, and in case they use a different scheme
the buttons still look like default (blue).
But after the update, all components on MailPoet pages that don't load WP color admin variables
had a strange purple color.

This commit fixes it by including CSS for admin color schemes into mailpoet-plugin.css which is loaded on every MailPoet admin page.

Note the mixin wordpress-admin-schemes() is included in many build styles for other wordpress packages (e.g. wordpress/block-editor)
so admin color schemes worked correctly on some MailPoet pages even before this change.
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
7acdbf7fc3 Fix error for Tooltip text using ReactNode
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
8ef77dbe58 Add support for skipping build of JS tests and skip when building zip
This commit addresses issue with insufficient resources on Circle CI
to avoid using larger executor instances.
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
ee07cb1208 Disable TsCheckerPlugin for email editor production build
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
31e31e3f30 Remove unnecessary types overrides for Wordpress/components
I believe these are no longer in use because wordpress/components
come with built types.
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
d33de5f51c Update acceptance tests
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
0a0a0d404a Update browserify-sign dependency
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
e74bd44319 Update wordpress/* dev dependencies also to wp-6.4
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
795279b637 Opt-in to no margin for FontSizePicker
The bottom margin will be deprecated. With __nextHasNoMarginBottom
switched to the future styles without the margin.
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
d1a88b902f Remove unnecessary wrapper for toggle sidebar panel in form editor
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
aa74dfc0e4 Fix eslint issues
The issues were related to a change in Gutenberg where ActionCreators are not promisified.
See https://github.com/WordPress/gutenberg/pull/52530
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
83f221b80b Fix TS issues with props in automation TemplateDetail component
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
adbbab6b61 Fix incorrect indentation of the admin panel in automations editor
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
ad318563df Fix document actions appearance in automations editor
The dropdown component used for setting the automation name is based
on the document actions component from edit-site package. After the update,
the appearance changed significantly, and it was broken.
This commit adds CSS to restore the original look as before the update.
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
8431ec33e1 Fix the rest of TS errors in automations codebase
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
cb7ae2a442 Fix value in Dropdown focusOnMount prop
The currently supported values are 'firstElement' | boolean
Based on the JS doc and my testing, we need to use true
to hide the popup on click elsewhere or by ESC.
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
b9475c43b8 Update the type of the button with extended props used in automation
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
ca22a7f37b Fix buttons prop types issues in automation
[MAILPOPET-5714]
2024-02-19 11:44:33 +01:00
c143da4ccf Fix error JSX element type ConfirmDialog does not have any construct or call signatures
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
daf6618941 Remove unnecessary fix for missing Popover props
The new type has the props.
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
99aaec7f98 Remove passing setIsBusy to dropdown control in OptionButton
Overriding onClick: (setIsBusy?: Dispatch<SetStateAction<boolean>>) => void;
was causing TS errors when passing controls with the type ControlWithSetIsBusy to DropdownMenu.

The OptionButton that uses isBusy logic is used only in the Hero section at automation
Homepage. The setIsBusy function that was passed to control's onClick was not used.

In all other cases where we were passing controls to DrowdownMenu, we didn't set any isBusy state.
So I think it is safe to remove it.
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
5529816a30 Workaround TS error about missing variant prop on MenuItem component
[MAILOPET-5714]
2024-02-19 11:44:33 +01:00
1b4bf9f2dd Make useDispatch hook type in settings store compatible with wp/data
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
0c9b105cd0 Fix ToolbarItem component typescript errors
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00