@yoast/ai-insights-client 1.4.5 → 1.4.7
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.
|
@@ -9479,8 +9479,8 @@ var Xa = function(t) {
|
|
|
9479
9479
|
] });
|
|
9480
9480
|
}, Vg = function(t) {
|
|
9481
9481
|
var n = t.keywords, r = t.badgeClassName;
|
|
9482
|
-
return /* @__PURE__ */ v("div", { className: "yst-flex yst-flex-wrap yst-gap-2", children: n.map(function(i) {
|
|
9483
|
-
return i && /* @__PURE__ */ v(Wn, { className: r, children: i },
|
|
9482
|
+
return /* @__PURE__ */ v("div", { className: "yst-flex yst-flex-wrap yst-gap-2", children: n.map(function(i, s) {
|
|
9483
|
+
return i && /* @__PURE__ */ v(Wn, { className: r, children: i }, s);
|
|
9484
9484
|
}) });
|
|
9485
9485
|
}, kb = function(t) {
|
|
9486
9486
|
var n, r, i, s, o = t.title, a = o === void 0 ? "Sentiment" : o, l = t.tooltip, c = l === void 0 ? "" : l, u = t.data, d = u == null ? void 0 : u.brandName, f = u == null || (n = u.positivityPercentage) === null || n === void 0 ? void 0 : n.value, h = u == null || (r = u.positivityPercentage) === null || r === void 0 || (r = r.previous) === null || r === void 0 ? void 0 : r.difference, g = u == null || (i = u.keywords) === null || i === void 0 ? void 0 : i.positive, y = u == null || (s = u.keywords) === null || s === void 0 ? void 0 : s.negative, m = !u || f === void 0 && h === void 0;
|
|
@@ -9805,7 +9805,7 @@ function qA(e, t) {
|
|
|
9805
9805
|
return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));
|
|
9806
9806
|
}
|
|
9807
9807
|
var Co = Ja(Qg || (Qg = qA(["md:yst-hidden yst-mr-2 yst-font-medium yst-text-slate-400 yst-inline-flex yst-w-20"]))), Zg = function(t) {
|
|
9808
|
-
var n = t.data, r = t.totalQueries, i = t.isLoading, s = i === void 0 ? !1 : i, o = t.isFirstScan, a = o === void 0 ? !1 : o, l = s || !n, c = n || {}, u = c.rank, d = c.url, f = c.rootDomain, h = c.category, g = c.impact, y = c.numberOfMentions, m = y == null ? void 0 : y.value, p = y == null ? void 0 : y.previous, b = typeof (p == null ? void 0 : p.difference) == "number" ? p.difference :
|
|
9808
|
+
var n = t.data, r = t.totalQueries, i = t.isLoading, s = i === void 0 ? !1 : i, o = t.isFirstScan, a = o === void 0 ? !1 : o, l = s || !n, c = n || {}, u = c.rank, d = c.url, f = c.rootDomain, h = c.category, g = c.impact, y = c.numberOfMentions, m = y == null ? void 0 : y.value, p = y == null ? void 0 : y.previous, b = typeof (p == null ? void 0 : p.difference) == "number" ? p.difference : m;
|
|
9809
9809
|
return /* @__PURE__ */ M("tr", { className: "yst-flex yst-flex-col md:yst-table-row", children: [
|
|
9810
9810
|
/* @__PURE__ */ M(
|
|
9811
9811
|
xe.Cell,
|
|
@@ -20919,10 +20919,10 @@ function $4() {
|
|
|
20919
20919
|
return Re;
|
|
20920
20920
|
var $e = new Date(ge.finishedAt), De = new Date(Re.finishedAt);
|
|
20921
20921
|
return $e > De ? ge : Re;
|
|
20922
|
-
}, void 0) : void 0, L = N == null || (t = N.scores) === null || t === void 0 ? void 0 : t.raw, D = N == null || (n = N.scores) === null || n === void 0 ? void 0 : n.standardized, R = 20, se = (r = N == null || (i = N.mentions) === null || i === void 0 || (i = i.mentionedInNumberOfQueries) === null || i === void 0 ? void 0 : i.value) !== null && r !== void 0 ? r : 0, ce = N == null || (s = N.scores) === null || s === void 0 || (s = s.standardized) === null || s === void 0 || (s = s.
|
|
20922
|
+
}, void 0) : void 0, L = N == null || (t = N.scores) === null || t === void 0 ? void 0 : t.raw, D = N == null || (n = N.scores) === null || n === void 0 ? void 0 : n.standardized, R = 20, se = (r = N == null || (i = N.mentions) === null || i === void 0 || (i = i.mentionedInNumberOfQueries) === null || i === void 0 ? void 0 : i.value) !== null && r !== void 0 ? r : 0, ce = N == null || (s = N.scores) === null || s === void 0 || (s = s.standardized) === null || s === void 0 || (s = s.mentions) === null || s === void 0 || (s = s.previous) === null || s === void 0 ? void 0 : s.difference, j = typeof ce == "number" ? ce / R : void 0, Q = (o = N == null || (a = N.citations) === null || a === void 0 || (a = a.total) === null || a === void 0 ? void 0 : a.value) !== null && o !== void 0 ? o : 0, te = N == null || (l = N.rankings) === null || l === void 0 || (l = l.list) === null || l === void 0 ? void 0 : l.find(function(Re) {
|
|
20923
20923
|
var ge;
|
|
20924
20924
|
return ((ge = Re.brand) === null || ge === void 0 ? void 0 : ge.isSelf) === !0;
|
|
20925
|
-
}), oe = (c = te == null || (u = te.rank) === null || u === void 0 ? void 0 : u.value) !== null && c !== void 0 ? c : null, F = te == null || (d = te.rank) === null || d === void 0 || (d = d.previous) === null || d === void 0 ? void 0 : d.difference, W = typeof F == "number" ? F / R : void 0, q = (f = D == null || (h = D.visibility) === null || h === void 0 ? void 0 : h.value) !== null && f !== void 0 ? f : 0, le = D == null || (g = D.visibility) === null || g === void 0 || (g = g.previous) === null || g === void 0 ? void 0 : g.value, K = (y = D == null || (m = D.ranking) === null || m === void 0 ? void 0 : m.value) !== null && y !== void 0 ? y : 0, de = (p = D == null || (b = D.sentiment) === null || b === void 0 ? void 0 : b.value) !== null && p !== void 0 ? p : 0, fe = (w = D == null || (C = D.
|
|
20925
|
+
}), oe = (c = te == null || (u = te.rank) === null || u === void 0 ? void 0 : u.value) !== null && c !== void 0 ? c : null, F = te == null || (d = te.rank) === null || d === void 0 || (d = d.previous) === null || d === void 0 ? void 0 : d.difference, W = typeof F == "number" ? F / R : void 0, q = (f = D == null || (h = D.visibility) === null || h === void 0 ? void 0 : h.value) !== null && f !== void 0 ? f : 0, le = D == null || (g = D.visibility) === null || g === void 0 || (g = g.previous) === null || g === void 0 ? void 0 : g.value, K = (y = D == null || (m = D.ranking) === null || m === void 0 ? void 0 : m.value) !== null && y !== void 0 ? y : 0, de = (p = D == null || (b = D.sentiment) === null || b === void 0 ? void 0 : b.value) !== null && p !== void 0 ? p : 0, fe = (w = D == null || (C = D.mentions) === null || C === void 0 ? void 0 : C.value) !== null && w !== void 0 ? w : 0, Fe = {
|
|
20926
20926
|
labels: ["Mentions", "Ranking", "Citations", "Sentiment"],
|
|
20927
20927
|
datasets: [{
|
|
20928
20928
|
data: [fe, K, Q, de],
|