@focus-reactive/payload-plugin-seo 1.9.0 → 1.10.0

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.
Files changed (63) hide show
  1. package/dist/admin.css +553 -669
  2. package/dist/components/SeoButton/ScoreBadge.js +4 -4
  3. package/dist/components/SeoButton/ScoreBadge.js.map +1 -1
  4. package/dist/components/SeoButton/SeoButtonInner.js +2 -2
  5. package/dist/components/SeoButton/SeoButtonInner.js.map +1 -1
  6. package/dist/components/SeoDrawer/TabsNav/index.js +1 -1
  7. package/dist/components/SeoDrawer/TabsNav/variants.js +3 -3
  8. package/dist/components/SeoDrawer/components/Header.js +6 -6
  9. package/dist/components/SeoDrawer/components/HeadingsSection/HeadingIssueBanner.js +4 -4
  10. package/dist/components/SeoDrawer/components/HeadingsSection/HeadingIssuePills.js +1 -1
  11. package/dist/components/SeoDrawer/components/HeadingsSection/HeadingLevelTiles.js +7 -7
  12. package/dist/components/SeoDrawer/components/HeadingsSection/HeadingTree/Chevron.js +2 -2
  13. package/dist/components/SeoDrawer/components/HeadingsSection/HeadingTree/HeadingTreeGroup.js +3 -3
  14. package/dist/components/SeoDrawer/components/HeadingsSection/HeadingTree/HeadingTreeRow.js +8 -8
  15. package/dist/components/SeoDrawer/components/HeadingsSection/HeadingTree/index.js +5 -5
  16. package/dist/components/SeoDrawer/components/HeadingsSection/HeadingTree/index.js.map +1 -1
  17. package/dist/components/SeoDrawer/components/HeadingsSection/index.js +1 -1
  18. package/dist/components/SeoDrawer/components/SerpPreview/index.js +2 -2
  19. package/dist/components/SeoDrawer/components/SerpPreview/serp-favicon.js +1 -1
  20. package/dist/components/SeoDrawer/components/SerpPreview/variants.js +13 -13
  21. package/dist/components/SeoDrawer/components/TabWrapper.js +1 -1
  22. package/dist/components/SeoDrawer/index.js +5 -5
  23. package/dist/components/SeoDrawer/index.js.map +1 -1
  24. package/dist/components/SeoDrawer/tabs/InclusiveTab.js +11 -11
  25. package/dist/components/SeoDrawer/tabs/KeyphraseTab.js +1 -1
  26. package/dist/components/SeoDrawer/tabs/OnPageTab.js +1 -1
  27. package/dist/components/SeoDrawer/tabs/ReadabilityTab.js +1 -1
  28. package/dist/components/SeoDrawer/tabs/SerpTab.js +4 -4
  29. package/dist/components/SeoDrawer/tabs/VitalsTab.js +10 -10
  30. package/dist/components/SeoDrawer/tabs/keyphrase/KeyphraseCard.d.ts.map +1 -1
  31. package/dist/components/SeoDrawer/tabs/keyphrase/KeyphraseCard.js +5 -5
  32. package/dist/components/SeoDrawer/tabs/keyphrase/KeyphraseCard.js.map +1 -1
  33. package/dist/components/SeoDrawer/tabs/keyphrase/KeyphraseDetail.js +14 -14
  34. package/dist/components/SeoDrawer/tabs/keyphrase/KeyphraseRail.js +4 -4
  35. package/dist/components/SeoDrawer/tabs/keyphrase/SynonymsField.js +14 -14
  36. package/dist/components/SeoDrawer/tabs/keyphrase/SynonymsField.js.map +1 -1
  37. package/dist/components/SeoDrawer/variants.js +4 -4
  38. package/dist/components/SeoDrawer/variants.js.map +1 -1
  39. package/dist/components/SeoField/Meter.js +6 -6
  40. package/dist/components/SeoField/index.d.ts.map +1 -1
  41. package/dist/components/SeoField/index.js +9 -7
  42. package/dist/components/SeoField/index.js.map +1 -1
  43. package/dist/ui/CheckRow/CheckVisualization/visualizations/DensityGauge.js +10 -10
  44. package/dist/ui/CheckRow/CheckVisualization/visualizations/DistributionBar.js +3 -3
  45. package/dist/ui/CheckRow/CheckVisualization/visualizations/DistributionBar.js.map +1 -1
  46. package/dist/ui/CheckRow/CheckVisualization/visualizations/DrillDown.js +4 -4
  47. package/dist/ui/CheckRow/CheckVisualization/visualizations/SegmentBar.js +10 -10
  48. package/dist/ui/CheckRow/index.js +6 -6
  49. package/dist/ui/FilterPills.js +6 -6
  50. package/dist/ui/IconButton.js +3 -3
  51. package/dist/ui/KpiCard.js +4 -4
  52. package/dist/ui/Pill.js +5 -5
  53. package/dist/ui/ScoreRing.js +10 -10
  54. package/dist/ui/SectionCard.js +3 -3
  55. package/dist/ui/SectionWrapper.js +1 -1
  56. package/dist/ui/SegmentedControl.js +4 -4
  57. package/dist/ui/TabHeader.js +5 -5
  58. package/dist/ui/Tooltip.js +4 -4
  59. package/dist/utils/style.d.ts +1 -1
  60. package/dist/utils/style.d.ts.map +1 -1
  61. package/dist/utils/style.js +5 -2
  62. package/dist/utils/style.js.map +1 -1
  63. package/package.json +3 -3
@@ -2,15 +2,15 @@
2
2
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
3
3
  function DistributionBar({ positions }) {
4
4
  return /* @__PURE__ */ jsxs(Fragment, { children: [
5
- /* @__PURE__ */ jsx("div", { className: "seo-docbar relative h-[24px] rounded-rs border border-neutral-200", children: positions.map((p, i) => /* @__PURE__ */ jsx(
5
+ /* @__PURE__ */ jsx("div", { className: "frseo-docbar frseo:relative frseo:h-[24px] frseo:rounded-rs frseo:border frseo:border-neutral-200", children: positions.map((p, i) => /* @__PURE__ */ jsx(
6
6
  "i",
7
7
  {
8
- className: "absolute top-[3px] bottom-[3px] w-[3px] rounded-[2px] bg-neutral-800",
8
+ className: "frseo:absolute frseo:top-[3px] frseo:bottom-[3px] frseo:w-[3px] frseo:rounded-[2px] frseo:bg-neutral-800",
9
9
  style: { left: `${p}%` }
10
10
  },
11
11
  `${p}-${i}`
12
12
  )) }),
13
- /* @__PURE__ */ jsxs("div", { className: "flex justify-between text-[10px] text-neutral-500 mt-[5px]", children: [
13
+ /* @__PURE__ */ jsxs("div", { className: "frseo:flex frseo:justify-between frseo:text-[10px] frseo:text-neutral-500 frseo:mt-[5px]", children: [
14
14
  /* @__PURE__ */ jsx("span", { children: "start" }),
15
15
  /* @__PURE__ */ jsx("span", { children: "middle" }),
16
16
  /* @__PURE__ */ jsx("span", { children: "end" })
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/ui/CheckRow/CheckVisualization/visualizations/DistributionBar.tsx"],"sourcesContent":["\"use client\";\n\nimport type { DistributionModel } from \"../../../../engine/types/visualization\";\n\nexport function DistributionBar({ positions }: DistributionModel) {\n return (\n <>\n <div className=\"seo-docbar relative h-[24px] rounded-rs border border-neutral-200\">\n {positions.map((p, i) => (\n <i\n key={`${p}-${i}`}\n className=\"absolute top-[3px] bottom-[3px] w-[3px] rounded-[2px] bg-neutral-800\"\n style={{ left: `${p}%` }}\n />\n ))}\n </div>\n\n <div className=\"flex justify-between text-[10px] text-neutral-500 mt-[5px]\">\n <span>start</span>\n <span>middle</span>\n <span>end</span>\n </div>\n </>\n );\n}\n"],"mappings":";AAMI,mBAGM,KAQJ,YAXF;AAFG,SAAS,gBAAgB,EAAE,UAAU,GAAsB;AAChE,SACE,iCACE;AAAA,wBAAC,SAAI,WAAU,qEACZ,oBAAU,IAAI,CAAC,GAAG,MACjB;AAAA,MAAC;AAAA;AAAA,QAEC,WAAU;AAAA,QACV,OAAO,EAAE,MAAM,GAAG,CAAC,IAAI;AAAA;AAAA,MAFlB,GAAG,CAAC,IAAI,CAAC;AAAA,IAGhB,CACD,GACH;AAAA,IAEA,qBAAC,SAAI,WAAU,8DACb;AAAA,0BAAC,UAAK,mBAAK;AAAA,MACX,oBAAC,UAAK,oBAAM;AAAA,MACZ,oBAAC,UAAK,iBAAG;AAAA,OACX;AAAA,KACF;AAEJ;","names":[]}
1
+ {"version":3,"sources":["../../../../../src/ui/CheckRow/CheckVisualization/visualizations/DistributionBar.tsx"],"sourcesContent":["\"use client\";\n\nimport type { DistributionModel } from \"../../../../engine/types/visualization\";\n\nexport function DistributionBar({ positions }: DistributionModel) {\n return (\n <>\n <div className=\"frseo-docbar relative h-[24px] rounded-rs border border-neutral-200\">\n {positions.map((p, i) => (\n <i\n key={`${p}-${i}`}\n className=\"absolute top-[3px] bottom-[3px] w-[3px] rounded-[2px] bg-neutral-800\"\n style={{ left: `${p}%` }}\n />\n ))}\n </div>\n\n <div className=\"flex justify-between text-[10px] text-neutral-500 mt-[5px]\">\n <span>start</span>\n <span>middle</span>\n <span>end</span>\n </div>\n </>\n );\n}\n"],"mappings":";AAMI,mBAGM,KAQJ,YAXF;AAFG,SAAS,gBAAgB,EAAE,UAAU,GAAsB;AAChE,SACE,iCACE;AAAA,wBAAC,SAAI,WAAU,uEACZ,oBAAU,IAAI,CAAC,GAAG,MACjB;AAAA,MAAC;AAAA;AAAA,QAEC,WAAU;AAAA,QACV,OAAO,EAAE,MAAM,GAAG,CAAC,IAAI;AAAA;AAAA,MAFlB,GAAG,CAAC,IAAI,CAAC;AAAA,IAGhB,CACD,GACH;AAAA,IAEA,qBAAC,SAAI,WAAU,8DACb;AAAA,0BAAC,UAAK,mBAAK;AAAA,MACX,oBAAC,UAAK,oBAAM;AAAA,MACZ,oBAAC,UAAK,iBAAG;AAAA,OACX;AAAA,KACF;AAEJ;","names":[]}
@@ -12,7 +12,7 @@ function DrillDown({ items, label }) {
12
12
  "button",
13
13
  {
14
14
  type: "button",
15
- className: "mt-[8px] text-[11px] text-neutral-700 bg-neutral-100 border border-neutral-200 rounded-rs px-[9px] py-[4px] cursor-pointer inline-flex items-center gap-[4px]",
15
+ className: "frseo:mt-[8px] frseo:text-[11px] frseo:text-neutral-700 frseo:bg-neutral-100 frseo:border frseo:border-neutral-200 frseo:rounded-rs frseo:px-[9px] frseo:py-[4px] frseo:cursor-pointer frseo:inline-flex frseo:items-center frseo:gap-[4px]",
16
16
  onClick: () => setOpen((o) => !o),
17
17
  children: open ? /* @__PURE__ */ jsxs(Fragment, { children: [
18
18
  "Hide ",
@@ -24,13 +24,13 @@ function DrillDown({ items, label }) {
24
24
  ] })
25
25
  }
26
26
  ),
27
- /* @__PURE__ */ jsx("div", { className: cn("mt-[8px] flex-col gap-[4px]", open ? "flex" : "hidden"), children: items.map((it, i) => /* @__PURE__ */ jsxs(
27
+ /* @__PURE__ */ jsx("div", { className: cn("frseo:mt-[8px] frseo:flex-col frseo:gap-[4px]", open ? "frseo:flex" : "frseo:hidden"), children: items.map((it, i) => /* @__PURE__ */ jsxs(
28
28
  "div",
29
29
  {
30
- className: "flex justify-between text-[11px] text-neutral-700 bg-neutral-50 rounded-rs px-[9px] py-[4px]",
30
+ className: "frseo:flex frseo:justify-between frseo:text-[11px] frseo:text-neutral-700 frseo:bg-neutral-50 frseo:rounded-rs frseo:px-[9px] frseo:py-[4px]",
31
31
  children: [
32
32
  /* @__PURE__ */ jsx("span", { children: it.left }),
33
- /* @__PURE__ */ jsx("span", { className: "text-neutral-1000", children: it.right })
33
+ /* @__PURE__ */ jsx("span", { className: "frseo:text-neutral-1000", children: it.right })
34
34
  ]
35
35
  },
36
36
  `${it.left}-${i}`
@@ -3,30 +3,30 @@ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
3
3
  import { cva } from "class-variance-authority";
4
4
  import { cn } from "../../../../utils/style";
5
5
  import { statusVar } from "../../../../components/SeoDrawer/variants";
6
- const swatchVariants = cva("w-[8px] h-[8px] rounded-[2px] inline-block", {
6
+ const swatchVariants = cva("frseo:w-[8px] frseo:h-[8px] frseo:rounded-[2px] frseo:inline-block", {
7
7
  variants: {
8
8
  tone: {
9
- good: "bg-seo-good",
10
- warn: "bg-seo-warn",
11
- bad: "bg-seo-bad",
12
- muted: "bg-neutral-300"
9
+ good: "frseo:bg-seo-good",
10
+ warn: "frseo:bg-seo-warn",
11
+ bad: "frseo:bg-seo-bad",
12
+ muted: "frseo:bg-neutral-300"
13
13
  }
14
14
  }
15
15
  });
16
16
  function SegmentBar({ countLabel, filledPct, filledStatus, legend }) {
17
17
  return /* @__PURE__ */ jsxs(Fragment, { children: [
18
- countLabel && /* @__PURE__ */ jsx("div", { className: "text-[10px] text-neutral-500 font-mono mb-[4px] flex justify-end", children: /* @__PURE__ */ jsx("span", { children: countLabel }) }),
19
- /* @__PURE__ */ jsxs("div", { className: "flex h-[6px] rounded-[3px] overflow-hidden", children: [
18
+ countLabel && /* @__PURE__ */ jsx("div", { className: "frseo:text-[10px] frseo:text-neutral-500 frseo:font-mono frseo:mb-[4px] frseo:flex frseo:justify-end", children: /* @__PURE__ */ jsx("span", { children: countLabel }) }),
19
+ /* @__PURE__ */ jsxs("div", { className: "frseo:flex frseo:h-[6px] frseo:rounded-[3px] frseo:overflow-hidden", children: [
20
20
  /* @__PURE__ */ jsx(
21
21
  "i",
22
22
  {
23
- className: cn("block h-full", statusVar({ status: filledStatus })),
23
+ className: cn("frseo:block frseo:h-full", statusVar({ status: filledStatus })),
24
24
  style: { width: `${filledPct}%`, background: "var(--seo-c)" }
25
25
  }
26
26
  ),
27
- /* @__PURE__ */ jsx("i", { className: "block h-full bg-neutral-150", style: { width: `${100 - filledPct}%` } })
27
+ /* @__PURE__ */ jsx("i", { className: "frseo:block frseo:h-full frseo:bg-neutral-150", style: { width: `${100 - filledPct}%` } })
28
28
  ] }),
29
- legend && /* @__PURE__ */ jsx("div", { className: "flex gap-[14px] text-[11px] mt-[6px]", children: legend.map((l) => /* @__PURE__ */ jsxs("span", { className: "inline-flex items-center gap-[5px] text-neutral-700", children: [
29
+ legend && /* @__PURE__ */ jsx("div", { className: "frseo:flex frseo:gap-[14px] frseo:text-[11px] frseo:mt-[6px]", children: legend.map((l) => /* @__PURE__ */ jsxs("span", { className: "frseo:inline-flex frseo:items-center frseo:gap-[5px] frseo:text-neutral-700", children: [
30
30
  /* @__PURE__ */ jsx("span", { className: swatchVariants({ tone: l.tone }) }),
31
31
  l.label
32
32
  ] }, l.label)) })
@@ -16,23 +16,23 @@ function CheckRow({ check }) {
16
16
  return /* @__PURE__ */ jsxs(
17
17
  "div",
18
18
  {
19
- className: cn("relative px-[15px] py-[13px] overflow-visible", ROW_SEPARATOR),
19
+ className: cn("frseo:relative frseo:px-[15px] frseo:py-[13px] frseo:overflow-visible", ROW_SEPARATOR),
20
20
  "data-status": check.status,
21
21
  children: [
22
- /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-[9px] mb-[7px]", children: [
23
- /* @__PURE__ */ jsx("span", { className: "w-[26px] h-[26px] rounded-rs bg-neutral-100 text-neutral-600 grid place-items-center flex-none [&_svg]:size-[15px]", children: /* @__PURE__ */ jsx(Icon, { size: 15 }) }),
24
- /* @__PURE__ */ jsx("span", { className: "flex-1 font-semibold text-[12.5px]", children: /* @__PURE__ */ jsx(
22
+ /* @__PURE__ */ jsxs("div", { className: "frseo:flex frseo:items-center frseo:gap-[9px] frseo:mb-[7px]", children: [
23
+ /* @__PURE__ */ jsx("span", { className: "frseo:w-[26px] frseo:h-[26px] frseo:rounded-rs frseo:bg-neutral-100 frseo:text-neutral-600 frseo:grid frseo:place-items-center frseo:flex-none frseo:[&_svg]:size-[15px]", children: /* @__PURE__ */ jsx(Icon, { size: 15 }) }),
24
+ /* @__PURE__ */ jsx("span", { className: "frseo:flex-1 frseo:font-semibold frseo:text-[12.5px]", children: /* @__PURE__ */ jsx(
25
25
  Tooltip,
26
26
  {
27
27
  content: meta.tip,
28
- className: "border-0 border-b border-dotted border-neutral-400",
28
+ className: "frseo:border-0 frseo:border-b frseo:border-dotted frseo:border-neutral-400",
29
29
  children: meta.name
30
30
  }
31
31
  ) }),
32
32
  /* @__PURE__ */ jsx(Pill, { variant: check.status, children: STATUS_PILL_LABEL[check.status] })
33
33
  ] }),
34
34
  /* @__PURE__ */ jsx(CheckVisualization, { check }),
35
- check.recommendation && /* @__PURE__ */ jsx("div", { className: "text-neutral-600 text-[11.5px]", children: check.recommendation })
35
+ check.recommendation && /* @__PURE__ */ jsx("div", { className: "frseo:text-neutral-600 frseo:text-[11.5px]", children: check.recommendation })
36
36
  ]
37
37
  }
38
38
  );
@@ -4,12 +4,12 @@ import { cva } from "class-variance-authority";
4
4
  import { cn } from "../utils/style";
5
5
  import { statusVar } from "../components/SeoDrawer/variants";
6
6
  const filterPillVariants = cva(
7
- "inline-flex items-center gap-[5px] px-[10px] py-[4px] rounded-[20px] border text-[11px] font-medium cursor-pointer",
7
+ "frseo:inline-flex frseo:items-center frseo:gap-[5px] frseo:px-[10px] frseo:py-[4px] frseo:rounded-[20px] frseo:border frseo:text-[11px] frseo:font-medium frseo:cursor-pointer",
8
8
  {
9
9
  variants: {
10
10
  active: {
11
- true: "bg-neutral-1000 text-neutral-0 border-neutral-1000",
12
- false: "border-neutral-200 bg-neutral-0 text-neutral-700"
11
+ true: "frseo:bg-neutral-1000 frseo:text-neutral-0 frseo:border-neutral-1000",
12
+ false: "frseo:border-neutral-200 frseo:bg-neutral-0 frseo:text-neutral-700"
13
13
  }
14
14
  },
15
15
  defaultVariants: { active: false }
@@ -27,7 +27,7 @@ function Pill({ filter, label, count, active, onSelect, dotStatus }) {
27
27
  "span",
28
28
  {
29
29
  className: cn(
30
- "w-[6px] h-[6px] rounded-full inline-block",
30
+ "frseo:w-[6px] frseo:h-[6px] frseo:rounded-full frseo:inline-block",
31
31
  statusVar({ status: dotStatus })
32
32
  ),
33
33
  style: { background: "var(--seo-c)" }
@@ -35,7 +35,7 @@ function Pill({ filter, label, count, active, onSelect, dotStatus }) {
35
35
  ),
36
36
  label,
37
37
  " ",
38
- /* @__PURE__ */ jsx("span", { className: "font-mono font-bold", children: count })
38
+ /* @__PURE__ */ jsx("span", { className: "frseo:font-mono frseo:font-bold", children: count })
39
39
  ]
40
40
  }
41
41
  );
@@ -44,7 +44,7 @@ function countByStatus(checks, status) {
44
44
  return checks.filter((c) => c.status === status).length;
45
45
  }
46
46
  function FilterPills({ checks, value, onChange }) {
47
- return /* @__PURE__ */ jsxs("div", { className: "flex gap-[6px] flex-wrap px-[15px] py-[11px]", children: [
47
+ return /* @__PURE__ */ jsxs("div", { className: "frseo:flex frseo:gap-[6px] frseo:flex-wrap frseo:px-[15px] frseo:py-[11px]", children: [
48
48
  /* @__PURE__ */ jsx(
49
49
  Pill,
50
50
  {
@@ -2,12 +2,12 @@
2
2
  import { jsx } from "react/jsx-runtime";
3
3
  import { cva } from "class-variance-authority";
4
4
  const iconButtonVariants = cva(
5
- "inline-flex items-center justify-center rounded-rs size-[26px] cursor-pointer transition-colors [&_svg]:size-[14px]",
5
+ "frseo:inline-flex frseo:items-center frseo:justify-center frseo:rounded-rs frseo:size-[26px] frseo:cursor-pointer frseo:transition-colors frseo:[&_svg]:size-[14px]",
6
6
  {
7
7
  variants: {
8
8
  variant: {
9
- primary: "text-neutral-0 bg-neutral-1000 hover:bg-neutral-800",
10
- error: "text-seo-bad bg-seo-bad-100 hover:bg-seo-bad-200"
9
+ primary: "frseo:text-neutral-0 frseo:bg-neutral-1000 frseo:hover:bg-neutral-800",
10
+ error: "frseo:text-seo-bad frseo:bg-seo-bad-100 frseo:hover:bg-seo-bad-200"
11
11
  }
12
12
  },
13
13
  defaultVariants: {
@@ -2,11 +2,11 @@
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
3
  import { SectionWrapper } from "./SectionWrapper";
4
4
  function KpiCard({ label, value, suffix }) {
5
- return /* @__PURE__ */ jsxs(SectionWrapper, { className: "px-[13px] py-[12px]", children: [
6
- /* @__PURE__ */ jsx("div", { className: "flex items-center gap-[6px]", children: /* @__PURE__ */ jsx("span", { className: "text-[9.5px] uppercase tracking-[0.05em] text-neutral-500 font-semibold", children: label }) }),
7
- /* @__PURE__ */ jsxs("div", { className: "text-[23px] font-bold mt-[5px] leading-none", children: [
5
+ return /* @__PURE__ */ jsxs(SectionWrapper, { className: "frseo:px-[13px] frseo:py-[12px]", children: [
6
+ /* @__PURE__ */ jsx("div", { className: "frseo:flex frseo:items-center frseo:gap-[6px]", children: /* @__PURE__ */ jsx("span", { className: "frseo:text-[9.5px] frseo:uppercase frseo:tracking-[0.05em] frseo:text-neutral-500 frseo:font-semibold", children: label }) }),
7
+ /* @__PURE__ */ jsxs("div", { className: "frseo:text-[23px] frseo:font-bold frseo:mt-[5px] frseo:leading-none", children: [
8
8
  value,
9
- suffix && /* @__PURE__ */ jsxs("small", { className: "text-[11px] font-medium text-neutral-500", children: [
9
+ suffix && /* @__PURE__ */ jsxs("small", { className: "frseo:text-[11px] frseo:font-medium frseo:text-neutral-500", children: [
10
10
  " ",
11
11
  suffix
12
12
  ] })
package/dist/ui/Pill.js CHANGED
@@ -2,14 +2,14 @@
2
2
  import { jsx } from "react/jsx-runtime";
3
3
  import { cva } from "class-variance-authority";
4
4
  const pillVariants = cva(
5
- "inline-flex items-center gap-[4px] px-[14px] py-[1px] rounded-[20px] text-[11px] font-semibold",
5
+ "frseo:inline-flex frseo:items-center frseo:gap-[4px] frseo:px-[14px] frseo:py-[1px] frseo:rounded-[20px] frseo:text-[11px] frseo:font-semibold",
6
6
  {
7
7
  variants: {
8
8
  variant: {
9
- good: "bg-seo-good-100 text-seo-good",
10
- warn: "bg-seo-warn-100 text-seo-warn",
11
- bad: "bg-seo-bad-100 text-seo-bad",
12
- neutral: "bg-neutral-100 text-neutral-500"
9
+ good: "frseo:bg-seo-good-100 frseo:text-seo-good",
10
+ warn: "frseo:bg-seo-warn-100 frseo:text-seo-warn",
11
+ bad: "frseo:bg-seo-bad-100 frseo:text-seo-bad",
12
+ neutral: "frseo:bg-neutral-100 frseo:text-neutral-500"
13
13
  }
14
14
  }
15
15
  }
@@ -4,36 +4,36 @@ import { cva } from "class-variance-authority";
4
4
  import { Loader2 } from "lucide-react";
5
5
  import { cn } from "../utils/style";
6
6
  import { statusVar } from "../components/SeoDrawer/variants";
7
- const ringVar = cva("rounded-full flex-none grid place-items-center", {
7
+ const ringVar = cva("frseo:rounded-full frseo:flex-none frseo:grid frseo:place-items-center", {
8
8
  variants: {
9
9
  size: {
10
- small: "w-[36px] h-[36px]",
11
- medium: "w-[60px] h-[60px]"
10
+ small: "frseo:w-[36px] frseo:h-[36px]",
11
+ medium: "frseo:w-[60px] frseo:h-[60px]"
12
12
  }
13
13
  },
14
14
  defaultVariants: { size: "medium" }
15
15
  });
16
- const innerVar = cva("rounded-full bg-neutral-0 grid place-items-center font-bold", {
16
+ const innerVar = cva("frseo:rounded-full frseo:bg-neutral-0 frseo:grid frseo:place-items-center frseo:font-bold", {
17
17
  variants: {
18
18
  size: {
19
- small: "w-[28px] h-[28px] text-[11px]",
20
- medium: "w-[48px] h-[48px] text-[18px]"
19
+ small: "frseo:w-[28px] frseo:h-[28px] frseo:text-[11px]",
20
+ medium: "frseo:w-[48px] frseo:h-[48px] frseo:text-[18px]"
21
21
  }
22
22
  },
23
23
  defaultVariants: { size: "medium" }
24
24
  });
25
- const loaderVar = cva("animate-spin text-neutral-500", {
25
+ const loaderVar = cva("frseo:animate-spin frseo:text-neutral-500", {
26
26
  variants: {
27
27
  size: {
28
- small: "w-[16px] h-[16px]",
29
- medium: "w-[26px] h-[26px]"
28
+ small: "frseo:w-[16px] frseo:h-[16px]",
29
+ medium: "frseo:w-[26px] frseo:h-[26px]"
30
30
  }
31
31
  },
32
32
  defaultVariants: { size: "medium" }
33
33
  });
34
34
  function ScoreRing({ size = "medium", status, score }) {
35
35
  if (status === "loading") {
36
- return /* @__PURE__ */ jsx("span", { className: cn(ringVar({ size }), "bg-neutral-100"), children: /* @__PURE__ */ jsx(Loader2, { "aria-hidden": "true", className: loaderVar({ size }) }) });
36
+ return /* @__PURE__ */ jsx("span", { className: cn(ringVar({ size }), "frseo:bg-neutral-100"), children: /* @__PURE__ */ jsx(Loader2, { "aria-hidden": "true", className: loaderVar({ size }) }) });
37
37
  }
38
38
  const isIdle = status === "idle";
39
39
  const fill = isIdle ? 100 : score;
@@ -2,9 +2,9 @@
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
3
  import { SectionWrapper } from "./SectionWrapper";
4
4
  function SectionCard({ title, widget, children }) {
5
- return /* @__PURE__ */ jsxs(SectionWrapper, { className: "overflow-hidden", children: [
6
- /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between px-[15px] py-[12px] border-b border-neutral-200", children: [
7
- /* @__PURE__ */ jsx("span", { className: "font-semibold text-[13px]", children: title }),
5
+ return /* @__PURE__ */ jsxs(SectionWrapper, { className: "frseo:overflow-hidden", children: [
6
+ /* @__PURE__ */ jsxs("div", { className: "frseo:flex frseo:items-center frseo:justify-between frseo:px-[15px] frseo:py-[12px] frseo:border-b frseo:border-neutral-200", children: [
7
+ /* @__PURE__ */ jsx("span", { className: "frseo:font-semibold frseo:text-[13px]", children: title }),
8
8
  widget
9
9
  ] }),
10
10
  children
@@ -2,7 +2,7 @@
2
2
  import { jsx } from "react/jsx-runtime";
3
3
  import { cn } from "../utils/style";
4
4
  function SectionWrapper({ className, children }) {
5
- return /* @__PURE__ */ jsx("div", { className: cn("bg-neutral-0 border border-neutral-200 rounded-rm", className), children });
5
+ return /* @__PURE__ */ jsx("div", { className: cn("frseo:bg-neutral-0 frseo:border frseo:border-neutral-200 frseo:rounded-rm", className), children });
6
6
  }
7
7
  export {
8
8
  SectionWrapper
@@ -3,12 +3,12 @@ import { jsx, jsxs } from "react/jsx-runtime";
3
3
  import { cva } from "class-variance-authority";
4
4
  import { useRef } from "react";
5
5
  const segmentVariants = cva(
6
- "inline-flex items-center gap-[5px] px-[11px] py-[4px] rounded-rs text-[11px] font-medium border-0 cursor-pointer",
6
+ "frseo:inline-flex frseo:items-center frseo:gap-[5px] frseo:px-[11px] frseo:py-[4px] frseo:rounded-rs frseo:text-[11px] frseo:font-medium frseo:border-0 frseo:cursor-pointer",
7
7
  {
8
8
  variants: {
9
9
  active: {
10
- true: "bg-neutral-0 text-neutral-1000",
11
- false: "bg-transparent text-neutral-600"
10
+ true: "frseo:bg-neutral-0 frseo:text-neutral-1000",
11
+ false: "frseo:bg-transparent frseo:text-neutral-600"
12
12
  }
13
13
  },
14
14
  defaultVariants: { active: false }
@@ -58,7 +58,7 @@ function SegmentedControl({
58
58
  {
59
59
  role: "radiogroup",
60
60
  "aria-label": label,
61
- className: "inline-flex bg-neutral-100 rounded-rm p-[2px] gap-[2px]",
61
+ className: "frseo:inline-flex frseo:bg-neutral-100 frseo:rounded-rm frseo:p-[2px] frseo:gap-[2px]",
62
62
  children: options.map((option, index) => {
63
63
  const isActive = option.value === value;
64
64
  return /* @__PURE__ */ jsxs(
@@ -5,14 +5,14 @@ import { ScoreRing } from "./ScoreRing";
5
5
  import { Pill } from "./Pill";
6
6
  import { STATUS_PILL_LABEL } from "../constants";
7
7
  function TabHeader({ title, score, status, statusLabel, subtitle }) {
8
- return /* @__PURE__ */ jsxs(SectionWrapper, { className: "p-[14px] flex items-center gap-[15px]", children: [
8
+ return /* @__PURE__ */ jsxs(SectionWrapper, { className: "frseo:p-[14px] frseo:flex frseo:items-center frseo:gap-[15px]", children: [
9
9
  /* @__PURE__ */ jsx(ScoreRing, { score, status }),
10
- /* @__PURE__ */ jsxs("div", { className: "flex-1", children: [
11
- /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-[8px]", children: [
12
- /* @__PURE__ */ jsx("b", { className: "text-[14px]", children: title }),
10
+ /* @__PURE__ */ jsxs("div", { className: "frseo:flex-1", children: [
11
+ /* @__PURE__ */ jsxs("div", { className: "frseo:flex frseo:items-center frseo:gap-[8px]", children: [
12
+ /* @__PURE__ */ jsx("b", { className: "frseo:text-[14px]", children: title }),
13
13
  /* @__PURE__ */ jsx(Pill, { variant: status, children: statusLabel ?? STATUS_PILL_LABEL[status] })
14
14
  ] }),
15
- /* @__PURE__ */ jsx("div", { className: "text-neutral-500 text-[11.5px] mt-[4px]", children: subtitle })
15
+ /* @__PURE__ */ jsx("div", { className: "frseo:text-neutral-500 frseo:text-[11.5px] frseo:mt-[4px]", children: subtitle })
16
16
  ] })
17
17
  ] });
18
18
  }
@@ -43,7 +43,7 @@ function Tooltip({
43
43
  "span",
44
44
  {
45
45
  ref: triggerRef,
46
- className: cn("relative inline-flex cursor-help outline-none", className),
46
+ className: cn("frseo:relative frseo:inline-flex frseo:cursor-help frseo:outline-none", className),
47
47
  tabIndex: 0,
48
48
  "aria-describedby": isOpen ? tooltipId : void 0,
49
49
  onMouseEnter: open,
@@ -58,7 +58,7 @@ function Tooltip({
58
58
  {
59
59
  id: tooltipId,
60
60
  role: "tooltip",
61
- className: "pointer-events-none fixed z-[100] flex cursor-default flex-col gap-[7px] rounded-rs bg-neutral-1000 px-[13px] py-[11px] text-left font-normal normal-case tracking-normal text-neutral-0 shadow-popover animate-seo-fade-in motion-reduce:animate-none",
61
+ className: "frseo:pointer-events-none frseo:fixed frseo:z-[100] frseo:flex frseo:cursor-default frseo:flex-col frseo:gap-[7px] frseo:rounded-rs frseo:bg-neutral-1000 frseo:px-[13px] frseo:py-[11px] frseo:text-left frseo:font-normal frseo:normal-case frseo:tracking-normal frseo:text-neutral-0 frseo:shadow-popover frseo:animate-seo-fade-in frseo:motion-reduce:animate-none",
62
62
  style: {
63
63
  top: coords.top,
64
64
  left: coords.left,
@@ -75,10 +75,10 @@ function Tooltip({
75
75
  );
76
76
  }
77
77
  function TooltipTitle({ children }) {
78
- return /* @__PURE__ */ jsx("span", { className: "text-[12px] font-semibold", children });
78
+ return /* @__PURE__ */ jsx("span", { className: "frseo:text-[12px] frseo:font-semibold", children });
79
79
  }
80
80
  function TooltipText({ children }) {
81
- return /* @__PURE__ */ jsx("span", { className: "text-[11.5px] leading-[1.45] text-neutral-300", children });
81
+ return /* @__PURE__ */ jsx("span", { className: "frseo:text-[11.5px] frseo:leading-[1.45] frseo:text-neutral-300", children });
82
82
  }
83
83
  export {
84
84
  Tooltip,
@@ -1,4 +1,4 @@
1
1
  import type { ClassValue } from "clsx";
2
2
  export declare function cn(...inputs: ClassValue[]): string;
3
- export declare const ROW_SEPARATOR = "not-last:after:content-[''] not-last:after:absolute not-last:after:inset-x-[15px] not-last:after:bottom-0 not-last:after:h-px not-last:after:bg-neutral-200";
3
+ export declare const ROW_SEPARATOR: string;
4
4
  //# sourceMappingURL=style.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../src/utils/style.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAEvC,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,UAAU,EAAE,GAAG,MAAM,CAElD;AAED,eAAO,MAAM,aAAa,gKACqI,CAAC"}
1
+ {"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../src/utils/style.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAIvC,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,UAAU,EAAE,GAAG,MAAM,CAElD;AAED,eAAO,MAAM,aAAa,QAEzB,CAAC"}
@@ -1,9 +1,12 @@
1
1
  import { clsx } from "clsx";
2
- import { twMerge } from "tailwind-merge";
2
+ import { extendTailwindMerge } from "tailwind-merge";
3
+ const twMerge = extendTailwindMerge({ prefix: "frseo" });
3
4
  function cn(...inputs) {
4
5
  return twMerge(clsx(inputs));
5
6
  }
6
- const ROW_SEPARATOR = "not-last:after:content-[''] not-last:after:absolute not-last:after:inset-x-[15px] not-last:after:bottom-0 not-last:after:h-px not-last:after:bg-neutral-200";
7
+ const ROW_SEPARATOR = cn(
8
+ "frseo:not-last:after:content-[''] frseo:not-last:after:absolute frseo:not-last:after:inset-x-[15px] frseo:not-last:after:bottom-0 frseo:not-last:after:h-px frseo:not-last:after:bg-neutral-200"
9
+ );
7
10
  export {
8
11
  ROW_SEPARATOR,
9
12
  cn
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/utils/style.ts"],"sourcesContent":["import { clsx } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\nimport type { ClassValue } from \"clsx\";\n\nexport function cn(...inputs: ClassValue[]): string {\n return twMerge(clsx(inputs));\n}\n\nexport const ROW_SEPARATOR =\n \"not-last:after:content-[''] not-last:after:absolute not-last:after:inset-x-[15px] not-last:after:bottom-0 not-last:after:h-px not-last:after:bg-neutral-200\";\n"],"mappings":"AAAA,SAAS,YAAY;AACrB,SAAS,eAAe;AAGjB,SAAS,MAAM,QAA8B;AAClD,SAAO,QAAQ,KAAK,MAAM,CAAC;AAC7B;AAEO,MAAM,gBACX;","names":[]}
1
+ {"version":3,"sources":["../../src/utils/style.ts"],"sourcesContent":["import { clsx } from \"clsx\";\nimport { extendTailwindMerge } from \"tailwind-merge\";\nimport type { ClassValue } from \"clsx\";\n\nconst twMerge = extendTailwindMerge({ prefix: \"frseo\" });\n\nexport function cn(...inputs: ClassValue[]): string {\n return twMerge(clsx(inputs));\n}\n\nexport const ROW_SEPARATOR = cn(\n \"not-last:after:content-[''] not-last:after:absolute not-last:after:inset-x-[15px] not-last:after:bottom-0 not-last:after:h-px not-last:after:bg-neutral-200\"\n);\n"],"mappings":"AAAA,SAAS,YAAY;AACrB,SAAS,2BAA2B;AAGpC,MAAM,UAAU,oBAAoB,EAAE,QAAQ,QAAQ,CAAC;AAEhD,SAAS,MAAM,QAA8B;AAClD,SAAO,QAAQ,KAAK,MAAM,CAAC;AAC7B;AAEO,MAAM,gBAAgB;AAAA,EAC3B;AACF;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@focus-reactive/payload-plugin-seo",
3
- "version": "1.9.0",
3
+ "version": "1.10.0",
4
4
  "license": "MIT",
5
5
  "author": "FocusReactive <ship@focusreactive.com>",
6
6
  "keywords": [
@@ -60,7 +60,7 @@
60
60
  }
61
61
  },
62
62
  "scripts": {
63
- "build": "tsup && tsc --emitDeclarationOnly --declarationMap",
63
+ "build": "tsup && tsc -p tsconfig.build.json --emitDeclarationOnly --declarationMap",
64
64
  "dev": "tsup --watch",
65
65
  "lint": "ultracite check",
66
66
  "lint:fix": "ultracite fix",
@@ -102,7 +102,7 @@
102
102
  "@payloadcms/richtext-lexical": "3.84.1",
103
103
  "@payloadcms/ui": "3.84.1",
104
104
  "@tailwindcss/postcss": "^4.0.0",
105
- "@types/node": "^25.7.0",
105
+ "@types/node": "^26.1.0",
106
106
  "@types/react": "19.2.9",
107
107
  "@types/react-dom": "19.2.3",
108
108
  "lucide-react": "^0.469.0",