Skip to content

Commit 535adb9

Browse files
authored
Merge pull request #720 from CleanTalk/shadowroot_av
New. ShadowrootProtection. Implementation of form protection in Shadowroot elements, integration with Mailchimp shadowroot
2 parents 2e552d8 + 5dd04e0 commit 535adb9

25 files changed

+3471
-1673
lines changed

gulpfile.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ function bundle_public_default() {
6767
'js/src/common-decoder.js',
6868
'js/src/common-cleantalk-modal.js',
6969
'js/src/public-0*.js',
70+
'js/src/ShadowrootProtection/ApbctShadowRootCallbacks.js',
71+
'js/src/ShadowrootProtection/ApbctShadowRootConfig.js',
72+
'js/src/ShadowrootProtection/ApbctShadowRootProtection.js',
7073
'js/src/public-1*.js',
7174
'js/src/public-3*.js',
7275
])
@@ -82,6 +85,9 @@ function bundle_public_default_with_gathering() {
8285
'js/src/common-decoder.js',
8386
'js/src/common-cleantalk-modal.js',
8487
'js/src/public-0*.js',
88+
'js/src/ShadowrootProtection/ApbctShadowRootCallbacks.js',
89+
'js/src/ShadowrootProtection/ApbctShadowRootConfig.js',
90+
'js/src/ShadowrootProtection/ApbctShadowRootProtection.js',
8591
'js/src/public-1*.js',
8692
'js/src/public-2-gathering-data.js',
8793
'js/src/public-3*.js',
@@ -98,6 +104,9 @@ function bundle_public_external_protection() {
98104
'js/src/common-decoder.js',
99105
'js/src/common-cleantalk-modal.js',
100106
'js/src/public-0*.js',
107+
'js/src/ShadowrootProtection/ApbctShadowRootCallbacks.js',
108+
'js/src/ShadowrootProtection/ApbctShadowRootConfig.js',
109+
'js/src/ShadowrootProtection/ApbctShadowRootProtection.js',
101110
'js/src/public-1*.js',
102111
'js/src/public-2-external-forms.js',
103112
'!js/src/public-2-gathering-data.js',
@@ -115,6 +124,9 @@ function bundle_public_external_protection_with_gathering() {
115124
'js/src/common-decoder.js',
116125
'js/src/common-cleantalk-modal.js',
117126
'js/src/public-0*.js',
127+
'js/src/ShadowrootProtection/ApbctShadowRootCallbacks.js',
128+
'js/src/ShadowrootProtection/ApbctShadowRootConfig.js',
129+
'js/src/ShadowrootProtection/ApbctShadowRootProtection.js',
118130
'js/src/public-1*.js',
119131
'js/src/public-2-external-forms.js',
120132
'js/src/public-2-gathering-data.js',
@@ -132,6 +144,9 @@ function bundle_public_internal_protection() {
132144
'js/src/common-decoder.js',
133145
'js/src/common-cleantalk-modal.js',
134146
'js/src/public-0*.js',
147+
'js/src/ShadowrootProtection/ApbctShadowRootCallbacks.js',
148+
'js/src/ShadowrootProtection/ApbctShadowRootConfig.js',
149+
'js/src/ShadowrootProtection/ApbctShadowRootProtection.js',
135150
'js/src/public-1*.js',
136151
'js/src/public-2-internal-forms.js',
137152
'js/src/public-3*.js',
@@ -148,6 +163,9 @@ function bundle_public_internal_protection_with_gathering() {
148163
'js/src/common-decoder.js',
149164
'js/src/common-cleantalk-modal.js',
150165
'js/src/public-0*.js',
166+
'js/src/ShadowrootProtection/ApbctShadowRootCallbacks.js',
167+
'js/src/ShadowrootProtection/ApbctShadowRootConfig.js',
168+
'js/src/ShadowrootProtection/ApbctShadowRootProtection.js',
151169
'js/src/public-1*.js',
152170
'js/src/public-2-internal-forms.js',
153171
'js/src/public-2-gathering-data.js',
@@ -165,6 +183,9 @@ function bundle_public_full_protection() {
165183
'js/src/common-decoder.js',
166184
'js/src/common-cleantalk-modal.js',
167185
'js/src/public-0*.js',
186+
'js/src/ShadowrootProtection/ApbctShadowRootCallbacks.js',
187+
'js/src/ShadowrootProtection/ApbctShadowRootConfig.js',
188+
'js/src/ShadowrootProtection/ApbctShadowRootProtection.js',
168189
'js/src/public-1*.js',
169190
'js/src/public-2*.js',
170191
'!js/src/public-2-gathering-data.js',
@@ -182,6 +203,9 @@ function bundle_public_full_protection_with_gathering() {
182203
'js/src/common-decoder.js',
183204
'js/src/common-cleantalk-modal.js',
184205
'js/src/public-0*.js',
206+
'js/src/ShadowrootProtection/ApbctShadowRootCallbacks.js',
207+
'js/src/ShadowrootProtection/ApbctShadowRootConfig.js',
208+
'js/src/ShadowrootProtection/ApbctShadowRootProtection.js',
185209
'js/src/public-1*.js',
186210
'js/src/public-2*.js',
187211
'js/src/public-3*.js',

inc/cleantalk-integrations-by-hook.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,11 @@
338338
'setting' => 'forms__registrations_test',
339339
'ajax' => false
340340
),
341+
'MailChimpShadowRoot' => array(
342+
'hook' => 'cleantalk_force_mailchimp_shadowroot_check',
343+
'setting' => 'forms__check_external',
344+
'ajax' => true
345+
),
341346
'BloomForms' => array(
342347
'hook' => 'bloom_subscribe',
343348
'setting' => 'forms__contact_forms_test',

inc/cleantalk-pluggable.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -714,6 +714,7 @@ function apbct_is_skip_request($ajax = false, $ajax_message_obj = array())
714714
'nasa_process_login', //Nasa login
715715
'leaky_paywall_validate_registration', //Leaky Paywall validation request
716716
'cleantalk_force_ajax_check', //Force ajax check has direct integration
717+
'cleantalk_force_mailchimp_shadowroot_check', // Mailchimp ShadowRoot has direct integration
717718
'cscf-submitform', // CSCF has direct integration
718719
'mailpoet', // Mailpoet has direct integration
719720
'wpcommunity_auth_login', // WPCommunity login

js/apbct-public-bundle.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/apbct-public-bundle_ext-protection.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/apbct-public-bundle_ext-protection_gathering.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/apbct-public-bundle_full-protection.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/apbct-public-bundle_full-protection_gathering.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/apbct-public-bundle_gathering.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/apbct-public-bundle_int-protection.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)