@elementor/editor-audits 4.4.0-1106 → 4.4.0-1108
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +343 -255
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +340 -252
- package/dist/index.mjs.map +1 -1
- package/package.json +15 -15
- package/src/audits/accessibility-statement.ts +39 -0
- package/src/audits/accessibility-widget.ts +41 -0
- package/src/audits/google-consent-mode.ts +4 -7
- package/src/components/violation-cta-button.tsx +3 -2
- package/src/components/violation-row.tsx +13 -4
- package/src/register-audits.ts +4 -0
- package/src/runner.ts +6 -2
- package/src/types.ts +6 -0
- package/src/utils/scan-accessibility-widgets.ts +7 -0
package/dist/index.d.mts
CHANGED
|
@@ -41,6 +41,8 @@ type AuditViolation = {
|
|
|
41
41
|
angieFix?: boolean;
|
|
42
42
|
angiePrompt?: string;
|
|
43
43
|
ctaLabel?: string;
|
|
44
|
+
secondaryCtaLabel?: string;
|
|
45
|
+
secondaryCtaUrl?: string;
|
|
44
46
|
};
|
|
45
47
|
type PageContextResponse = {
|
|
46
48
|
post_title: string | null;
|
|
@@ -63,6 +65,9 @@ type PageContextResponse = {
|
|
|
63
65
|
privacy_settings_url: string;
|
|
64
66
|
ally_plugin_active: boolean;
|
|
65
67
|
ally_plugin_url: string;
|
|
68
|
+
ally_accessibility_statement_created: boolean;
|
|
69
|
+
ally_accessibility_statement_url: string;
|
|
70
|
+
ally_widget_settings_url: string;
|
|
66
71
|
cookiez_plugin_active: boolean;
|
|
67
72
|
cookiez_plugin_url: string;
|
|
68
73
|
cookiez_plugin_installed: boolean;
|
|
@@ -110,6 +115,7 @@ type AuditContext = {
|
|
|
110
115
|
elements: ElementsModelSnapshot;
|
|
111
116
|
pageContext: PageContextResponse;
|
|
112
117
|
kit: KitSnapshot;
|
|
118
|
+
renderedHtml: string | null;
|
|
113
119
|
};
|
|
114
120
|
type PageAuditReport = {
|
|
115
121
|
documentId: number;
|
package/dist/index.d.ts
CHANGED
|
@@ -41,6 +41,8 @@ type AuditViolation = {
|
|
|
41
41
|
angieFix?: boolean;
|
|
42
42
|
angiePrompt?: string;
|
|
43
43
|
ctaLabel?: string;
|
|
44
|
+
secondaryCtaLabel?: string;
|
|
45
|
+
secondaryCtaUrl?: string;
|
|
44
46
|
};
|
|
45
47
|
type PageContextResponse = {
|
|
46
48
|
post_title: string | null;
|
|
@@ -63,6 +65,9 @@ type PageContextResponse = {
|
|
|
63
65
|
privacy_settings_url: string;
|
|
64
66
|
ally_plugin_active: boolean;
|
|
65
67
|
ally_plugin_url: string;
|
|
68
|
+
ally_accessibility_statement_created: boolean;
|
|
69
|
+
ally_accessibility_statement_url: string;
|
|
70
|
+
ally_widget_settings_url: string;
|
|
66
71
|
cookiez_plugin_active: boolean;
|
|
67
72
|
cookiez_plugin_url: string;
|
|
68
73
|
cookiez_plugin_installed: boolean;
|
|
@@ -110,6 +115,7 @@ type AuditContext = {
|
|
|
110
115
|
elements: ElementsModelSnapshot;
|
|
111
116
|
pageContext: PageContextResponse;
|
|
112
117
|
kit: KitSnapshot;
|
|
118
|
+
renderedHtml: string | null;
|
|
113
119
|
};
|
|
114
120
|
type PageAuditReport = {
|
|
115
121
|
documentId: number;
|