@elementor/editor-audits 4.4.0-1102 → 4.4.0-1104

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
@@ -39,6 +39,7 @@ type AuditViolation = {
39
39
  label: string;
40
40
  detail?: string;
41
41
  angieFix?: boolean;
42
+ angiePrompt?: string;
42
43
  ctaLabel?: string;
43
44
  };
44
45
  type PageContextResponse = {
package/dist/index.d.ts CHANGED
@@ -39,6 +39,7 @@ type AuditViolation = {
39
39
  label: string;
40
40
  detail?: string;
41
41
  angieFix?: boolean;
42
+ angiePrompt?: string;
42
43
  ctaLabel?: string;
43
44
  };
44
45
  type PageContextResponse = {
package/dist/index.js CHANGED
@@ -1064,7 +1064,12 @@ function ViolationRow({ audit: audit23, skipReason, violations }) {
1064
1064
  },
1065
1065
  /* @__PURE__ */ React11.createElement(ViolationIcon, { violation, widgetIcon }),
1066
1066
  /* @__PURE__ */ React11.createElement(import_ui10.Box, { sx: { flex: 1 } }, /* @__PURE__ */ React11.createElement(import_ui10.Typography, { variant: "caption" }, rowLabel), violation.detail && /* @__PURE__ */ React11.createElement(import_ui10.Typography, { variant: "caption", color: "text.secondary" }, violation.detail)),
1067
- violation.angieFix && /* @__PURE__ */ React11.createElement(FixViolationWithAngie, { prompt: buildAngiePrompt(rowLabel) }),
1067
+ violation.angieFix && /* @__PURE__ */ React11.createElement(
1068
+ FixViolationWithAngie,
1069
+ {
1070
+ prompt: violation.angiePrompt ?? buildAngiePrompt(rowLabel)
1071
+ }
1072
+ ),
1068
1073
  violation.ctaLabel && violation.externalUrl ? /* @__PURE__ */ React11.createElement(
1069
1074
  ViolationCtaButton,
1070
1075
  {
@@ -2586,7 +2591,11 @@ var audit14 = {
2586
2591
  auditId: audit14.id,
2587
2592
  label: (0, import_i18n38.__)("Page has no title.", "elementor"),
2588
2593
  targetHint: "page-settings",
2589
- angieFix: true
2594
+ angieFix: true,
2595
+ angiePrompt: (0, import_i18n38.__)(
2596
+ "Based on this page's contents, generate a title for this page.",
2597
+ "elementor"
2598
+ )
2590
2599
  }
2591
2600
  ]
2592
2601
  };