@focus-reactive/payload-plugin-seo 1.8.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 (85) hide show
  1. package/dist/admin.css +590 -659
  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.d.ts.map +1 -1
  7. package/dist/components/SeoDrawer/TabsNav/index.js +21 -14
  8. package/dist/components/SeoDrawer/TabsNav/index.js.map +1 -1
  9. package/dist/components/SeoDrawer/TabsNav/variants.js +3 -3
  10. package/dist/components/SeoDrawer/components/Header.js +6 -6
  11. package/dist/components/SeoDrawer/components/HeadingsSection/HeadingIssueBanner.js +4 -4
  12. package/dist/components/SeoDrawer/components/HeadingsSection/HeadingIssuePills.js +1 -1
  13. package/dist/components/SeoDrawer/components/HeadingsSection/HeadingLevelTiles.js +7 -7
  14. package/dist/components/SeoDrawer/components/HeadingsSection/HeadingTree/Chevron.js +2 -2
  15. package/dist/components/SeoDrawer/components/HeadingsSection/HeadingTree/HeadingTreeGroup.js +3 -3
  16. package/dist/components/SeoDrawer/components/HeadingsSection/HeadingTree/HeadingTreeRow.js +8 -8
  17. package/dist/components/SeoDrawer/components/HeadingsSection/HeadingTree/index.js +5 -5
  18. package/dist/components/SeoDrawer/components/HeadingsSection/HeadingTree/index.js.map +1 -1
  19. package/dist/components/SeoDrawer/components/HeadingsSection/index.js +1 -1
  20. package/dist/components/SeoDrawer/components/SerpPreview/index.js +2 -2
  21. package/dist/components/SeoDrawer/components/SerpPreview/serp-favicon.js +1 -1
  22. package/dist/components/SeoDrawer/components/SerpPreview/variants.js +13 -13
  23. package/dist/components/SeoDrawer/components/TabWrapper.js +1 -1
  24. package/dist/components/SeoDrawer/index.js +5 -5
  25. package/dist/components/SeoDrawer/index.js.map +1 -1
  26. package/dist/components/SeoDrawer/keyphraseState.d.ts +0 -1
  27. package/dist/components/SeoDrawer/keyphraseState.d.ts.map +1 -1
  28. package/dist/components/SeoDrawer/keyphraseState.js +2 -6
  29. package/dist/components/SeoDrawer/keyphraseState.js.map +1 -1
  30. package/dist/components/SeoDrawer/tabs/InclusiveTab.js +11 -11
  31. package/dist/components/SeoDrawer/tabs/KeyphraseTab.js +1 -1
  32. package/dist/components/SeoDrawer/tabs/KeyphraseTab.js.map +1 -1
  33. package/dist/components/SeoDrawer/tabs/OnPageTab.js +1 -1
  34. package/dist/components/SeoDrawer/tabs/ReadabilityTab.js +1 -1
  35. package/dist/components/SeoDrawer/tabs/SerpTab.js +4 -4
  36. package/dist/components/SeoDrawer/tabs/VitalsTab.js +10 -10
  37. package/dist/components/SeoDrawer/tabs/keyphrase/KeyphraseCard.d.ts.map +1 -1
  38. package/dist/components/SeoDrawer/tabs/keyphrase/KeyphraseCard.js +5 -5
  39. package/dist/components/SeoDrawer/tabs/keyphrase/KeyphraseCard.js.map +1 -1
  40. package/dist/components/SeoDrawer/tabs/keyphrase/KeyphraseDetail.d.ts.map +1 -1
  41. package/dist/components/SeoDrawer/tabs/keyphrase/KeyphraseDetail.js +44 -24
  42. package/dist/components/SeoDrawer/tabs/keyphrase/KeyphraseDetail.js.map +1 -1
  43. package/dist/components/SeoDrawer/tabs/keyphrase/KeyphraseRail.d.ts.map +1 -1
  44. package/dist/components/SeoDrawer/tabs/keyphrase/KeyphraseRail.js +5 -8
  45. package/dist/components/SeoDrawer/tabs/keyphrase/KeyphraseRail.js.map +1 -1
  46. package/dist/components/SeoDrawer/tabs/keyphrase/SynonymsField.d.ts.map +1 -1
  47. package/dist/components/SeoDrawer/tabs/keyphrase/SynonymsField.js +16 -12
  48. package/dist/components/SeoDrawer/tabs/keyphrase/SynonymsField.js.map +1 -1
  49. package/dist/components/SeoDrawer/useKeyphrases.d.ts.map +1 -1
  50. package/dist/components/SeoDrawer/useKeyphrases.js +2 -8
  51. package/dist/components/SeoDrawer/useKeyphrases.js.map +1 -1
  52. package/dist/components/SeoDrawer/variants.js +4 -4
  53. package/dist/components/SeoDrawer/variants.js.map +1 -1
  54. package/dist/components/SeoField/Meter.js +6 -6
  55. package/dist/components/SeoField/index.d.ts.map +1 -1
  56. package/dist/components/SeoField/index.js +9 -7
  57. package/dist/components/SeoField/index.js.map +1 -1
  58. package/dist/ui/CheckRow/CheckVisualization/visualizations/DensityGauge.js +10 -10
  59. package/dist/ui/CheckRow/CheckVisualization/visualizations/DistributionBar.js +3 -3
  60. package/dist/ui/CheckRow/CheckVisualization/visualizations/DistributionBar.js.map +1 -1
  61. package/dist/ui/CheckRow/CheckVisualization/visualizations/DrillDown.js +4 -4
  62. package/dist/ui/CheckRow/CheckVisualization/visualizations/SegmentBar.js +10 -10
  63. package/dist/ui/CheckRow/index.js +6 -6
  64. package/dist/ui/FilterPills.js +6 -6
  65. package/dist/ui/IconButton.d.ts +9 -0
  66. package/dist/ui/IconButton.d.ts.map +1 -0
  67. package/dist/ui/IconButton.js +30 -0
  68. package/dist/ui/IconButton.js.map +1 -0
  69. package/dist/ui/KpiCard.js +4 -4
  70. package/dist/ui/Pill.js +5 -5
  71. package/dist/ui/ScoreRing.js +10 -10
  72. package/dist/ui/SectionCard.js +3 -3
  73. package/dist/ui/SectionWrapper.js +1 -1
  74. package/dist/ui/SegmentedControl.js +4 -4
  75. package/dist/ui/TabHeader.js +5 -5
  76. package/dist/ui/Tooltip.js +4 -4
  77. package/dist/utils/style.d.ts +1 -1
  78. package/dist/utils/style.d.ts.map +1 -1
  79. package/dist/utils/style.js +5 -2
  80. package/dist/utils/style.js.map +1 -1
  81. package/package.json +3 -3
  82. package/dist/ui/Button.d.ts +0 -9
  83. package/dist/ui/Button.d.ts.map +0 -1
  84. package/dist/ui/Button.js +0 -34
  85. package/dist/ui/Button.js.map +0 -1
@@ -0,0 +1,30 @@
1
+ "use client";
2
+ import { jsx } from "react/jsx-runtime";
3
+ import { cva } from "class-variance-authority";
4
+ const iconButtonVariants = cva(
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
+ {
7
+ variants: {
8
+ variant: {
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
+ }
12
+ },
13
+ defaultVariants: {
14
+ variant: "primary"
15
+ }
16
+ }
17
+ );
18
+ function IconButton({
19
+ variant,
20
+ children,
21
+ className,
22
+ type = "button",
23
+ ...props
24
+ }) {
25
+ return /* @__PURE__ */ jsx("button", { className: iconButtonVariants({ variant, className }), type, ...props, children });
26
+ }
27
+ export {
28
+ IconButton
29
+ };
30
+ //# sourceMappingURL=IconButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/ui/IconButton.tsx"],"sourcesContent":["\"use client\";\n\nimport { cva } from \"class-variance-authority\";\nimport type { ButtonHTMLAttributes, ReactNode } from \"react\";\n\nconst iconButtonVariants = cva(\n \"inline-flex items-center justify-center rounded-rs size-[26px] cursor-pointer transition-colors [&_svg]:size-[14px]\",\n {\n variants: {\n variant: {\n primary: \"text-neutral-0 bg-neutral-1000 hover:bg-neutral-800\",\n error: \"text-seo-bad bg-seo-bad-100 hover:bg-seo-bad-200\",\n },\n },\n defaultVariants: {\n variant: \"primary\",\n },\n }\n);\n\ninterface IconButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {\n variant?: \"primary\" | \"error\";\n \"aria-label\": string;\n children: ReactNode;\n}\n\nexport function IconButton({\n variant,\n children,\n className,\n type = \"button\",\n ...props\n}: IconButtonProps) {\n return (\n <button className={iconButtonVariants({ variant, className })} type={type} {...props}>\n {children}\n </button>\n );\n}\n"],"mappings":";AAkCI;AAhCJ,SAAS,WAAW;AAGpB,MAAM,qBAAqB;AAAA,EACzB;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,SAAS;AAAA,QACP,SAAS;AAAA,QACT,OAAO;AAAA,MACT;AAAA,IACF;AAAA,IACA,iBAAiB;AAAA,MACf,SAAS;AAAA,IACX;AAAA,EACF;AACF;AAQO,SAAS,WAAW;AAAA,EACzB;AAAA,EACA;AAAA,EACA;AAAA,EACA,OAAO;AAAA,EACP,GAAG;AACL,GAAoB;AAClB,SACE,oBAAC,YAAO,WAAW,mBAAmB,EAAE,SAAS,UAAU,CAAC,GAAG,MAAa,GAAG,OAC5E,UACH;AAEJ;","names":[]}
@@ -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.8.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",
@@ -1,9 +0,0 @@
1
- import type { ButtonHTMLAttributes, ReactNode } from "react";
2
- interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
3
- variant?: "primary" | "error";
4
- icon?: ReactNode;
5
- children: ReactNode;
6
- }
7
- export declare function Button({ variant, icon, children, className, type, ...props }: ButtonProps): import("react/jsx-runtime").JSX.Element;
8
- export {};
9
- //# sourceMappingURL=Button.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../src/ui/Button.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAiB7D,UAAU,WAAY,SAAQ,oBAAoB,CAAC,iBAAiB,CAAC;IACnE,OAAO,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;IAC9B,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,wBAAgB,MAAM,CAAC,EACrB,OAAO,EACP,IAAI,EACJ,QAAQ,EACR,SAAS,EACT,IAAe,EACf,GAAG,KAAK,EACT,EAAE,WAAW,2CAOb"}
package/dist/ui/Button.js DELETED
@@ -1,34 +0,0 @@
1
- "use client";
2
- import { jsxs } from "react/jsx-runtime";
3
- import { cva } from "class-variance-authority";
4
- const buttonVariants = cva(
5
- "inline-flex items-center justify-center gap-[6px] rounded-rs px-[14px] py-[8px] text-[12px] font-semibold [&_svg]:size-[14px]",
6
- {
7
- variants: {
8
- variant: {
9
- primary: "text-neutral-0 bg-neutral-1000 hover:bg-black",
10
- error: "text-seo-bad bg-seo-bad-100 hover:bg-seo-200"
11
- }
12
- },
13
- defaultVariants: {
14
- variant: "primary"
15
- }
16
- }
17
- );
18
- function Button({
19
- variant,
20
- icon,
21
- children,
22
- className,
23
- type = "button",
24
- ...props
25
- }) {
26
- return /* @__PURE__ */ jsxs("button", { className: buttonVariants({ variant, className }), type, ...props, children: [
27
- icon,
28
- children
29
- ] });
30
- }
31
- export {
32
- Button
33
- };
34
- //# sourceMappingURL=Button.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/ui/Button.tsx"],"sourcesContent":["\"use client\";\n\nimport { cva } from \"class-variance-authority\";\nimport type { ButtonHTMLAttributes, ReactNode } from \"react\";\n\nconst buttonVariants = cva(\n \"inline-flex items-center justify-center gap-[6px] rounded-rs px-[14px] py-[8px] text-[12px] font-semibold [&_svg]:size-[14px]\",\n {\n variants: {\n variant: {\n primary: \"text-neutral-0 bg-neutral-1000 hover:bg-black\",\n error: \"text-seo-bad bg-seo-bad-100 hover:bg-seo-200\",\n },\n },\n defaultVariants: {\n variant: \"primary\",\n },\n }\n);\n\ninterface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {\n variant?: \"primary\" | \"error\";\n icon?: ReactNode;\n children: ReactNode;\n}\n\nexport function Button({\n variant,\n icon,\n children,\n className,\n type = \"button\",\n ...props\n}: ButtonProps) {\n return (\n <button className={buttonVariants({ variant, className })} type={type} {...props}>\n {icon}\n {children}\n </button>\n );\n}\n"],"mappings":";AAmCI;AAjCJ,SAAS,WAAW;AAGpB,MAAM,iBAAiB;AAAA,EACrB;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,SAAS;AAAA,QACP,SAAS;AAAA,QACT,OAAO;AAAA,MACT;AAAA,IACF;AAAA,IACA,iBAAiB;AAAA,MACf,SAAS;AAAA,IACX;AAAA,EACF;AACF;AAQO,SAAS,OAAO;AAAA,EACrB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,OAAO;AAAA,EACP,GAAG;AACL,GAAgB;AACd,SACE,qBAAC,YAAO,WAAW,eAAe,EAAE,SAAS,UAAU,CAAC,GAAG,MAAa,GAAG,OACxE;AAAA;AAAA,IACA;AAAA,KACH;AAEJ;","names":[]}