@elementor/editor-audits 4.3.2 → 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';
@@ -39,13 +40,17 @@ type AuditViolation = {
39
40
  label: string;
40
41
  detail?: string;
41
42
  angieFix?: boolean;
43
+ angiePrompt?: string;
42
44
  ctaLabel?: string;
45
+ secondaryCtaLabel?: string;
46
+ secondaryCtaUrl?: string;
43
47
  };
44
48
  type PageContextResponse = {
45
49
  post_title: string | null;
46
50
  post_excerpt: string | null;
47
51
  featured_image_id: number | null;
48
- 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, {
49
54
  width: number;
50
55
  height: number;
51
56
  filesize_bytes: number;
@@ -61,6 +66,9 @@ type PageContextResponse = {
61
66
  privacy_settings_url: string;
62
67
  ally_plugin_active: boolean;
63
68
  ally_plugin_url: string;
69
+ ally_accessibility_statement_created: boolean;
70
+ ally_accessibility_statement_url: string;
71
+ ally_widget_settings_url: string;
64
72
  cookiez_plugin_active: boolean;
65
73
  cookiez_plugin_url: string;
66
74
  cookiez_plugin_installed: boolean;
@@ -108,6 +116,7 @@ type AuditContext = {
108
116
  elements: ElementsModelSnapshot;
109
117
  pageContext: PageContextResponse;
110
118
  kit: KitSnapshot;
119
+ renderedHtml: string | null;
111
120
  };
112
121
  type PageAuditReport = {
113
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';
@@ -39,13 +40,17 @@ type AuditViolation = {
39
40
  label: string;
40
41
  detail?: string;
41
42
  angieFix?: boolean;
43
+ angiePrompt?: string;
42
44
  ctaLabel?: string;
45
+ secondaryCtaLabel?: string;
46
+ secondaryCtaUrl?: string;
43
47
  };
44
48
  type PageContextResponse = {
45
49
  post_title: string | null;
46
50
  post_excerpt: string | null;
47
51
  featured_image_id: number | null;
48
- 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, {
49
54
  width: number;
50
55
  height: number;
51
56
  filesize_bytes: number;
@@ -61,6 +66,9 @@ type PageContextResponse = {
61
66
  privacy_settings_url: string;
62
67
  ally_plugin_active: boolean;
63
68
  ally_plugin_url: string;
69
+ ally_accessibility_statement_created: boolean;
70
+ ally_accessibility_statement_url: string;
71
+ ally_widget_settings_url: string;
64
72
  cookiez_plugin_active: boolean;
65
73
  cookiez_plugin_url: string;
66
74
  cookiez_plugin_installed: boolean;
@@ -108,6 +116,7 @@ type AuditContext = {
108
116
  elements: ElementsModelSnapshot;
109
117
  pageContext: PageContextResponse;
110
118
  kit: KitSnapshot;
119
+ renderedHtml: string | null;
111
120
  };
112
121
  type PageAuditReport = {
113
122
  documentId: number;