@elementor/editor-audits 4.4.0-beta2 → 4.4.0-beta3

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.mjs CHANGED
@@ -92,7 +92,7 @@ import { createFloatingPanel } from "@elementor/editor-floating-panels";
92
92
 
93
93
  // src/components/audit-panel.tsx
94
94
  import * as React21 from "react";
95
- import { getHostDocumentId as getHostDocumentId4 } from "@elementor/editor-elements";
95
+ import { getHostDocumentId as getHostDocumentId3 } from "@elementor/editor-elements";
96
96
  import { FloatingPanelBody, FloatingPanelFooter, FloatingPanelHeader } from "@elementor/editor-floating-panels";
97
97
  import { Box as Box15, Typography as Typography12 } from "@elementor/ui";
98
98
  import { __ as __17 } from "@wordpress/i18n";
@@ -109,16 +109,6 @@ var FEEDBACK_CLICKED_EVENT = "audit_feedback_clicked";
109
109
  var FEEDBACK_SENT_EVENT = "audit_feedback_sent";
110
110
  var FEEDBACK_CANCELLED_EVENT = "audit_feedback_cancelled";
111
111
  var FEEDBACK_CLOSED_EVENT = "audit_feedback_closed";
112
- var PANEL_VIEWED_EVENT = "page_audit_panel_viewed";
113
- var PANEL_CLOSED_EVENT = "page_audit_panel_closed";
114
- var RUN_STARTED_EVENT = "page_audit_run_started";
115
- var RUN_COMPLETED_EVENT = "page_audit_run_completed";
116
- var FINDING_CLICKED_EVENT = "page_audit_finding_clicked";
117
- var TRACKING_WINDOW_NAME = "page_audit";
118
- var TRACKING_TARGET_LOCATION = "panel";
119
- var TRACKING_LOCATION_L1 = "audit_panel";
120
- var FIRST_OPEN_MESSAGE_KEY = "page-audit-panel-opened";
121
- var AUDIT_ID_PREFIX = "audits/";
122
112
  var ALL_CATEGORIES = [
123
113
  "best-practices",
124
114
  "seo",
@@ -646,125 +636,13 @@ function persistReport(documentId, report) {
646
636
  setSessionStorageItem(getStorageKey(documentId), report);
647
637
  }
648
638
 
649
- // src/utils/tracking.ts
650
- import { getMixpanel } from "@elementor/events";
651
-
652
- // src/utils/tracking-names.ts
653
- function toTrackingSeverity(severity) {
654
- return severity === "info" ? "suggestion" : severity;
655
- }
656
- function toCheckName(auditId) {
657
- return auditId.replace(AUDIT_ID_PREFIX, "").replace(/-/g, "_");
658
- }
659
-
660
- // src/utils/build-run-summary.ts
661
- var SEVERITY_PRIORITY = ["error", "warning", "suggestion"];
662
- function buildRunSummary(report) {
663
- const requiredFixes = report.auditResults.filter(({ audit: audit25, result }) => result.status === "fail" && isScoredAudit(audit25)).map(({ audit: audit25 }) => ({ check: toCheckName(audit25.id), severity: toTrackingSeverity(audit25.severity) }));
664
- const countBySeverity = (severity) => requiredFixes.filter((fix) => fix.severity === severity).length;
665
- const highestSeverity = SEVERITY_PRIORITY.find((severity) => countBySeverity(severity) > 0);
666
- return {
667
- state: highestSeverity ?? "success",
668
- metadata: {
669
- score: report.overall,
670
- fix_count: requiredFixes.length,
671
- error_count: countBySeverity("error"),
672
- warning_count: countBySeverity("warning"),
673
- suggestion_count: countBySeverity("suggestion"),
674
- required_fixes: requiredFixes
675
- }
676
- };
677
- }
678
-
679
- // src/utils/tracking.ts
680
- var dispatch = (eventName, payload) => {
681
- getMixpanel().dispatchEvent?.(eventName, {
682
- window_name: TRACKING_WINDOW_NAME,
683
- target_location: TRACKING_TARGET_LOCATION,
684
- location_l1: TRACKING_LOCATION_L1,
685
- ...payload
686
- });
687
- };
688
- var trackPanelViewed = ({
689
- hasPriorReport,
690
- isFirstOpen
691
- }) => {
692
- dispatch(PANEL_VIEWED_EVENT, {
693
- interaction_type: "view",
694
- target_type: "panel",
695
- target_name: "page_audit_panel",
696
- interaction_result: "panel_viewed",
697
- metadata: { has_prior_report: hasPriorReport, is_first_open: isFirstOpen }
698
- });
699
- };
700
- var trackPanelClosed = () => {
701
- dispatch(PANEL_CLOSED_EVENT, {
702
- interaction_type: "click",
703
- target_type: "button",
704
- target_name: "close",
705
- interaction_result: "panel_closed"
706
- });
707
- };
708
- var trackRunStarted = (trigger) => {
709
- dispatch(RUN_STARTED_EVENT, {
710
- interaction_type: "click",
711
- target_type: "button",
712
- target_name: trigger,
713
- interaction_result: "run_initiated"
714
- });
715
- };
716
- var trackRunOutcome = (interactionResult, details) => {
717
- dispatch(RUN_COMPLETED_EVENT, {
718
- interaction_type: "view",
719
- target_type: "report",
720
- target_name: "audit_report",
721
- interaction_result: interactionResult,
722
- ...details
723
- });
724
- };
725
- var trackRunCompleted = (report) => {
726
- const { state, metadata } = buildRunSummary(report);
727
- trackRunOutcome("run_completed", { state, metadata });
728
- };
729
- var trackRunFailed = () => {
730
- trackRunOutcome("run_failed", {});
731
- };
732
- var trackFixWithApp = (audit25, violation, locationL2) => {
733
- if (violation.appInstalled === void 0) {
734
- return;
735
- }
736
- trackFindingClicked({
737
- audit: audit25,
738
- locationL2,
739
- actionType: "fix_with_app",
740
- interactionResult: "app_opened",
741
- appInstalled: violation.appInstalled
742
- });
743
- };
744
- var trackFindingClicked = (click) => {
745
- const { audit: audit25, locationL2, actionType, interactionResult } = click;
746
- dispatch(FINDING_CLICKED_EVENT, {
747
- interaction_type: "click",
748
- target_type: "row",
749
- target_name: "finding_row",
750
- action_type: actionType,
751
- target_value: toCheckName(audit25.id),
752
- interaction_result: interactionResult,
753
- state: toTrackingSeverity(audit25.severity),
754
- location_l2: locationL2,
755
- ...click.actionType === "fix_with_app" && {
756
- app_status: click.appInstalled ? "installed" : "not_installed"
757
- }
758
- });
759
- };
760
-
761
639
  // src/hooks/use-audit-report.ts
762
640
  function useAuditReport() {
763
641
  const status = useSelector2((state) => selectStatus(state));
764
642
  const report = useSelector2((state) => selectReport(state));
765
643
  const error = useSelector2((state) => selectError(state));
766
644
  const isStale = useSelector2((state) => selectIsStale(state));
767
- const dispatch3 = useDispatch();
645
+ const dispatch2 = useDispatch();
768
646
  const documentId = getHostDocumentId2() ?? 0;
769
647
  useEffect(() => {
770
648
  if (!documentId || report?.documentId === documentId) {
@@ -772,59 +650,31 @@ function useAuditReport() {
772
650
  }
773
651
  const persisted = getPersistedReport(documentId);
774
652
  if (persisted) {
775
- dispatch3(slice.actions.reportRestored(persisted));
653
+ dispatch2(slice.actions.reportRestored(persisted));
776
654
  } else if (report) {
777
- dispatch3(slice.actions.reportCleared());
655
+ dispatch2(slice.actions.reportCleared());
778
656
  }
779
- }, [documentId, report, dispatch3]);
780
- const run = async (documentIdToRun, trigger) => {
781
- dispatch3(slice.actions.runStarted());
782
- trackRunStarted(trigger);
657
+ }, [documentId, report, dispatch2]);
658
+ const run = async (documentIdToRun) => {
659
+ dispatch2(slice.actions.runStarted());
783
660
  try {
784
661
  const nextReport = await runPageAudit(documentIdToRun);
785
- dispatch3(slice.actions.runSucceeded(nextReport));
662
+ dispatch2(slice.actions.runSucceeded(nextReport));
786
663
  persistReport(documentIdToRun, nextReport);
787
- trackRunCompleted(nextReport);
788
664
  } catch (e) {
789
665
  if (e instanceof SessionExpiredError) {
790
- dispatch3(slice.actions.runAborted());
791
- trackRunFailed();
666
+ dispatch2(slice.actions.runAborted());
792
667
  return;
793
668
  }
794
- dispatch3(slice.actions.runFailed(e instanceof Error ? e.message : "Unknown error"));
795
- trackRunFailed();
669
+ dispatch2(slice.actions.runFailed(e instanceof Error ? e.message : "Unknown error"));
796
670
  }
797
671
  };
798
672
  return { status, report, error, isStale, run };
799
673
  }
800
674
 
801
- // src/hooks/use-track-panel-viewed.ts
802
- import { useEffect as useEffect2, useRef, useState } from "react";
803
- import { useCurrentUser, useSuppressedMessage } from "@elementor/editor-current-user";
804
- import { getHostDocumentId as getHostDocumentId3 } from "@elementor/editor-elements";
805
- import { __useSelector as useSelector3 } from "@elementor/store";
806
- function useTrackPanelViewed() {
807
- const { data: currentUser } = useCurrentUser();
808
- const [isFirstOpenMessageSuppressed, suppressFirstOpenMessage] = useSuppressedMessage(FIRST_OPEN_MESSAGE_KEY);
809
- const report = useSelector3((state) => selectReport(state));
810
- const [hasPriorReport] = useState(() => {
811
- const documentId = getHostDocumentId3() ?? 0;
812
- return Boolean(report) || Boolean(documentId && getPersistedReport(documentId));
813
- });
814
- const hasTracked = useRef(false);
815
- useEffect2(() => {
816
- if (!currentUser || hasTracked.current) {
817
- return;
818
- }
819
- hasTracked.current = true;
820
- trackPanelViewed({ hasPriorReport, isFirstOpen: !isFirstOpenMessageSuppressed });
821
- suppressFirstOpenMessage();
822
- }, [currentUser, hasPriorReport, isFirstOpenMessageSuppressed, suppressFirstOpenMessage]);
823
- }
824
-
825
675
  // src/components/audit-feedback.tsx
826
676
  import * as React2 from "react";
827
- import { useState as useState2 } from "react";
677
+ import { useState } from "react";
828
678
  import { useFloatingPanelZIndex } from "@elementor/editor-floating-panels";
829
679
  import { notify } from "@elementor/editor-notifications";
830
680
  import { isExperimentActive } from "@elementor/editor-v1-adapters";
@@ -863,9 +713,9 @@ var notifyError = () => notify({
863
713
  message: __2("Something went wrong. Please try sending your feedback again.", "elementor")
864
714
  });
865
715
  function AuditFeedback() {
866
- const [isOpen, setIsOpen] = useState2(false);
867
- const [feedbackText, setFeedbackText] = useState2("");
868
- const [isSubmitting, setIsSubmitting] = useState2(false);
716
+ const [isOpen, setIsOpen] = useState(false);
717
+ const [feedbackText, setFeedbackText] = useState("");
718
+ const [isSubmitting, setIsSubmitting] = useState(false);
869
719
  const { dispatchEvent: trackEvent = (...args) => void args } = useMixpanel();
870
720
  const panelZIndex = useFloatingPanelZIndex(AUDIT_PANEL_ID);
871
721
  if (!isExperimentActive(FEEDBACK_EXPERIMENT_NAME)) {
@@ -1004,7 +854,7 @@ function WelcomePage() {
1004
854
 
1005
855
  // src/components/report-shell.tsx
1006
856
  import * as React19 from "react";
1007
- import { useState as useState5 } from "react";
857
+ import { useState as useState4 } from "react";
1008
858
  import { Box as Box14 } from "@elementor/ui";
1009
859
 
1010
860
  // src/components/pages/category-page.tsx
@@ -1013,9 +863,9 @@ import { Box as Box8 } from "@elementor/ui";
1013
863
  import { __ as __11 } from "@wordpress/i18n";
1014
864
 
1015
865
  // src/hooks/use-single-expanded-card.ts
1016
- import { useState as useState3 } from "react";
866
+ import { useState as useState2 } from "react";
1017
867
  function useSingleExpandedCard(initialId = null) {
1018
- const [expandedId, setExpandedId] = useState3(initialId);
868
+ const [expandedId, setExpandedId] = useState2(initialId);
1019
869
  const toggle = (id) => {
1020
870
  setExpandedId((current) => current === id ? null : id);
1021
871
  };
@@ -1034,12 +884,12 @@ var CATEGORY_ICONS = {
1034
884
 
1035
885
  // src/components/status-section.tsx
1036
886
  import * as React6 from "react";
1037
- import { useState as useState4 } from "react";
887
+ import { useState as useState3 } from "react";
1038
888
  import { ChevronDownIcon } from "@elementor/icons";
1039
889
  import { Box as Box4, Chip, Collapse, IconButton as IconButton2 } from "@elementor/ui";
1040
890
  import { __ as __6 } from "@wordpress/i18n";
1041
891
  function StatusSection({ label, count, color = "default", defaultExpanded = false, children }) {
1042
- const [expanded, setExpanded] = useState4(defaultExpanded);
892
+ const [expanded, setExpanded] = useState3(defaultExpanded);
1043
893
  if (React6.Children.count(children) === 0) {
1044
894
  return null;
1045
895
  }
@@ -1105,27 +955,25 @@ function focusViolation(violation) {
1105
955
  if (violation.targetHint === "element-settings") {
1106
956
  runCommand("panel/editor/open");
1107
957
  }
1108
- return container ? "element_focused" : null;
958
+ return;
1109
959
  }
1110
960
  if (violation.externalUrl) {
1111
961
  window.open(violation.externalUrl, "_blank");
1112
- return "external_url_opened";
962
+ return;
1113
963
  }
1114
964
  if (violation.targetHint === "page-settings") {
1115
965
  openRoute("panel/page-settings/settings");
1116
- return "page_settings_opened";
966
+ return;
1117
967
  }
1118
968
  if (violation.targetHint === "site-settings") {
1119
969
  runCommand("panel/global/open");
1120
- return "site_settings_opened";
970
+ return;
1121
971
  }
1122
972
  if (violation.targetHint === "site-identity-settings") {
1123
973
  void runCommand("panel/global/open").then(() => {
1124
974
  openRoute("panel/global/settings-site-identity");
1125
975
  });
1126
- return "site_settings_opened";
1127
976
  }
1128
- return null;
1129
977
  }
1130
978
 
1131
979
  // src/utils/build-angie-prompt.ts
@@ -1154,7 +1002,7 @@ import { isAngieAvailable, sendPromptToAngie } from "@elementor/editor-mcp";
1154
1002
  import { AngieIcon } from "@elementor/icons";
1155
1003
  import { Button as Button3, IconButton as IconButton4, Tooltip as Tooltip2 } from "@elementor/ui";
1156
1004
  import { __ as __9 } from "@wordpress/i18n";
1157
- function FixViolationWithAngie({ audit: audit25, prompt, panelZIndex, variant = "icon" }) {
1005
+ function FixViolationWithAngie({ prompt, panelZIndex, variant = "icon" }) {
1158
1006
  const label = __9("Fix with Angie", "elementor");
1159
1007
  const href = `#angie-prompt=${encodeURIComponent(prompt)}`;
1160
1008
  const handleClick = (event) => {
@@ -1162,12 +1010,6 @@ function FixViolationWithAngie({ audit: audit25, prompt, panelZIndex, variant =
1162
1010
  event.preventDefault();
1163
1011
  if (isAngieAvailable()) {
1164
1012
  sendPromptToAngie(prompt);
1165
- trackFindingClicked({
1166
- audit: audit25,
1167
- locationL2: "issues",
1168
- actionType: "fix_with_angie",
1169
- interactionResult: "angie_prompt_sent"
1170
- });
1171
1013
  return;
1172
1014
  }
1173
1015
  window.dispatchEvent(
@@ -1216,18 +1058,11 @@ function SeverityIcon({ severity }) {
1216
1058
  import * as React10 from "react";
1217
1059
  import { WandIcon } from "@elementor/icons";
1218
1060
  import { Button as Button4 } from "@elementor/ui";
1219
- function ViolationCtaButton({
1220
- ctaLabel,
1221
- externalUrl,
1222
- variant = "outlined",
1223
- withIcon = false,
1224
- onOpen
1225
- }) {
1061
+ function ViolationCtaButton({ ctaLabel, externalUrl, variant = "outlined", withIcon = false }) {
1226
1062
  const handleClick = (event) => {
1227
1063
  event.stopPropagation();
1228
1064
  event.preventDefault();
1229
1065
  window.open(externalUrl, "_blank", "noopener");
1230
- onOpen?.();
1231
1066
  };
1232
1067
  return /* @__PURE__ */ React10.createElement(
1233
1068
  Button4,
@@ -1278,7 +1113,6 @@ function StatusIndicator({ audit: audit25, violations }) {
1278
1113
  return /* @__PURE__ */ React12.createElement(CheckIcon, { fontSize: "small", color: "success" });
1279
1114
  }
1280
1115
  function GuidanceAction({
1281
- audit: audit25,
1282
1116
  violation,
1283
1117
  sharedAngiePrompt,
1284
1118
  panelZIndex
@@ -1292,8 +1126,7 @@ function GuidanceAction({
1292
1126
  {
1293
1127
  ctaLabel: violation.ctaLabel,
1294
1128
  externalUrl: violation.externalUrl,
1295
- withIcon: true,
1296
- onOpen: () => trackFixWithApp(audit25, violation, "issues")
1129
+ withIcon: true
1297
1130
  }
1298
1131
  ), hasPrimaryCta && violation.secondaryCtaLabel && violation.secondaryCtaUrl && /* @__PURE__ */ React12.createElement(
1299
1132
  ViolationCtaButton,
@@ -1302,15 +1135,7 @@ function GuidanceAction({
1302
1135
  externalUrl: violation.secondaryCtaUrl,
1303
1136
  variant: "text"
1304
1137
  }
1305
- ), sharedAngiePrompt && /* @__PURE__ */ React12.createElement(
1306
- FixViolationWithAngie,
1307
- {
1308
- audit: audit25,
1309
- prompt: sharedAngiePrompt,
1310
- panelZIndex,
1311
- variant: "button"
1312
- }
1313
- ));
1138
+ ), sharedAngiePrompt && /* @__PURE__ */ React12.createElement(FixViolationWithAngie, { prompt: sharedAngiePrompt, panelZIndex, variant: "button" }));
1314
1139
  }
1315
1140
  function getSharedAngiePrompt(violations) {
1316
1141
  if (!violations || violations.length < 2) {
@@ -1330,20 +1155,9 @@ function ViolationRow({ audit: audit25, expanded, onToggleExpand, skipReason, vi
1330
1155
  const isGuidanceFocusable = !!primaryViolation;
1331
1156
  const panelZIndex = useFloatingPanelZIndex2(AUDIT_PANEL_ID);
1332
1157
  const sharedAngiePrompt = getSharedAngiePrompt(violations);
1333
- const viewIssue = (violation) => {
1334
- const interactionResult = focusViolation(violation);
1335
- if (interactionResult) {
1336
- trackFindingClicked({
1337
- audit: audit25,
1338
- locationL2: "issues",
1339
- actionType: "view_issue",
1340
- interactionResult
1341
- });
1342
- }
1343
- };
1344
1158
  const handleGuidanceClick = () => {
1345
1159
  if (isGuidanceFocusable && primaryViolation) {
1346
- viewIssue(primaryViolation);
1160
+ focusViolation(primaryViolation);
1347
1161
  }
1348
1162
  };
1349
1163
  return /* @__PURE__ */ React12.createElement(Box7, { sx: { borderBottom: 1, borderColor: "divider", paddingBlock: 0.5 } }, /* @__PURE__ */ React12.createElement(Box7, { sx: { display: "flex", alignItems: "center", gap: 0.5 } }, /* @__PURE__ */ React12.createElement(
@@ -1393,7 +1207,6 @@ function ViolationRow({ audit: audit25, expanded, onToggleExpand, skipReason, vi
1393
1207
  primaryViolation && /* @__PURE__ */ React12.createElement(
1394
1208
  GuidanceAction,
1395
1209
  {
1396
- audit: audit25,
1397
1210
  violation: primaryViolation,
1398
1211
  sharedAngiePrompt,
1399
1212
  panelZIndex
@@ -1411,8 +1224,8 @@ function ViolationRow({ audit: audit25, expanded, onToggleExpand, skipReason, vi
1411
1224
  key: idx,
1412
1225
  role: "button",
1413
1226
  tabIndex: 0,
1414
- onClick: () => viewIssue(violation),
1415
- onKeyDown: onKeyboardClick(() => viewIssue(violation)),
1227
+ onClick: () => focusViolation(violation),
1228
+ onKeyDown: onKeyboardClick(() => focusViolation(violation)),
1416
1229
  sx: {
1417
1230
  display: "flex",
1418
1231
  alignItems: "center",
@@ -1438,7 +1251,6 @@ function ViolationRow({ audit: audit25, expanded, onToggleExpand, skipReason, vi
1438
1251
  /* @__PURE__ */ React12.createElement(
1439
1252
  FixViolationWithAngie,
1440
1253
  {
1441
- audit: audit25,
1442
1254
  prompt: violation.angiePrompt ?? buildAngiePrompt(angiePromptContext),
1443
1255
  panelZIndex
1444
1256
  }
@@ -1702,12 +1514,8 @@ function Promotions({ report }) {
1702
1514
  ctaLabel: config.ctaLabel,
1703
1515
  ctaDisabled: !ctaUrl,
1704
1516
  onCtaClick: () => {
1705
- if (!ctaUrl) {
1706
- return;
1707
- }
1708
- window.open(ctaUrl, "_blank", "noopener");
1709
- if (run.result.status === "fail") {
1710
- trackFixWithApp(run.audit, run.result.violations[0], "overview");
1517
+ if (ctaUrl) {
1518
+ window.open(ctaUrl, "_blank");
1711
1519
  }
1712
1520
  }
1713
1521
  }
@@ -1760,7 +1568,7 @@ function isCategoryPage(page) {
1760
1568
  return typeof page === "object" && "category" in page;
1761
1569
  }
1762
1570
  function ReportShell({ report }) {
1763
- const [activePage, setActivePage] = useState5("overview");
1571
+ const [activePage, setActivePage] = useState4("overview");
1764
1572
  const openCategory = (category) => setActivePage({ category });
1765
1573
  const backToOverview = () => setActivePage("overview");
1766
1574
  return /* @__PURE__ */ React19.createElement(Box14, { sx: { flex: 1, minHeight: 0, overflowY: "auto" } }, activePage === "overview" && /* @__PURE__ */ React19.createElement(OverviewPage, { report, onCategoryClick: openCategory }), isCategoryPage(activePage) && /* @__PURE__ */ React19.createElement(CategoryPage, { category: activePage.category, report, onBack: backToOverview }));
@@ -1798,9 +1606,8 @@ function RescanButton({ hasScanned, isStale, disabled, onClick }) {
1798
1606
  // src/components/audit-panel.tsx
1799
1607
  function AuditPanel() {
1800
1608
  const { status, report, error, isStale, run } = useAuditReport();
1801
- useTrackPanelViewed();
1802
- const hostDocumentId = getHostDocumentId4() ?? 0;
1803
- const onRun = () => run(hostDocumentId, report ? "rescan" : "run_audit");
1609
+ const hostDocumentId = getHostDocumentId3() ?? 0;
1610
+ const onRun = () => run(hostDocumentId);
1804
1611
  const lastScanLabel = report ? new Date(report.runAt).toLocaleTimeString() : null;
1805
1612
  return /* @__PURE__ */ React21.createElement(React21.Fragment, null, /* @__PURE__ */ React21.createElement(
1806
1613
  FloatingPanelHeader,
@@ -1808,8 +1615,7 @@ function AuditPanel() {
1808
1615
  panelId: AUDIT_PANEL_ID,
1809
1616
  title: __17("Page Audit", "elementor"),
1810
1617
  badge: __17("Beta", "elementor"),
1811
- titleVariant: "subtitle2",
1812
- onClose: trackPanelClosed
1618
+ titleVariant: "subtitle2"
1813
1619
  }
1814
1620
  ), /* @__PURE__ */ React21.createElement(
1815
1621
  FloatingPanelBody,
@@ -1926,8 +1732,7 @@ var audit2 = {
1926
1732
  externalUrl: isReady ? ctx.pageContext.ally_accessibility_statement_url : ctx.pageContext.ally_plugin_url,
1927
1733
  ctaLabel: __20("Create", "elementor"),
1928
1734
  secondaryCtaLabel: __20("Learn more", "elementor"),
1929
- secondaryCtaUrl: "https://elementor.com/help/start-using-ally/#statement",
1930
- appInstalled: isReady
1735
+ secondaryCtaUrl: "https://elementor.com/help/start-using-ally/#statement"
1931
1736
  }
1932
1737
  ]
1933
1738
  };
@@ -1970,8 +1775,7 @@ var audit3 = {
1970
1775
  auditId: audit3.id,
1971
1776
  label: __21("No accessibility widget is active on this site.", "elementor"),
1972
1777
  externalUrl: isReady ? ctx.pageContext.ally_widget_settings_url : ctx.pageContext.ally_plugin_url,
1973
- ctaLabel: __21("Activate", "elementor"),
1974
- appInstalled: isReady
1778
+ ctaLabel: __21("Activate", "elementor")
1975
1779
  }
1976
1780
  ]
1977
1781
  };
@@ -2002,8 +1806,7 @@ var audit4 = {
2002
1806
  auditId: audit4.id,
2003
1807
  label: __22("Cookiez plugin is not installed or active.", "elementor"),
2004
1808
  externalUrl: ctx.pageContext.cookiez_plugin_url,
2005
- ctaLabel: __22("Set up cookie consent", "elementor"),
2006
- appInstalled: ctx.pageContext.cookiez_plugin_active
1809
+ ctaLabel: __22("Set up cookie consent", "elementor")
2007
1810
  }
2008
1811
  ]
2009
1812
  };
@@ -2189,7 +1992,6 @@ var audit8 = {
2189
1992
  auditId: audit8.id,
2190
1993
  label,
2191
1994
  ctaLabel: __26("Enable", "elementor"),
2192
- appInstalled: true,
2193
1995
  externalUrl: ctx.pageContext.cookiez_consent_mode_settings_url
2194
1996
  }
2195
1997
  ]
@@ -2533,8 +2335,7 @@ var audit11 = {
2533
2335
  targetHint: "element-settings",
2534
2336
  label: __29("Image is missing alt text.", "elementor"),
2535
2337
  externalUrl: isReady ? ctx.pageContext.ally_scan_url : ctx.pageContext.ally_plugin_url,
2536
- ctaLabel: __29("Fix with Ally", "elementor"),
2537
- appInstalled: isReady
2338
+ ctaLabel: __29("Fix with Ally", "elementor")
2538
2339
  });
2539
2340
  }
2540
2341
  });
@@ -2583,8 +2384,7 @@ var audit12 = {
2583
2384
  targetHint: "element-settings",
2584
2385
  label: __30("Image isn't served in a modern format like WebP or AVIF.", "elementor"),
2585
2386
  externalUrl: isReady ? ctx.pageContext.image_optimization_settings_url : ctx.pageContext.image_optimization_plugin_url,
2586
- ctaLabel: __30("Optimize all", "elementor"),
2587
- appInstalled: isReady
2387
+ ctaLabel: __30("Optimize all", "elementor")
2588
2388
  }));
2589
2389
  return violations.length === 0 ? { status: "pass" } : { status: "fail", violations, metadata: { inefficientImageFormatCount } };
2590
2390
  }
@@ -2638,8 +2438,7 @@ var audit13 = {
2638
2438
  kb
2639
2439
  ),
2640
2440
  externalUrl: isReady ? ctx.pageContext.image_optimization_settings_url : ctx.pageContext.image_optimization_plugin_url,
2641
- ctaLabel: __31("Optimize all", "elementor"),
2642
- appInstalled: isReady
2441
+ ctaLabel: __31("Optimize all", "elementor")
2643
2442
  }));
2644
2443
  return violations.length === 0 ? { status: "pass" } : { status: "fail", violations, metadata: { oversizedImageCount } };
2645
2444
  }
@@ -3080,8 +2879,7 @@ var audit22 = {
3080
2879
  {
3081
2880
  auditId: audit22.id,
3082
2881
  label: __40("This page has not been scanned for cookies yet.", "elementor"),
3083
- externalUrl: isReady ? ctx.pageContext.cookiez_scan_url : ctx.pageContext.cookiez_plugin_action_url,
3084
- appInstalled: isReady
2882
+ externalUrl: isReady ? ctx.pageContext.cookiez_scan_url : ctx.pageContext.cookiez_plugin_action_url
3085
2883
  }
3086
2884
  ]
3087
2885
  };
@@ -3209,12 +3007,12 @@ function registerAllAudits() {
3209
3007
 
3210
3008
  // src/sync-report-staleness.ts
3211
3009
  import { __privateListenTo as listenTo, commandEndEvent } from "@elementor/editor-v1-adapters";
3212
- import { __dispatch as dispatch2 } from "@elementor/store";
3010
+ import { __dispatch as dispatch } from "@elementor/store";
3213
3011
  function syncReportStaleness() {
3214
3012
  listenTo(commandEndEvent("document/save/set-is-modified"), (e) => {
3215
3013
  const event = e;
3216
3014
  if (event.args?.status) {
3217
- dispatch2(slice.actions.reportStale());
3015
+ dispatch(slice.actions.reportStale());
3218
3016
  }
3219
3017
  });
3220
3018
  }