@elementor/editor-audits 4.3.3 → 4.3.4

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 CHANGED
@@ -20,6 +20,7 @@ type AuditRun = {
20
20
  type AuditFailMetadata = {
21
21
  missingAltImageCount?: number;
22
22
  oversizedImageCount?: number;
23
+ inefficientImageFormatCount?: number;
23
24
  };
24
25
  type AuditResult = {
25
26
  status: 'pass';
@@ -41,12 +42,15 @@ type AuditViolation = {
41
42
  angieFix?: boolean;
42
43
  angiePrompt?: string;
43
44
  ctaLabel?: string;
45
+ secondaryCtaLabel?: string;
46
+ secondaryCtaUrl?: string;
44
47
  };
45
48
  type PageContextResponse = {
46
49
  post_title: string | null;
47
50
  post_excerpt: string | null;
48
51
  featured_image_id: number | null;
49
- image_sizes: Record<number, {
52
+ /** Keyed by the composite `buildImageSizeKey` result (`"{attachmentId}:{size}"`), since one attachment can resolve to different files at different sizes. */
53
+ image_sizes: Record<string, {
50
54
  width: number;
51
55
  height: number;
52
56
  filesize_bytes: number;
@@ -62,6 +66,9 @@ type PageContextResponse = {
62
66
  privacy_settings_url: string;
63
67
  ally_plugin_active: boolean;
64
68
  ally_plugin_url: string;
69
+ ally_accessibility_statement_created: boolean;
70
+ ally_accessibility_statement_url: string;
71
+ ally_widget_settings_url: string;
65
72
  cookiez_plugin_active: boolean;
66
73
  cookiez_plugin_url: string;
67
74
  cookiez_plugin_installed: boolean;
@@ -109,6 +116,7 @@ type AuditContext = {
109
116
  elements: ElementsModelSnapshot;
110
117
  pageContext: PageContextResponse;
111
118
  kit: KitSnapshot;
119
+ renderedHtml: string | null;
112
120
  };
113
121
  type PageAuditReport = {
114
122
  documentId: number;
package/dist/index.d.ts CHANGED
@@ -20,6 +20,7 @@ type AuditRun = {
20
20
  type AuditFailMetadata = {
21
21
  missingAltImageCount?: number;
22
22
  oversizedImageCount?: number;
23
+ inefficientImageFormatCount?: number;
23
24
  };
24
25
  type AuditResult = {
25
26
  status: 'pass';
@@ -41,12 +42,15 @@ type AuditViolation = {
41
42
  angieFix?: boolean;
42
43
  angiePrompt?: string;
43
44
  ctaLabel?: string;
45
+ secondaryCtaLabel?: string;
46
+ secondaryCtaUrl?: string;
44
47
  };
45
48
  type PageContextResponse = {
46
49
  post_title: string | null;
47
50
  post_excerpt: string | null;
48
51
  featured_image_id: number | null;
49
- image_sizes: Record<number, {
52
+ /** Keyed by the composite `buildImageSizeKey` result (`"{attachmentId}:{size}"`), since one attachment can resolve to different files at different sizes. */
53
+ image_sizes: Record<string, {
50
54
  width: number;
51
55
  height: number;
52
56
  filesize_bytes: number;
@@ -62,6 +66,9 @@ type PageContextResponse = {
62
66
  privacy_settings_url: string;
63
67
  ally_plugin_active: boolean;
64
68
  ally_plugin_url: string;
69
+ ally_accessibility_statement_created: boolean;
70
+ ally_accessibility_statement_url: string;
71
+ ally_widget_settings_url: string;
65
72
  cookiez_plugin_active: boolean;
66
73
  cookiez_plugin_url: string;
67
74
  cookiez_plugin_installed: boolean;
@@ -109,6 +116,7 @@ type AuditContext = {
109
116
  elements: ElementsModelSnapshot;
110
117
  pageContext: PageContextResponse;
111
118
  kit: KitSnapshot;
119
+ renderedHtml: string | null;
112
120
  };
113
121
  type PageAuditReport = {
114
122
  documentId: number;