@elementor/editor-audits 4.4.0-1105 → 4.4.0-1107

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
@@ -41,12 +41,15 @@ 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;
47
49
  post_excerpt: string | null;
48
50
  featured_image_id: number | null;
49
- image_sizes: Record<number, {
51
+ /** Keyed by the composite `buildImageSizeKey` result (`"{attachmentId}:{size}"`), since one attachment can resolve to different files at different sizes. */
52
+ image_sizes: Record<string, {
50
53
  width: number;
51
54
  height: number;
52
55
  filesize_bytes: number;
@@ -62,6 +65,9 @@ type PageContextResponse = {
62
65
  privacy_settings_url: string;
63
66
  ally_plugin_active: boolean;
64
67
  ally_plugin_url: string;
68
+ ally_accessibility_statement_created: boolean;
69
+ ally_accessibility_statement_url: string;
70
+ ally_widget_settings_url: string;
65
71
  cookiez_plugin_active: boolean;
66
72
  cookiez_plugin_url: string;
67
73
  cookiez_plugin_installed: boolean;
@@ -109,6 +115,7 @@ type AuditContext = {
109
115
  elements: ElementsModelSnapshot;
110
116
  pageContext: PageContextResponse;
111
117
  kit: KitSnapshot;
118
+ renderedHtml: string | null;
112
119
  };
113
120
  type PageAuditReport = {
114
121
  documentId: number;
package/dist/index.d.ts CHANGED
@@ -41,12 +41,15 @@ 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;
47
49
  post_excerpt: string | null;
48
50
  featured_image_id: number | null;
49
- image_sizes: Record<number, {
51
+ /** Keyed by the composite `buildImageSizeKey` result (`"{attachmentId}:{size}"`), since one attachment can resolve to different files at different sizes. */
52
+ image_sizes: Record<string, {
50
53
  width: number;
51
54
  height: number;
52
55
  filesize_bytes: number;
@@ -62,6 +65,9 @@ type PageContextResponse = {
62
65
  privacy_settings_url: string;
63
66
  ally_plugin_active: boolean;
64
67
  ally_plugin_url: string;
68
+ ally_accessibility_statement_created: boolean;
69
+ ally_accessibility_statement_url: string;
70
+ ally_widget_settings_url: string;
65
71
  cookiez_plugin_active: boolean;
66
72
  cookiez_plugin_url: string;
67
73
  cookiez_plugin_installed: boolean;
@@ -109,6 +115,7 @@ type AuditContext = {
109
115
  elements: ElementsModelSnapshot;
110
116
  pageContext: PageContextResponse;
111
117
  kit: KitSnapshot;
118
+ renderedHtml: string | null;
112
119
  };
113
120
  type PageAuditReport = {
114
121
  documentId: number;