@yoast/ai-insights-client 1.4.103 → 1.4.105

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.
@@ -6259,11 +6259,11 @@ var pw = function() {
6259
6259
  var r = yw(e);
6260
6260
  return dr(r);
6261
6261
  }, h0 = Ic(void 0), gw = function(e) {
6262
- var n, r, i, a, s, o, l = e.children, u = e.brandId, c = e.analysisId, d = e.model, h = e.hostAppProps, f = h === void 0 ? {} : h, y = _s("/brands/:brandId"), m = _s("/brands/:brandId/*"), g = _s("/brands/:brandId/analysis/:analysisId"), v = _s("/brands/:brandId/analysis/:analysisId/*"), S = (g == null || (n = g.params) === null || n === void 0 ? void 0 : n.brandId) || (v == null || (r = v.params) === null || r === void 0 ? void 0 : r.brandId) || (m == null || (i = m.params) === null || i === void 0 ? void 0 : i.brandId) || (y == null || (a = y.params) === null || a === void 0 ? void 0 : a.brandId), E = (g == null || (s = g.params) === null || s === void 0 ? void 0 : s.analysisId) || (v == null || (o = v.params) === null || o === void 0 ? void 0 : o.analysisId), O = nt(function() {
6262
+ var n, r, i, a, s, o, l = e.children, u = e.brandId, c = e.analysisId, d = e.aiProvider, h = e.hostAppProps, f = h === void 0 ? {} : h, y = _s("/brands/:brandId"), m = _s("/brands/:brandId/*"), g = _s("/brands/:brandId/analysis/:analysisId"), v = _s("/brands/:brandId/analysis/:analysisId/*"), S = (g == null || (n = g.params) === null || n === void 0 ? void 0 : n.brandId) || (v == null || (r = v.params) === null || r === void 0 ? void 0 : r.brandId) || (m == null || (i = m.params) === null || i === void 0 ? void 0 : i.brandId) || (y == null || (a = y.params) === null || a === void 0 ? void 0 : a.brandId), E = (g == null || (s = g.params) === null || s === void 0 ? void 0 : s.analysisId) || (v == null || (o = v.params) === null || o === void 0 ? void 0 : o.analysisId), O = nt(function() {
6263
6263
  return {
6264
6264
  brandId: S || u || "",
6265
6265
  analysisId: E || c || "latest",
6266
- model: d || "openai",
6266
+ aiProvider: d || "openai",
6267
6267
  hostAppProps: f
6268
6268
  };
6269
6269
  }, [S, u, E, c, d, f]), A = nt(function() {
@@ -6273,7 +6273,7 @@ var pw = function() {
6273
6273
  }, [O]);
6274
6274
  return /* @__PURE__ */ p(h0.Provider, { value: A, children: l });
6275
6275
  }, p0 = Ic(void 0), vw = function(e) {
6276
- var n = e.children, r = e.setBrandId, i = e.setAnalysisId, a = e.setModel, s = Ye(function(d) {
6276
+ var n = e.children, r = e.setBrandId, i = e.setAnalysisId, a = e.setAiProvider, s = Ye(function(d) {
6277
6277
  r(d), i("latest");
6278
6278
  }, [r, i]), o = Ye(function(d) {
6279
6279
  i(d);
@@ -6283,7 +6283,7 @@ var pw = function() {
6283
6283
  return {
6284
6284
  setBrandId: s,
6285
6285
  setAnalysisId: o,
6286
- setModel: l
6286
+ setAiProvider: l
6287
6287
  };
6288
6288
  }, [s, o, l]), c = nt(function() {
6289
6289
  return {
@@ -6334,7 +6334,7 @@ function Aw(t) {
6334
6334
  }
6335
6335
  var Sw = function(e) {
6336
6336
  var n = e.children, r = e.hostAppProps, i = r === void 0 ? {} : r, a = ie(void 0), s = Ll(a, 2), o = s[0], l = s[1], u = ie("latest"), c = Ll(u, 2), d = c[0], h = c[1], f = ie(void 0), y = Ll(f, 2), m = y[0], g = y[1];
6337
- return /* @__PURE__ */ p(vw, { brandId: o, setBrandId: l, analysisId: d, setAnalysisId: h, model: m, setModel: g, children: /* @__PURE__ */ p(gw, { brandId: o, analysisId: d, model: m, hostAppProps: i, children: n }) });
6337
+ return /* @__PURE__ */ p(vw, { brandId: o, setBrandId: l, analysisId: d, setAnalysisId: h, aiProvider: m, setAiProvider: g, children: /* @__PURE__ */ p(gw, { brandId: o, analysisId: d, aiProvider: m, hostAppProps: i, children: n }) });
6338
6338
  }, Bt = function() {
6339
6339
  var e = Qo(h0);
6340
6340
  if (e === void 0)
@@ -7977,7 +7977,7 @@ function O3(t, e) {
7977
7977
  return n;
7978
7978
  }
7979
7979
  var fr = function(e, n, r) {
7980
- var i = Bt(), a = i.brandId, s = i.analysisId, o = i.model, l = a, u = s, c = o, d = rl(l, u, {
7980
+ var i = Bt(), a = i.brandId, s = i.analysisId, o = i.aiProvider, l = a, u = s, c = o, d = rl(l, u, {
7981
7981
  query: {
7982
7982
  enabled: !!l && !!u,
7983
7983
  select: function(g) {
@@ -10547,7 +10547,7 @@ var eh = "perplexity_tooltip_dismissed", jC = /* @__PURE__ */ new Date("2026-01-
10547
10547
  }, zC = function(e, n) {
10548
10548
  return "yst_legal_alert_dismissed_".concat(e, "_").concat(n);
10549
10549
  }, UC = function(e) {
10550
- var n, r, i, a, s, o, l = e.className, u = Bt(), c = u.brandId, d = u.analysisId, h = u.model, f = Es(), y = f.setModel, m = f.setAnalysisId, g = mn(), v = vt(), S = ie(function() {
10550
+ var n, r, i, a, s, o, l = e.className, u = Bt(), c = u.brandId, d = u.analysisId, h = u.aiProvider, f = Es(), y = f.setAiProvider, m = f.setAnalysisId, g = mn(), v = vt(), S = ie(function() {
10551
10551
  return localStorage.getItem(eh) === "true";
10552
10552
  }), E = Fs(S, 2), O = E[0], A = E[1], w = fr(), x = w.data, b = ks({
10553
10553
  query: {
@@ -10586,7 +10586,7 @@ var eh = "perplexity_tooltip_dismissed", jC = /* @__PURE__ */ new Date("2026-01-
10586
10586
  }, []), W = (
10587
10587
  // Check if current date is before January 13, 2026
10588
10588
  T < jC && // - [x] user has not manually dismissed the popover
10589
- !O && // - [x] current model is not perplexity
10589
+ !O && // - [x] current AI provider is not perplexity
10590
10590
  (x == null ? void 0 : x.aiProvider) !== wi.perplexity && // - [x] Check to ensure there is a scan of type perplexity available to show
10591
10591
  !!H
10592
10592
  ), Z = Ja(c, {