Commit Graph

269 Commits

Author SHA1 Message Date
Jan Lysý
1b7af931ca Fix scrolling in styles sidebar for WP 6.8 2025-04-10 09:26:26 +02:00
Jan Lysý
e1881eb43d Remove unsupported property
This property should not be supported anymore in WP 6.8
2025-04-10 09:26:26 +02:00
Oluwaseun Olorunsola
4de580b7df Update Readme and add missing text. 2025-02-14 09:06:09 +01:00
Oluwaseun Olorunsola
642733ee0c Update Readme with information about the email editor js filters 2025-02-14 09:06:09 +01:00
Oluwaseun Olorunsola
80f354b860 Simplify the WordPress Playground link and add networking support 2025-02-14 09:06:09 +01:00
Oluwaseun Olorunsola
f96e74cf96 Remove unnecessary early return in the RichTextWithButton component
MAILPOET-6431
2025-02-13 10:27:43 +01:00
Oluwaseun Olorunsola
ee513fd871 Add clarifying comments to sections of the codebase
MAILPOET-6431
2025-02-13 10:27:43 +01:00
Oluwaseun Olorunsola
2adc6d23ca Update acceptance test case to fix failing test
MAILPOET-6431
2025-02-13 10:27:43 +01:00
Oluwaseun Olorunsola
5023bbb6f2 Fix Incorrect use of <label for=FORM_ELEMENT notice
https://github.com/user-attachments/assets/9a996747-9ab1-453f-bd11-deffea36a468

MAILPOET-6431
2025-02-13 10:27:43 +01:00
Oluwaseun Olorunsola
b16071ee0e Remove unnecessary use of updateEmailMailPoetProperty
MAILPOET-6431
2025-02-13 10:27:43 +01:00
Oluwaseun Olorunsola
e5498b6baf Remove unnecessary use of mailpoet_data
MAILPOET-6431
2025-02-13 10:27:43 +01:00
Oluwaseun Olorunsola
9ad79e75b5 Update email editor mailpoet sidebar implementation
MAILPOET-6431
2025-02-13 10:27:43 +01:00
Oluwaseun Olorunsola
aa17e90365 Refactor RichTextWithButton component and ensure it is reusable
We also removed the usage of mailpoet_data

MAILPOET-6431
2025-02-13 10:27:43 +01:00
Oluwaseun Olorunsola
4b917dd1b3 Move current MailPoet specific information on the sidebar to an extension point
MAILPOET-6431
2025-02-13 10:27:43 +01:00
Oluwaseun Olorunsola
7c425cb04d Refactor send email preview component to remove hardcoded text and add point for extensibility
MAILPOET-6431
2025-02-13 10:27:43 +01:00
Oluwaseun Olorunsola
43990d9e8b Remove mailpoet_data use from send email preview feature
MAILPOET-6431
2025-02-13 10:27:43 +01:00
Oluwaseun Olorunsola
ee8daf137e Fix preview dropdown menu staying open after link click 2025-02-08 10:04:47 +01:00
Rostislav Wolny
b1ed43c333 Add a link to the editor playground to the editor package readme
[MAILPOET-6464]
2025-02-07 16:23:29 +01:00
Oluwaseun Olorunsola
076de3b8c6 Add information about actions and filters to the email editor js package readme
MAILPOET-6432
2025-02-07 15:30:20 +01:00
Oluwaseun Olorunsola
5470b079a1 Ensure we are watching to the correct store so updates get propagated
MAILPOET-6432
2025-02-07 15:30:20 +01:00
Oluwaseun Olorunsola
5190ac1ff2 Migrate email editor content validation rules to the MP plugin
MAILPOET-6432
2025-02-07 15:30:20 +01:00
Jan Lysý
1464e9b9f6 Add note about required @wordpress/rich-text package
[MAILPOET-6452]
2025-02-03 14:14:06 +01:00
Jan Lysý
bc90aab4dc Add compiled rich-text as a part of JS package
[MAILPOET-6452]
2025-02-03 14:14:06 +01:00
Oluwaseun Olorunsola
7dfdbef152 Remove unused email editor core variables.
These variables are used by the core editor. We can remove them.

MAILPOET-6430
2025-01-30 13:12:33 +01:00
Oluwaseun Olorunsola
1cb5eda659 Migrate variable from email editor core to MailPoet integration.
The information is already available within the MailPoet integration scope, moving the variable declaration closer.

MAILPOET-6430
2025-01-30 13:12:33 +01:00
Oluwaseun Olorunsola
bf5cde8363 Reset update to Header.tsx.
We need the button to show for other post types e.g wp_template, wp styles, etc

MAILPOET-6430
2025-01-30 13:12:33 +01:00
Oluwaseun Olorunsola
6a012a8dd6 Fetch postId from the backend and remove reliance on getting the post id from the URL
MAILPOET-6430
2025-01-30 13:12:33 +01:00
Oluwaseun Olorunsola
a49b978050 Remove usage of hardcoded mailpoet_email string from the JS package
MAILPOET-6430
2025-01-30 13:12:33 +01:00
Oluwaseun Olorunsola
9a2502826f Add hideRecentCategory to useEffect hook dependency array
MAILPOET-6430
2025-01-30 13:12:33 +01:00
Oluwaseun Olorunsola
350a90f872 Remove mailpoet_email usage from header component
MAILPOET-6430
2025-01-30 13:12:33 +01:00
Oluwaseun Olorunsola
f20237ab1c Update and fix failing tests
MAILPOET-6323
2025-01-29 08:42:48 +01:00
Oluwaseun Olorunsola
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
Jan Lysý
6ac171bdeb Fix inserting personalization tags
Personalization tags should be inserted with default attribute values.
[MAILPOET-6443]
2025-01-27 14:51:46 +01:00
Oluwaseun Olorunsola
9b65494bf8 Switch to using getBlockPatterns and update implementation
MAILPOET-6444
2025-01-27 14:34:51 +01:00
Pavel Dohnal
3d45ea92e2 Make send button independent on MailPoet
[MAILPOET-6429]
2025-01-27 13:55:23 +01:00
Pavel Dohnal
6f8a1716c0 Make the send action configurable
[MAILPOET-6429]
2025-01-27 13:55:23 +01:00
Pavel Dohnal
997de285c9 Make the send button label configurable
[MAILPOET-6429]
2025-01-27 13:55:23 +01:00
Rostislav Wolny
1b565bf430 Hide recent email categories when swapping a template
[MAILPOET-6425]
2025-01-23 13:53:42 +01:00
Rostislav Wolny
0a02295c1e Show heading by template select mode in the template select modal
[MAILPOET-6425]
2025-01-23 13:53:42 +01:00
Rostislav Wolny
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
Rostislav Wolny
07629938cb Fix rest of Typescript related issues
[MAILPOET-6438]
2025-01-17 11:35:49 +01:00
Rostislav Wolny
4059e5cef0 Replace ts-ignore with ts-expect-error
[MAILPOET-6438]
2025-01-17 11:35:49 +01:00
Rostislav Wolny
99d7191a23 Add missing text domains to translations
[MAILPOET-6438]
2025-01-17 11:35:49 +01:00
Rostislav Wolny
eb03fc9bac Configure mailpoet as allowed text domain
[MAILPOET-6438]
2025-01-17 11:35:49 +01:00
Rostislav Wolny
92e9642e1f Fix and workaround woocommerce/dependency-group errors
[MAILPOET-6438]
2025-01-17 11:35:49 +01:00
Rostislav Wolny
3c7b5aba85 Add @woocommerce/eslint-plugin with basic configuration
[MAILPOET-6438]
2025-01-17 11:35:49 +01:00
Rostislav Wolny
b2a0f09a7f Use pnpm for lint-staged files
[MAILPOET-6370]
2025-01-15 11:48:23 +01:00
Rostislav Wolny
142b0f3d2c Add scss files formatting for staged files
[MAILPOET-6370]
2025-01-15 11:48:23 +01:00
Rostislav Wolny
8e6c81ae75 Reformat SCSS files using WP prettier
[MAILPOET-6370]
2025-01-15 11:48:23 +01:00
Rostislav Wolny
013dd6aad8 Configure format script to cover also SCSS
[MAILPOET-6370]
2025-01-15 11:48:23 +01:00