Commit Graph

13782 Commits

Author SHA1 Message Date
Pavel Dohnal
bd9f088709 Update test dependencies
[MAILPOET-3724]
2021-09-27 16:11:42 +02:00
Pavel Dohnal
50483e945e Update scss packages
[MAILPOET-3724]
2021-09-27 16:11:42 +02:00
Pavel Dohnal
d8a0c2e9eb Update webpack packages
[MAILPOET-3724]
2021-09-27 16:11:42 +02:00
Pavel Dohnal
c338213a3c Fix audit issues
[MAILPOET-3724]
2021-09-27 16:11:42 +02:00
Pavel Dohnal
be072583e4 Update eslint
[MAILPOET-3724]
2021-09-27 16:11:42 +02:00
Pavel Dohnal
7524b7d972 Update types
[MAILPOET-3724]
2021-09-27 16:11:42 +02:00
Pavel Dohnal
6bd6ac67f2 Update storybook dependencies
[MAILPOET-3724]
2021-09-27 16:11:42 +02:00
Pavel Dohnal
e22adb1c7f Update babel dependencies
[MAILPOET-3724]
2021-09-27 16:11:42 +02:00
Pavel Dohnal
5048738d7f Update babel runtime
[MAILPOET-3724]
2021-09-27 16:11:42 +02:00
Jan Lysý
7fcdd5da91 Remove version detection from svn:publish command
[MAILPOET-3828]
2021-09-27 10:26:43 +02:00
Rodrigo Primo
2f494a2951 Change ./do qa:code-sniffer to include warnings by default
This change is necessary to make sure we are running PHPCS with the same
parameters in both CircleCI and the pre-commit hook. For more
information see the description of the related Jira ticket.

[MAILPOET-3831]
2021-09-27 10:14:49 +02:00
Jan Lysý
e9a4c6e090 Fix incompatibility after Doctrine refactor
[MAILPOET-3662]
2021-09-27 10:14:02 +02:00
Jan Lysý
857268c5ff Allow preview for unsaved forms
[MAILPOET-3662]
2021-09-27 10:14:02 +02:00
Jan Lysý
196b0cfd93 Change link in post-editor-block to template selection
[MAILPOET-3662]
2021-09-27 10:14:02 +02:00
Jan Lysý
2af076ab83 Delete FormFactory
[MAILPOET-3662]
2021-09-27 10:14:02 +02:00
Jan Lysý
8ae5219afa Change link in post-editor-block
[MAILPOET-3662]
2021-09-27 10:14:02 +02:00
Jan Lysý
e1f83d4b51 Remove code for creating a new form
This code was unreachable because the flow for form creation was changed.

[MAILPOET-3662]
2021-09-27 10:14:02 +02:00
Jan Lysý
43d9616fad Change parameters for history.replaceState
[MAILPOET-3662]
2021-09-27 10:14:02 +02:00
Jan Lysý
cb48009d87 Add acceptance test for new form cancel
[MAILPOET-3662]
2021-09-27 10:14:02 +02:00
Jan Lysý
74441ba881 Ensure form id in url
[MAILPOET-3662]
2021-09-27 10:14:02 +02:00
Jan Lysý
64acc14cd5 Save editor URL in store
[MAILPOET-3662]
2021-09-27 10:14:02 +02:00
Jan Lysý
93eb9a6886 Set form id in store on save
[MAILPOET-3662]
2021-09-27 10:14:02 +02:00
Jan Lysý
42e73437d9 Don't create a form on template select
[MAILPOET-3662]
2021-09-27 10:14:02 +02:00
Jan Lysý
1a3f16a3c0 Remove action create from endpoint
[MAILPOET-3662]
2021-09-27 10:14:02 +02:00
Pavel Dohnal
9977ed75fb Deprecate the form model
[MAILPOET-3644]
2021-09-22 15:37:24 +02:00
Pavel Dohnal
b94b8f119a Remove old form model from MP2 migrator
[MAILPOET-3644]
2021-09-22 15:37:24 +02:00
Pavel Dohnal
05d69913a6 Remove old Form model from the widget test
[MAILPOET-3644]
2021-09-22 15:37:24 +02:00
Pavel Dohnal
0f618cdc64 Remove old Form model from the subscribers test
[MAILPOET-3644]
2021-09-22 15:37:24 +02:00
Pavel Dohnal
942d756b9f Use Doctrine in form editor
[MAILPOET-3644]
2021-09-22 15:37:24 +02:00
Pavel Dohnal
ca88c96470 Refactor Widget to use Doctrine
[MAILPOET-3644]
2021-09-22 15:37:24 +02:00
Pavel Dohnal
19b99b4ff1 Refactor Captcha Renderer to use Doctrine
[MAILPOET-3644]
2021-09-22 15:37:24 +02:00
Pavel Dohnal
aced9ce0b7 Refactor form renderer to accept Form Entity
[MAILPOET-3644]
2021-09-22 15:37:24 +02:00
Brezo Cordero
3e306974ed Fix SMTPMapper test
[MAILPOET-3171]
2021-09-22 12:48:17 +02:00
Brezo Cordero
51a0899698 Mark most SMTP transport errors as soft
[MAILPOET-3171]
2021-09-22 12:48:17 +02:00
Jan Lysý
d0e4ed3892 Remove mailpoet pages from the 'After submit' option
[MAILPOET-3675]
2021-09-22 12:34:19 +02:00
Jan Lysý
d6d962a5df Use property value instead of defaultValue
When the user select all and delete the content, then
onChange doesn't work correctly. It was caused by
the wrong property for the set value of the text area.

[MAILPOET-3794]
2021-09-22 12:06:31 +02:00
Rostislav Wolny
f98167a30c Add confirmation before running integration tests on dev site
[MAILPOET-3755]
2021-09-22 12:03:47 +02:00
Pavel Dohnal
0cad857653 Remove test deployment
[MAILPOET-3595]
2021-09-22 12:01:27 +02:00
Rostislav Wolny
dac4fb5dd0 Replace clean-webpack-plugin with initial cleanup in Robofile
We need to share the same output path (assets/build/js) in more configs
in order to generate a common manifest.json file.
The cleanup plugin and also build-in output.clean setting do the cleanup on emit
and that causes that they delete files we want to keep.
Using different output paths solves the problem with cleanup but it causes that we generate a bunch of manifest.json files
instead of one.
As simplest workaround I chose cleaning the output directory before we trigger the Webpack build in the Robofile.
[MAILPOET-3214]
2021-09-22 11:56:49 +02:00
Rostislav Wolny
85c4aa7aa1 Remove unnecessary post-instal fix for invalid CSS
The issue was already fixed in the @wordpress/block-editor
[MAILPOET-3214]
2021-09-22 11:56:49 +02:00
Rostislav Wolny
ae19e3f771 Cleanup expose loader configuration
We used to need to expose much more libraries for the premium plugin.
Some time ago we moved a lot of premium functionality to the free plugin
and we don't need to expose those modules any more.
[MAILPOET-3214]
2021-09-22 11:56:49 +02:00
Rostislav Wolny
0f899c3186 Add comment for admin_vendor entry and remove unnecessaty packages
@emotion/react @emotion/style don't have to be added here since they are not shared.
[MAILPOET-3214]
2021-09-22 11:56:49 +02:00
Rostislav Wolny
e1c84f8d6d Use commons chunk for JS code shared between entry points
This is a replacement for previous admin_vendor_chunk
see 422245e3e6/webpack.config.js (L235-L251)
The automatic splitting based on minChunks seems to give better results.
[MAILPOET-3214]
2021-09-22 11:56:49 +02:00
Rostislav Wolny
c6f9e240d8 Reintroduce clean webpack plugin
We used custom script because we were stuck with the old version the cleanup plugin and it had some issues.
Now with webpack5 we can use the plugin again.
[MAILPOET-3214]
2021-09-22 11:56:49 +02:00
Rostislav Wolny
bf96bbffb7 Fix missing key attribute warning on newsletter stats
[MAILPOET-3214]
2021-09-22 11:56:49 +02:00
Rostislav Wolny
9bb9e424f4 Fix module resolving for chai
Eslint was not able to load chai with webpack import loader due error:
Package path . is not exported from package /node_modules/chai (see exports field in chai/package.json)
Pointing directly to node_modules/chai/index.js bypasses checking exports property in package.json
[MAILPOET-3214]
2021-09-22 11:56:49 +02:00
Rostislav Wolny
84e67088e5 Use medium+ instance for Circle CI for build job
The webpack build exited with code 1 and no error message.
[MAILPOET-3214]
2021-09-22 11:56:49 +02:00
Rostislav Wolny
9d0ee166fc Fix cleaning up js dist folder before build
[MAILPOET-3214]
2021-09-22 11:56:49 +02:00
Rostislav Wolny
e7480abd0e Fix deprecation warning about hashes in JS production build
[MAILPOET-3214]
2021-09-22 11:56:49 +02:00
Rostislav Wolny
6a1344d3e2 Fix strict mode errors in Backbone.Supermodel
[MAILPOET-3214]
2021-09-22 11:56:49 +02:00