Commit Graph

9408 Commits

Author SHA1 Message Date
c8663c3b79 Add test for base renderer
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
c6ca749cdc Refactor form blocks to use composition instead of inheritance
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
20926d56b7 Inject form renderer into DisplayFormInWPContent
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
b38bd63bc5 Add unit test for form renderer
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
2e5fd69658 Remove unused variable from form select block
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
f0c1c3e424 Move select block integration test to unit test
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
c1180cd0aa Inject dependencies into form blocks parent
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
d0acad5c3b Inject WPFunctions to FieldNameObfuscator using DI
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
7d596e3407 Extract unrelated date conversion functionality from date block
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
dc5a296133 Inject dateBlock to services which use it
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
6827eb93e6 Add block renderers to DI container
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
d9b9e13a04 Extract rendering of a single block to extra class
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
a759530b9d Refactor recatcha and honeypot rendering to extra private methods
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
73281f0851 Inject settings and style utils to renderer using constructor
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
f559d5f479 Add typehints to form renderer
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
5193d4641c Refactor getBlocks and getBlock methods from static to instance methods
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
37423908d7 Refactor getStyles method from static to instance method
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
087a610be5 Refactor renderHTML method from static to instance method
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
b8dd243ec1 Refactor renderStyles method from static to instance method
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
8e9c41145d Mark renderer method which is not used out of renderer as private
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
2306be6b16 Register form renderer to DI container
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
e72b1ec71d Remove unused public method
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
fb7e87706b Remove unnecessary usages of $subscriber for preview links
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
b22198f599 Use only one preview link in preview modal
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
369675626c Make endpoint response method private, fix naming
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
4c4a0e4caa Fix and refactor ViewInBrowserRendererTest
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
ce21cc2085 Move Newsletter\ViewInBrowserTest to ViewInBrowserRendererTest
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
4be306230b Fix findOne() method annotation
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
e3cc5a0ec0 Fix and refactor ViewInBrowserControllerTest
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
216341d5f6 Move ViewInBrowserTest to ViewInBrowserControllerTest
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
a3b8aa78a5 Refactor ViewInBrowserController to use methods and descriptive exceptions
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
88d76d5efa Rename Newsletters\ViewInBrowser to ViewInBrowserRenderer
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
edb18399a1 Extract view-in-browser logic to a controller
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
077591ae3c Use DI for Newsletter\ViewInBrowser
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
3cd5af448e Rewrite view-in-browser to always require newsletter ID and hash, refactor
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
ddfc9647dd Use array instead of \stdClass, fix coding style
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
923dc0d1dd Simplify and unify getViewInBroserUrl calls
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
e5fcf5819d Remove 'type' parameter for view-in-browser, always include hash
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
eb1c7673e3 Make $preview = true default for view-in-broser URL
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
2f59ab4c50 Add new tab link to newsletter preview
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
wxa
d41eca48b2 Fix captcha case in comparison [MAILPOET-2698] 2020-02-12 18:11:06 +00:00
931447e050 Update react-tooltip library
[MAILPOET-2696]
2020-02-12 18:05:19 +00:00
d00c690252 Update codemirror editor
[MAILPOET-2696]
2020-02-12 18:05:19 +00:00
f31f46d049 Allow drag and drop reordering of blocks in form editor
[MAILPOET-2696]
2020-02-12 18:05:19 +00:00
73854a20c5 Update form editor layout to work with new version of Gutenberg post editor css
[MAILPOET-2696]
2020-02-12 18:05:19 +00:00
42723592e2 Update Gutenberg packages for form editor
[MAILPOET-2696]
2020-02-12 18:05:19 +00:00
675df7a4a6 Update babel plugins
[MAILPOET-2696]
2020-02-12 18:05:19 +00:00
368883eeb6 Update babel packages except plugins
[MAILPOET-2696]
2020-02-12 18:05:19 +00:00
19f2716138 Update react related libs
[MAILPOET-2696]
2020-02-12 18:05:19 +00:00
09bf2584df Update react and react-dom
[MAILPOET-2696]
2020-02-12 18:05:19 +00:00