@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 +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +11 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +13 -13
- package/src/audits/page-title.ts +4 -0
- package/src/components/violation-row.tsx +3 -1
- package/src/types.ts +1 -0
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
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(
|
|
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
|
};
|