@focus-reactive/payload-plugin-seo 1.9.0 → 1.10.1
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/admin.css +558 -669
- package/dist/components/SeoButton/ScoreBadge.js +4 -4
- package/dist/components/SeoButton/ScoreBadge.js.map +1 -1
- package/dist/components/SeoButton/SeoButtonInner.js +2 -2
- package/dist/components/SeoButton/SeoButtonInner.js.map +1 -1
- package/dist/components/SeoDrawer/TabsNav/index.js +1 -1
- package/dist/components/SeoDrawer/TabsNav/variants.js +3 -3
- package/dist/components/SeoDrawer/components/Header.js +6 -6
- package/dist/components/SeoDrawer/components/HeadingsSection/HeadingIssueBanner.js +4 -4
- package/dist/components/SeoDrawer/components/HeadingsSection/HeadingIssuePills.js +1 -1
- package/dist/components/SeoDrawer/components/HeadingsSection/HeadingLevelTiles.js +7 -7
- package/dist/components/SeoDrawer/components/HeadingsSection/HeadingTree/Chevron.js +2 -2
- package/dist/components/SeoDrawer/components/HeadingsSection/HeadingTree/HeadingTreeGroup.js +3 -3
- package/dist/components/SeoDrawer/components/HeadingsSection/HeadingTree/HeadingTreeRow.js +8 -8
- package/dist/components/SeoDrawer/components/HeadingsSection/HeadingTree/index.js +5 -5
- package/dist/components/SeoDrawer/components/HeadingsSection/HeadingTree/index.js.map +1 -1
- package/dist/components/SeoDrawer/components/HeadingsSection/index.js +1 -1
- package/dist/components/SeoDrawer/components/SerpPreview/index.js +2 -2
- package/dist/components/SeoDrawer/components/SerpPreview/serp-favicon.js +1 -1
- package/dist/components/SeoDrawer/components/SerpPreview/variants.js +13 -13
- package/dist/components/SeoDrawer/components/TabWrapper.js +1 -1
- package/dist/components/SeoDrawer/index.js +5 -5
- package/dist/components/SeoDrawer/index.js.map +1 -1
- package/dist/components/SeoDrawer/tabs/InclusiveTab.js +11 -11
- package/dist/components/SeoDrawer/tabs/KeyphraseTab.js +1 -1
- package/dist/components/SeoDrawer/tabs/OnPageTab.js +1 -1
- package/dist/components/SeoDrawer/tabs/ReadabilityTab.js +1 -1
- package/dist/components/SeoDrawer/tabs/SerpTab.js +4 -4
- package/dist/components/SeoDrawer/tabs/VitalsTab.js +10 -10
- package/dist/components/SeoDrawer/tabs/keyphrase/KeyphraseCard.d.ts.map +1 -1
- package/dist/components/SeoDrawer/tabs/keyphrase/KeyphraseCard.js +5 -5
- package/dist/components/SeoDrawer/tabs/keyphrase/KeyphraseCard.js.map +1 -1
- package/dist/components/SeoDrawer/tabs/keyphrase/KeyphraseDetail.js +14 -14
- package/dist/components/SeoDrawer/tabs/keyphrase/KeyphraseRail.js +4 -4
- package/dist/components/SeoDrawer/tabs/keyphrase/SynonymsField.js +14 -14
- package/dist/components/SeoDrawer/tabs/keyphrase/SynonymsField.js.map +1 -1
- package/dist/components/SeoDrawer/variants.js +4 -4
- package/dist/components/SeoDrawer/variants.js.map +1 -1
- package/dist/components/SeoField/Meter.js +6 -6
- package/dist/components/SeoField/index.d.ts.map +1 -1
- package/dist/components/SeoField/index.js +9 -7
- package/dist/components/SeoField/index.js.map +1 -1
- package/dist/ui/CheckRow/CheckVisualization/visualizations/DensityGauge.js +10 -10
- package/dist/ui/CheckRow/CheckVisualization/visualizations/DistributionBar.js +3 -3
- package/dist/ui/CheckRow/CheckVisualization/visualizations/DistributionBar.js.map +1 -1
- package/dist/ui/CheckRow/CheckVisualization/visualizations/DrillDown.js +4 -4
- package/dist/ui/CheckRow/CheckVisualization/visualizations/SegmentBar.js +10 -10
- package/dist/ui/CheckRow/index.js +6 -6
- package/dist/ui/FilterPills.js +6 -6
- package/dist/ui/IconButton.js +3 -3
- package/dist/ui/KpiCard.js +4 -4
- package/dist/ui/Pill.js +5 -5
- package/dist/ui/ScoreRing.js +10 -10
- package/dist/ui/SectionCard.js +3 -3
- package/dist/ui/SectionWrapper.js +1 -1
- package/dist/ui/SegmentedControl.js +4 -4
- package/dist/ui/TabHeader.js +5 -5
- package/dist/ui/Tooltip.js +4 -4
- package/dist/utils/style.d.ts +1 -1
- package/dist/utils/style.d.ts.map +1 -1
- package/dist/utils/style.js +5 -2
- package/dist/utils/style.js.map +1 -1
- package/package.json +3 -3
|
@@ -3,13 +3,13 @@ import { jsx } from "react/jsx-runtime";
|
|
|
3
3
|
import { cva } from "class-variance-authority";
|
|
4
4
|
import { cn } from "../../utils/style";
|
|
5
5
|
const badgeVariants = cva(
|
|
6
|
-
"absolute
|
|
6
|
+
"frseo:absolute frseo:-top-1 frseo:-right-1 frseo:min-w-[14px] frseo:h-[14px] frseo:px-[3px] frseo:rounded-full frseo:text-seo-badge-fg frseo:text-[9px] frseo:font-semibold frseo:leading-[14px] frseo:text-center frseo:pointer-events-none frseo:select-none",
|
|
7
7
|
{
|
|
8
8
|
variants: {
|
|
9
9
|
status: {
|
|
10
|
-
good: "bg-seo-good",
|
|
11
|
-
warn: "bg-seo-warn",
|
|
12
|
-
bad: "bg-seo-bad"
|
|
10
|
+
good: "frseo:bg-seo-good",
|
|
11
|
+
warn: "frseo:bg-seo-warn",
|
|
12
|
+
bad: "frseo:bg-seo-bad"
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/SeoButton/ScoreBadge.tsx"],"sourcesContent":["\"use client\";\n\nimport type { Status } from \"../../engine/types/analysis\";\nimport { cva } from \"class-variance-authority\";\nimport { cn } from \"../../utils/style\";\n\nconst badgeVariants = cva(\n \"absolute -top-1 -right-1 min-w-[14px] h-[14px] px-[3px] rounded-full text-
|
|
1
|
+
{"version":3,"sources":["../../../src/components/SeoButton/ScoreBadge.tsx"],"sourcesContent":["\"use client\";\n\nimport type { Status } from \"../../engine/types/analysis\";\nimport { cva } from \"class-variance-authority\";\nimport { cn } from \"../../utils/style\";\n\nconst badgeVariants = cva(\n \"absolute -top-1 -right-1 min-w-[14px] h-[14px] px-[3px] rounded-full text-seo-badge-fg text-[9px] font-semibold leading-[14px] text-center pointer-events-none select-none\",\n {\n variants: {\n status: {\n good: \"bg-seo-good\",\n warn: \"bg-seo-warn\",\n bad: \"bg-seo-bad\",\n },\n },\n }\n);\n\ninterface ScoreBadgeProps {\n score: number;\n status: Status;\n className?: string;\n}\n\nexport function ScoreBadge({ score, status, className }: ScoreBadgeProps) {\n return (\n <span aria-label={`SEO score ${score}`} className={cn(badgeVariants({ status }), className)}>\n {score}\n </span>\n );\n}\n"],"mappings":";AA2BI;AAxBJ,SAAS,WAAW;AACpB,SAAS,UAAU;AAEnB,MAAM,gBAAgB;AAAA,EACpB;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,QAAQ;AAAA,QACN,MAAM;AAAA,QACN,MAAM;AAAA,QACN,KAAK;AAAA,MACP;AAAA,IACF;AAAA,EACF;AACF;AAQO,SAAS,WAAW,EAAE,OAAO,QAAQ,UAAU,GAAoB;AACxE,SACE,oBAAC,UAAK,cAAY,aAAa,KAAK,IAAI,WAAW,GAAG,cAAc,EAAE,OAAO,CAAC,GAAG,SAAS,GACvF,iBACH;AAEJ;","names":[]}
|
|
@@ -60,13 +60,13 @@ function SeoButtonInner({
|
|
|
60
60
|
},
|
|
61
61
|
[removeKeyphrase]
|
|
62
62
|
);
|
|
63
|
-
return /* @__PURE__ */ jsxs("span", { className: "relative inline-flex", children: [
|
|
63
|
+
return /* @__PURE__ */ jsxs("span", { className: "frseo:relative frseo:inline-flex", children: [
|
|
64
64
|
/* @__PURE__ */ jsx(
|
|
65
65
|
Button,
|
|
66
66
|
{
|
|
67
67
|
"aria-label": "SEO Analytics",
|
|
68
68
|
buttonStyle: "none",
|
|
69
|
-
className: "
|
|
69
|
+
className: "frseo-doc-btn frseo:m-0 frseo:w-[calc(var(--base)*1.6)] frseo:h-[calc(var(--base)*1.6)] frseo:inline-flex frseo:items-center frseo:justify-center frseo:border frseo:border-[var(--theme-elevation-100)] frseo:rounded-rs frseo:bg-transparent frseo:text-neutral-800 frseo:transition-[border-color,background-color] frseo:duration-100 frseo:hover:border-neutral-300 frseo:hover:bg-neutral-100",
|
|
70
70
|
extraButtonProps: { title: void 0 },
|
|
71
71
|
icon: /* @__PURE__ */ jsx(Gauge, {}),
|
|
72
72
|
iconStyle: "without-border",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/SeoButton/SeoButtonInner.tsx"],"sourcesContent":["\"use client\";\n\nimport { Button, useDocumentInfo, useLocale, useModal } from \"@payloadcms/ui\";\nimport { Gauge } from \"lucide-react\";\nimport { useCallback, useState } from \"react\";\nimport { ScoreBadge } from \"./ScoreBadge\";\nimport { SeoDrawer } from \"../SeoDrawer\";\nimport { useAnalysis } from \"../SeoDrawer/useAnalysis\";\nimport { useKeyphrases } from \"../SeoDrawer/useKeyphrases\";\nimport { useLiveDocument } from \"../SeoDrawer/useLiveDocument\";\n\nexport interface SeoButtonProps {\n collectionSlug: string;\n fields: Record<string, string>;\n extractContentPath: string;\n site: { name: string; baseUrl: string; faviconUrl: string };\n supportedLocales: string[];\n}\n\nconst DRAWER_SLUG = \"seo-analytics-drawer\";\n\nexport function SeoButtonInner({\n collectionSlug,\n fields,\n site,\n supportedLocales,\n extractContentPath,\n}: SeoButtonProps) {\n const { openModal } = useModal();\n const { id } = useDocumentInfo();\n const locale = useLocale();\n\n const docId = id == null ? \"\" : String(id);\n const localeCode = locale?.code ?? \"en\";\n\n const {\n addRelated,\n addSynonym,\n isDuplicate,\n keyphrases,\n remove: removeKeyphrase,\n removeSynonym,\n setFocus,\n updateText,\n } = useKeyphrases({ collectionSlug, docId, localeCode });\n const [selectedId, setSelectedId] = useState<string | null>(null);\n const { signature, getInput } = useLiveDocument({\n collectionSlug,\n fields,\n site: {\n name: site.name,\n baseUrl: site.baseUrl,\n },\n keyphrases,\n extractContentPath,\n });\n const { result, analyzing, analyzeNow } = useAnalysis({ getInput, signature, supportedLocales });\n\n const overall = result?.overall ?? null;\n\n const open = useCallback(() => {\n analyzeNow();\n openModal(DRAWER_SLUG);\n }, [analyzeNow, openModal]);\n\n const handleAddRelated = useCallback(() => {\n const newId = addRelated();\n if (newId) setSelectedId(newId);\n }, [addRelated]);\n\n const handleRemove = useCallback(\n (id: string) => {\n removeKeyphrase(id);\n setSelectedId((current) => (current === id ? null : current));\n },\n [removeKeyphrase]\n );\n\n return (\n <span className=\"relative inline-flex\">\n <Button\n aria-label=\"SEO Analytics\"\n buttonStyle=\"none\"\n className=\"
|
|
1
|
+
{"version":3,"sources":["../../../src/components/SeoButton/SeoButtonInner.tsx"],"sourcesContent":["\"use client\";\n\nimport { Button, useDocumentInfo, useLocale, useModal } from \"@payloadcms/ui\";\nimport { Gauge } from \"lucide-react\";\nimport { useCallback, useState } from \"react\";\nimport { ScoreBadge } from \"./ScoreBadge\";\nimport { SeoDrawer } from \"../SeoDrawer\";\nimport { useAnalysis } from \"../SeoDrawer/useAnalysis\";\nimport { useKeyphrases } from \"../SeoDrawer/useKeyphrases\";\nimport { useLiveDocument } from \"../SeoDrawer/useLiveDocument\";\n\nexport interface SeoButtonProps {\n collectionSlug: string;\n fields: Record<string, string>;\n extractContentPath: string;\n site: { name: string; baseUrl: string; faviconUrl: string };\n supportedLocales: string[];\n}\n\nconst DRAWER_SLUG = \"seo-analytics-drawer\";\n\nexport function SeoButtonInner({\n collectionSlug,\n fields,\n site,\n supportedLocales,\n extractContentPath,\n}: SeoButtonProps) {\n const { openModal } = useModal();\n const { id } = useDocumentInfo();\n const locale = useLocale();\n\n const docId = id == null ? \"\" : String(id);\n const localeCode = locale?.code ?? \"en\";\n\n const {\n addRelated,\n addSynonym,\n isDuplicate,\n keyphrases,\n remove: removeKeyphrase,\n removeSynonym,\n setFocus,\n updateText,\n } = useKeyphrases({ collectionSlug, docId, localeCode });\n const [selectedId, setSelectedId] = useState<string | null>(null);\n const { signature, getInput } = useLiveDocument({\n collectionSlug,\n fields,\n site: {\n name: site.name,\n baseUrl: site.baseUrl,\n },\n keyphrases,\n extractContentPath,\n });\n const { result, analyzing, analyzeNow } = useAnalysis({ getInput, signature, supportedLocales });\n\n const overall = result?.overall ?? null;\n\n const open = useCallback(() => {\n analyzeNow();\n openModal(DRAWER_SLUG);\n }, [analyzeNow, openModal]);\n\n const handleAddRelated = useCallback(() => {\n const newId = addRelated();\n if (newId) setSelectedId(newId);\n }, [addRelated]);\n\n const handleRemove = useCallback(\n (id: string) => {\n removeKeyphrase(id);\n setSelectedId((current) => (current === id ? null : current));\n },\n [removeKeyphrase]\n );\n\n return (\n <span className=\"relative inline-flex\">\n <Button\n aria-label=\"SEO Analytics\"\n buttonStyle=\"none\"\n className=\"frseo-doc-btn m-0 w-[calc(var(--base)*1.6)] h-[calc(var(--base)*1.6)] inline-flex items-center justify-center border border-[var(--theme-elevation-100)] rounded-rs bg-transparent text-neutral-800 transition-[border-color,background-color] duration-100 hover:border-neutral-300 hover:bg-neutral-100\"\n extraButtonProps={{ title: undefined }}\n icon={<Gauge />}\n iconStyle=\"without-border\"\n margin={false}\n onClick={open}\n size=\"small\"\n tooltip=\"SEO Analytics\"\n />\n {overall && <ScoreBadge score={overall.seoScore} status={overall.status} />}\n\n <SeoDrawer\n drawerSlug={DRAWER_SLUG}\n keyphrases={keyphrases}\n selectedId={selectedId}\n onSelect={setSelectedId}\n result={result}\n analyzing={analyzing}\n onAddRelated={handleAddRelated}\n onTextChange={updateText}\n onAddSynonym={addSynonym}\n onRemoveSynonym={removeSynonym}\n onRemove={handleRemove}\n onSetFocus={setFocus}\n isDuplicate={isDuplicate}\n site={site}\n />\n </span>\n );\n}\n"],"mappings":";AA+EI,SAMU,KANV;AA7EJ,SAAS,QAAQ,iBAAiB,WAAW,gBAAgB;AAC7D,SAAS,aAAa;AACtB,SAAS,aAAa,gBAAgB;AACtC,SAAS,kBAAkB;AAC3B,SAAS,iBAAiB;AAC1B,SAAS,mBAAmB;AAC5B,SAAS,qBAAqB;AAC9B,SAAS,uBAAuB;AAUhC,MAAM,cAAc;AAEb,SAAS,eAAe;AAAA,EAC7B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAAmB;AACjB,QAAM,EAAE,UAAU,IAAI,SAAS;AAC/B,QAAM,EAAE,GAAG,IAAI,gBAAgB;AAC/B,QAAM,SAAS,UAAU;AAEzB,QAAM,QAAQ,MAAM,OAAO,KAAK,OAAO,EAAE;AACzC,QAAM,aAAa,QAAQ,QAAQ;AAEnC,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,QAAQ;AAAA,IACR;AAAA,IACA;AAAA,IACA;AAAA,EACF,IAAI,cAAc,EAAE,gBAAgB,OAAO,WAAW,CAAC;AACvD,QAAM,CAAC,YAAY,aAAa,IAAI,SAAwB,IAAI;AAChE,QAAM,EAAE,WAAW,SAAS,IAAI,gBAAgB;AAAA,IAC9C;AAAA,IACA;AAAA,IACA,MAAM;AAAA,MACJ,MAAM,KAAK;AAAA,MACX,SAAS,KAAK;AAAA,IAChB;AAAA,IACA;AAAA,IACA;AAAA,EACF,CAAC;AACD,QAAM,EAAE,QAAQ,WAAW,WAAW,IAAI,YAAY,EAAE,UAAU,WAAW,iBAAiB,CAAC;AAE/F,QAAM,UAAU,QAAQ,WAAW;AAEnC,QAAM,OAAO,YAAY,MAAM;AAC7B,eAAW;AACX,cAAU,WAAW;AAAA,EACvB,GAAG,CAAC,YAAY,SAAS,CAAC;AAE1B,QAAM,mBAAmB,YAAY,MAAM;AACzC,UAAM,QAAQ,WAAW;AACzB,QAAI;AAAO,oBAAc,KAAK;AAAA,EAChC,GAAG,CAAC,UAAU,CAAC;AAEf,QAAM,eAAe;AAAA,IACnB,CAACA,QAAe;AACd,sBAAgBA,GAAE;AAClB,oBAAc,CAAC,YAAa,YAAYA,MAAK,OAAO,OAAQ;AAAA,IAC9D;AAAA,IACA,CAAC,eAAe;AAAA,EAClB;AAEA,SACE,qBAAC,UAAK,WAAU,wBACd;AAAA;AAAA,MAAC;AAAA;AAAA,QACC,cAAW;AAAA,QACX,aAAY;AAAA,QACZ,WAAU;AAAA,QACV,kBAAkB,EAAE,OAAO,OAAU;AAAA,QACrC,MAAM,oBAAC,SAAM;AAAA,QACb,WAAU;AAAA,QACV,QAAQ;AAAA,QACR,SAAS;AAAA,QACT,MAAK;AAAA,QACL,SAAQ;AAAA;AAAA,IACV;AAAA,IACC,WAAW,oBAAC,cAAW,OAAO,QAAQ,UAAU,QAAQ,QAAQ,QAAQ;AAAA,IAEzE;AAAA,MAAC;AAAA;AAAA,QACC,YAAY;AAAA,QACZ;AAAA,QACA;AAAA,QACA,UAAU;AAAA,QACV;AAAA,QACA;AAAA,QACA,cAAc;AAAA,QACd,cAAc;AAAA,QACd,cAAc;AAAA,QACd,iBAAiB;AAAA,QACjB,UAAU;AAAA,QACV,YAAY;AAAA,QACZ;AAAA,QACA;AAAA;AAAA,IACF;AAAA,KACF;AAEJ;","names":["id"]}
|
|
@@ -7,7 +7,7 @@ function TabsNav({ active, onChange }) {
|
|
|
7
7
|
"nav",
|
|
8
8
|
{
|
|
9
9
|
role: "tablist",
|
|
10
|
-
className: "flex shrink-0 gap-[20px] border-b border-neutral-200 overflow-x-auto",
|
|
10
|
+
className: "frseo:flex frseo:shrink-0 frseo:gap-[20px] frseo:border-b frseo:border-neutral-200 frseo:overflow-x-auto",
|
|
11
11
|
children: TABS.map(({ key, label, icon: Icon }) => /* @__PURE__ */ jsxs(
|
|
12
12
|
"button",
|
|
13
13
|
{
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { cva } from "class-variance-authority";
|
|
2
2
|
const tabVariants = cva(
|
|
3
|
-
"inline-flex items-center gap-[6px] py-[11px] bg-transparent whitespace-nowrap text-[12.5px] cursor-pointer",
|
|
3
|
+
"frseo:inline-flex frseo:items-center frseo:gap-[6px] frseo:py-[11px] frseo:bg-transparent frseo:whitespace-nowrap frseo:text-[12.5px] frseo:cursor-pointer",
|
|
4
4
|
{
|
|
5
5
|
variants: {
|
|
6
6
|
active: {
|
|
7
|
-
true: "text-neutral-1000 font-medium",
|
|
8
|
-
false: "text-neutral-500 hover:text-neutral-800"
|
|
7
|
+
true: "frseo:text-neutral-1000 frseo:font-medium",
|
|
8
|
+
false: "frseo:text-neutral-500 frseo:hover:text-neutral-800"
|
|
9
9
|
}
|
|
10
10
|
},
|
|
11
11
|
defaultVariants: { active: false }
|
|
@@ -6,26 +6,26 @@ import { statusVar } from "../variants";
|
|
|
6
6
|
import { Pill } from "../../../ui/Pill";
|
|
7
7
|
function Header({ drawerSlug, total, totalStatus }) {
|
|
8
8
|
const { closeModal } = useModal();
|
|
9
|
-
return /* @__PURE__ */ jsxs("div", { className: "relative flex items-center justify-between px-[4px] py-[16px]", children: [
|
|
10
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-[11px]", children: [
|
|
11
|
-
/* @__PURE__ */ jsx("h2", { className: "text-[16px] font-semibold m-0", children: "SEO Analytics" }),
|
|
9
|
+
return /* @__PURE__ */ jsxs("div", { className: "frseo:relative frseo:flex frseo:items-center frseo:justify-between frseo:px-[4px] frseo:py-[16px]", children: [
|
|
10
|
+
/* @__PURE__ */ jsxs("div", { className: "frseo:flex frseo:items-center frseo:gap-[11px]", children: [
|
|
11
|
+
/* @__PURE__ */ jsx("h2", { className: "frseo:text-[16px] frseo:font-semibold frseo:m-0", children: "SEO Analytics" }),
|
|
12
12
|
totalStatus === "idle" ? null : /* @__PURE__ */ jsx(Pill, { variant: totalStatus, children: total })
|
|
13
13
|
] }),
|
|
14
14
|
/* @__PURE__ */ jsx(
|
|
15
15
|
"button",
|
|
16
16
|
{
|
|
17
17
|
"aria-label": "Close",
|
|
18
|
-
className: "drawer__header__close",
|
|
18
|
+
className: "frseo:drawer__header__close",
|
|
19
19
|
onClick: () => closeModal(drawerSlug),
|
|
20
20
|
type: "button",
|
|
21
21
|
children: /* @__PURE__ */ jsx(XIcon, {})
|
|
22
22
|
}
|
|
23
23
|
),
|
|
24
|
-
/* @__PURE__ */ jsx("div", { className: "absolute inset-x-0 bottom-0 h-[2px] bg-neutral-150", children: /* @__PURE__ */ jsx(
|
|
24
|
+
/* @__PURE__ */ jsx("div", { className: "frseo:absolute frseo:inset-x-0 frseo:bottom-0 frseo:h-[2px] frseo:bg-neutral-150", children: /* @__PURE__ */ jsx(
|
|
25
25
|
"i",
|
|
26
26
|
{
|
|
27
27
|
className: cn(
|
|
28
|
-
"block h-full",
|
|
28
|
+
"frseo:block frseo:h-full",
|
|
29
29
|
totalStatus === "idle" ? void 0 : statusVar({ status: totalStatus })
|
|
30
30
|
),
|
|
31
31
|
style: { width: `${total}%`, background: "var(--seo-c)" }
|
|
@@ -4,19 +4,19 @@ import { TriangleAlert } from "lucide-react";
|
|
|
4
4
|
import { describeDocIssue } from "./headingIssueCopy";
|
|
5
5
|
function HeadingIssueBanner({ issue }) {
|
|
6
6
|
const { title, body } = describeDocIssue(issue);
|
|
7
|
-
return /* @__PURE__ */ jsxs("div", { className: "mx-[15px] mt-[12px] flex items-start gap-[9px] rounded-rs border border-seo-bad/25 bg-seo-bad-100 px-[11px] py-[9px]", children: [
|
|
7
|
+
return /* @__PURE__ */ jsxs("div", { className: "frseo:mx-[15px] frseo:mt-[12px] frseo:flex frseo:items-start frseo:gap-[9px] frseo:rounded-rs frseo:border frseo:border-seo-bad/25 frseo:bg-seo-bad-100 frseo:px-[11px] frseo:py-[9px]", children: [
|
|
8
8
|
/* @__PURE__ */ jsx(
|
|
9
9
|
TriangleAlert,
|
|
10
10
|
{
|
|
11
11
|
size: 15,
|
|
12
12
|
strokeWidth: 2.2,
|
|
13
13
|
"aria-hidden": "true",
|
|
14
|
-
className: "mt-[1px] flex-none text-seo-bad"
|
|
14
|
+
className: "frseo:mt-[1px] frseo:flex-none frseo:text-seo-bad"
|
|
15
15
|
}
|
|
16
16
|
),
|
|
17
17
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
18
|
-
/* @__PURE__ */ jsx("div", { className: "text-[12px] font-bold leading-[1.35] text-seo-bad", children: title }),
|
|
19
|
-
/* @__PURE__ */ jsx("div", { className: "mt-[2px] text-[11.5px] leading-[1.4] text-neutral-700", children: body })
|
|
18
|
+
/* @__PURE__ */ jsx("div", { className: "frseo:text-[12px] frseo:font-bold frseo:leading-[1.35] frseo:text-seo-bad", children: title }),
|
|
19
|
+
/* @__PURE__ */ jsx("div", { className: "frseo:mt-[2px] frseo:text-[11.5px] frseo:leading-[1.4] frseo:text-neutral-700", children: body })
|
|
20
20
|
] })
|
|
21
21
|
] });
|
|
22
22
|
}
|
|
@@ -5,7 +5,7 @@ function countLabel(count, noun) {
|
|
|
5
5
|
return count === 1 ? `1 ${noun}` : `${count} ${noun}s`;
|
|
6
6
|
}
|
|
7
7
|
function HeadingIssuePills({ errors, warnings, total }) {
|
|
8
|
-
return /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-[6px]", children: [
|
|
8
|
+
return /* @__PURE__ */ jsxs("div", { className: "frseo:flex frseo:items-center frseo:gap-[6px]", children: [
|
|
9
9
|
errors > 0 ? /* @__PURE__ */ jsx(Pill, { variant: "bad", children: countLabel(errors, "error") }) : null,
|
|
10
10
|
warnings > 0 ? /* @__PURE__ */ jsx(Pill, { variant: "warn", children: countLabel(warnings, "warning") }) : null,
|
|
11
11
|
/* @__PURE__ */ jsx(Pill, { variant: "neutral", children: total })
|
|
@@ -2,22 +2,22 @@
|
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { cn } from "../../../../utils/style";
|
|
4
4
|
function HeadingLevelTiles({ levels }) {
|
|
5
|
-
return /* @__PURE__ */ jsx("div", { className: "grid grid-cols-6 gap-[6px] px-[15px] pt-[8px] pb-[12px]", children: levels.map(({ level, count }) => {
|
|
5
|
+
return /* @__PURE__ */ jsx("div", { className: "frseo:grid frseo:grid-cols-6 frseo:gap-[6px] frseo:px-[15px] frseo:pt-[8px] frseo:pb-[12px]", children: levels.map(({ level, count }) => {
|
|
6
6
|
const zero = count === 0;
|
|
7
7
|
return /* @__PURE__ */ jsxs(
|
|
8
8
|
"div",
|
|
9
9
|
{
|
|
10
10
|
className: cn(
|
|
11
|
-
"flex items-baseline justify-center gap-[5px] rounded-rs border px-[2px] py-[7px]",
|
|
12
|
-
zero ? "border-dashed border-neutral-300 bg-neutral-50" : "border-neutral-200 bg-neutral-0"
|
|
11
|
+
"frseo:flex frseo:items-baseline frseo:justify-center frseo:gap-[5px] frseo:rounded-rs frseo:border frseo:px-[2px] frseo:py-[7px]",
|
|
12
|
+
zero ? "frseo:border-dashed frseo:border-neutral-300 frseo:bg-neutral-50" : "frseo:border-neutral-200 frseo:bg-neutral-0"
|
|
13
13
|
),
|
|
14
14
|
children: [
|
|
15
15
|
/* @__PURE__ */ jsxs(
|
|
16
16
|
"span",
|
|
17
17
|
{
|
|
18
18
|
className: cn(
|
|
19
|
-
"font-mono text-[12px] font-semibold",
|
|
20
|
-
zero ? "text-neutral-400" : "text-neutral-500"
|
|
19
|
+
"frseo:font-mono frseo:text-[12px] frseo:font-semibold",
|
|
20
|
+
zero ? "frseo:text-neutral-400" : "frseo:text-neutral-500"
|
|
21
21
|
),
|
|
22
22
|
children: [
|
|
23
23
|
"H",
|
|
@@ -29,8 +29,8 @@ function HeadingLevelTiles({ levels }) {
|
|
|
29
29
|
"span",
|
|
30
30
|
{
|
|
31
31
|
className: cn(
|
|
32
|
-
"font-mono text-[12px] font-bold",
|
|
33
|
-
zero ? "text-neutral-300" : "text-neutral-1000"
|
|
32
|
+
"frseo:font-mono frseo:text-[12px] frseo:font-bold",
|
|
33
|
+
zero ? "frseo:text-neutral-300" : "frseo:text-neutral-1000"
|
|
34
34
|
),
|
|
35
35
|
children: count
|
|
36
36
|
}
|
|
@@ -9,8 +9,8 @@ function Chevron({ open }) {
|
|
|
9
9
|
strokeWidth: 2.2,
|
|
10
10
|
"aria-hidden": "true",
|
|
11
11
|
className: cn(
|
|
12
|
-
"flex-none text-neutral-500 transition-transform duration-150",
|
|
13
|
-
!open && "
|
|
12
|
+
"frseo:flex-none frseo:text-neutral-500 frseo:transition-transform frseo:duration-150",
|
|
13
|
+
!open && "frseo:-rotate-90"
|
|
14
14
|
)
|
|
15
15
|
}
|
|
16
16
|
);
|
package/dist/components/SeoDrawer/components/HeadingsSection/HeadingTree/HeadingTreeGroup.js
CHANGED
|
@@ -18,12 +18,12 @@ function HeadingTreeNode({
|
|
|
18
18
|
collapsed,
|
|
19
19
|
onBadgeMount
|
|
20
20
|
});
|
|
21
|
-
return /* @__PURE__ */ jsxs("div", { ref: containerRef, className: "relative", children: [
|
|
21
|
+
return /* @__PURE__ */ jsxs("div", { ref: containerRef, className: "frseo:relative", children: [
|
|
22
22
|
rails ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
23
23
|
/* @__PURE__ */ jsx(
|
|
24
24
|
"span",
|
|
25
25
|
{
|
|
26
|
-
className: "absolute w-[1.1px] bg-neutral-150",
|
|
26
|
+
className: "frseo:absolute frseo:w-[1.1px] frseo:bg-neutral-150",
|
|
27
27
|
style: {
|
|
28
28
|
left: rails.vertical.left,
|
|
29
29
|
top: rails.vertical.top,
|
|
@@ -34,7 +34,7 @@ function HeadingTreeNode({
|
|
|
34
34
|
rails.elbows.map((elbow) => /* @__PURE__ */ jsx(
|
|
35
35
|
"span",
|
|
36
36
|
{
|
|
37
|
-
className: "absolute h-[1.1px] bg-neutral-150",
|
|
37
|
+
className: "frseo:absolute frseo:h-[1.1px] frseo:bg-neutral-150",
|
|
38
38
|
style: {
|
|
39
39
|
left: elbow.left,
|
|
40
40
|
top: elbow.top,
|
|
@@ -17,8 +17,8 @@ function HeadingTreeRow({
|
|
|
17
17
|
{
|
|
18
18
|
ref: rowRef,
|
|
19
19
|
className: cn(
|
|
20
|
-
"relative flex items-center gap-[9px] h-[34px] box-border",
|
|
21
|
-
hasKids && "cursor-pointer focus-visible:outline-2 focus-visible:outline-neutral-400 focus-visible:-outline-offset-2"
|
|
20
|
+
"frseo:relative frseo:flex frseo:items-center frseo:gap-[9px] frseo:h-[34px] frseo:box-border",
|
|
21
|
+
hasKids && "frseo:cursor-pointer frseo:focus-visible:outline-2 frseo:focus-visible:outline-neutral-400 frseo:focus-visible:-outline-offset-2"
|
|
22
22
|
),
|
|
23
23
|
style: { paddingLeft: depth * 20 },
|
|
24
24
|
role: hasKids ? "button" : void 0,
|
|
@@ -37,7 +37,7 @@ function HeadingTreeRow({
|
|
|
37
37
|
"span",
|
|
38
38
|
{
|
|
39
39
|
ref: badgeRef,
|
|
40
|
-
className: "flex-none font-mono text-[9px] font-bold leading-[100%] text-neutral-1000 bg-neutral-150 rounded-rs px-[6px] py-[3px] min-w-[22px] text-center",
|
|
40
|
+
className: "frseo:flex-none frseo:font-mono frseo:text-[9px] frseo:font-bold frseo:leading-[100%] frseo:text-neutral-1000 frseo:bg-neutral-150 frseo:rounded-rs frseo:px-[6px] frseo:py-[3px] frseo:min-w-[22px] frseo:text-center",
|
|
41
41
|
children: [
|
|
42
42
|
"H",
|
|
43
43
|
node.level
|
|
@@ -48,19 +48,19 @@ function HeadingTreeRow({
|
|
|
48
48
|
"div",
|
|
49
49
|
{
|
|
50
50
|
className: cn(
|
|
51
|
-
"flex-1 min-w-0 flex items-center gap-[9px] h-full",
|
|
52
|
-
!globalFirst && "border-t border-neutral-150"
|
|
51
|
+
"frseo:flex-1 frseo:min-w-0 frseo:flex frseo:items-center frseo:gap-[9px] frseo:h-full",
|
|
52
|
+
!globalFirst && "frseo:border-t frseo:border-neutral-150"
|
|
53
53
|
),
|
|
54
54
|
children: [
|
|
55
55
|
node.text ? /* @__PURE__ */ jsx(
|
|
56
56
|
"span",
|
|
57
57
|
{
|
|
58
|
-
className: "flex-1 min-w-0 truncate text-[12px] font-medium text-neutral-800",
|
|
58
|
+
className: "frseo:flex-1 frseo:min-w-0 frseo:truncate frseo:text-[12px] frseo:font-medium frseo:text-neutral-800",
|
|
59
59
|
title: node.text,
|
|
60
60
|
children: node.text
|
|
61
61
|
}
|
|
62
|
-
) : /* @__PURE__ */ jsx("span", { className: "flex-1 min-w-0 truncate text-[12px] font-medium italic text-neutral-400", children: "(empty heading)" }),
|
|
63
|
-
node.issue ? /* @__PURE__ */ jsx("span", { className: "flex-none inline-flex items-center rounded-[20px] bg-seo-warn-100 px-[8px] py-[2px] text-[9.5px] font-bold tracking-[0.02em] text-seo-warn", children: formatSkippedLevels(node.issue.skipped) }) : null,
|
|
62
|
+
) : /* @__PURE__ */ jsx("span", { className: "frseo:flex-1 frseo:min-w-0 frseo:truncate frseo:text-[12px] frseo:font-medium frseo:italic frseo:text-neutral-400", children: "(empty heading)" }),
|
|
63
|
+
node.issue ? /* @__PURE__ */ jsx("span", { className: "frseo:flex-none frseo:inline-flex frseo:items-center frseo:rounded-[20px] frseo:bg-seo-warn-100 frseo:px-[8px] frseo:py-[2px] frseo:text-[9.5px] frseo:font-bold frseo:tracking-[0.02em] frseo:text-seo-warn", children: formatSkippedLevels(node.issue.skipped) }) : null,
|
|
64
64
|
hasKids ? /* @__PURE__ */ jsx(Chevron, { open: isOpen }) : null
|
|
65
65
|
]
|
|
66
66
|
}
|
|
@@ -4,7 +4,7 @@ import { useMemo, useState } from "react";
|
|
|
4
4
|
import { cn } from "../../../../../utils/style";
|
|
5
5
|
import { collectParentIds } from "./headingTreeView";
|
|
6
6
|
import { HeadingTreeGroup } from "./HeadingTreeGroup";
|
|
7
|
-
const SUB_LABEL = "text-[9.5px] font-semibold uppercase tracking-[0.05em] text-neutral-500";
|
|
7
|
+
const SUB_LABEL = cn("frseo:text-[9.5px] frseo:font-semibold frseo:uppercase frseo:tracking-[0.05em] frseo:text-neutral-500");
|
|
8
8
|
function HeadingTree({ tree }) {
|
|
9
9
|
const parentIds = useMemo(() => collectParentIds(tree), [tree]);
|
|
10
10
|
const [collapsed, setCollapsed] = useState(() => /* @__PURE__ */ new Set());
|
|
@@ -19,20 +19,20 @@ function HeadingTree({ tree }) {
|
|
|
19
19
|
next.add(id);
|
|
20
20
|
return next;
|
|
21
21
|
});
|
|
22
|
-
return /* @__PURE__ */ jsxs("div", { className: "px-[15px] pt-[11px] border-t border-neutral-150", children: [
|
|
23
|
-
/* @__PURE__ */ jsxs("div", { className: cn(SUB_LABEL, "flex items-center justify-between"), children: [
|
|
22
|
+
return /* @__PURE__ */ jsxs("div", { className: "frseo:px-[15px] frseo:pt-[11px] frseo:border-t frseo:border-neutral-150", children: [
|
|
23
|
+
/* @__PURE__ */ jsxs("div", { className: cn(SUB_LABEL, "frseo:flex frseo:items-center frseo:justify-between"), children: [
|
|
24
24
|
/* @__PURE__ */ jsx("span", { children: "Structure" }),
|
|
25
25
|
!empty && /* @__PURE__ */ jsx(
|
|
26
26
|
"button",
|
|
27
27
|
{
|
|
28
28
|
type: "button",
|
|
29
29
|
onClick: toggleAll,
|
|
30
|
-
className: "text-[11px] font-medium normal-case tracking-normal text-neutral-600 hover:text-neutral-1000 hover:underline underline-offset-2 bg-transparent border-0 p-0 cursor-pointer",
|
|
30
|
+
className: "frseo:text-[11px] frseo:font-medium frseo:normal-case frseo:tracking-normal frseo:text-neutral-600 frseo:hover:text-neutral-1000 frseo:hover:underline frseo:underline-offset-2 frseo:bg-transparent frseo:border-0 frseo:p-0 frseo:cursor-pointer",
|
|
31
31
|
children: allCollapsed ? "Expand all" : "Collapse all"
|
|
32
32
|
}
|
|
33
33
|
)
|
|
34
34
|
] }),
|
|
35
|
-
empty ? /* @__PURE__ */ jsx("div", { className: "px-[15px] pt-[20px] pb-[24px] text-center text-[12px] text-neutral-500", children: "No headings found in this content." }) : /* @__PURE__ */ jsx("div", { className: "relative pt-[5px] pb-[7px]", children: /* @__PURE__ */ jsx(HeadingTreeGroup, { nodes: tree, depth: 0, collapsed, onToggle: toggle }) })
|
|
35
|
+
empty ? /* @__PURE__ */ jsx("div", { className: "frseo:px-[15px] frseo:pt-[20px] frseo:pb-[24px] frseo:text-center frseo:text-[12px] frseo:text-neutral-500", children: "No headings found in this content." }) : /* @__PURE__ */ jsx("div", { className: "frseo:relative frseo:pt-[5px] frseo:pb-[7px]", children: /* @__PURE__ */ jsx(HeadingTreeGroup, { nodes: tree, depth: 0, collapsed, onToggle: toggle }) })
|
|
36
36
|
] });
|
|
37
37
|
}
|
|
38
38
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../src/components/SeoDrawer/components/HeadingsSection/HeadingTree/index.tsx"],"sourcesContent":["\"use client\";\n\nimport { useMemo, useState } from \"react\";\nimport type { HeadingNode } from \"../../../../../engine/types/analysis\";\nimport { cn } from \"../../../../../utils/style\";\nimport { collectParentIds } from \"./headingTreeView\";\nimport { HeadingTreeGroup } from \"./HeadingTreeGroup\";\n\nexport interface HeadingTreeProps {\n tree: HeadingNode[];\n}\n\nconst SUB_LABEL = \"text-[9.5px] font-semibold uppercase tracking-[0.05em] text-neutral-500\";\n\nexport function HeadingTree({ tree }: HeadingTreeProps) {\n const parentIds = useMemo(() => collectParentIds(tree), [tree]);\n const [collapsed, setCollapsed] = useState<Set<string>>(() => new Set());\n\n const empty = tree.length === 0;\n const allCollapsed = parentIds.length > 0 && parentIds.every((id) => collapsed.has(id));\n\n const toggleAll = () => setCollapsed(allCollapsed ? new Set() : new Set(parentIds));\n const toggle = (id: string) =>\n setCollapsed((prev) => {\n const next = new Set(prev);\n if (next.has(id)) next.delete(id);\n else next.add(id);\n return next;\n });\n\n return (\n <div className=\"px-[15px] pt-[11px] border-t border-neutral-150\">\n <div className={cn(SUB_LABEL, \"flex items-center justify-between\")}>\n <span>Structure</span>\n\n {!empty && (\n <button\n type=\"button\"\n onClick={toggleAll}\n className=\"text-[11px] font-medium normal-case tracking-normal text-neutral-600 hover:text-neutral-1000 hover:underline underline-offset-2 bg-transparent border-0 p-0 cursor-pointer\"\n >\n {allCollapsed ? \"Expand all\" : \"Collapse all\"}\n </button>\n )}\n </div>\n {empty ? (\n <div className=\"px-[15px] pt-[20px] pb-[24px] text-center text-[12px] text-neutral-500\">\n No headings found in this content.\n </div>\n ) : (\n <div className=\"relative pt-[5px] pb-[7px]\">\n <HeadingTreeGroup nodes={tree} depth={0} collapsed={collapsed} onToggle={toggle} />\n </div>\n )}\n </div>\n );\n}\n"],"mappings":";AAgCM,SACE,KADF;AA9BN,SAAS,SAAS,gBAAgB;AAElC,SAAS,UAAU;AACnB,SAAS,wBAAwB;AACjC,SAAS,wBAAwB;AAMjC,MAAM,YAAY;
|
|
1
|
+
{"version":3,"sources":["../../../../../../src/components/SeoDrawer/components/HeadingsSection/HeadingTree/index.tsx"],"sourcesContent":["\"use client\";\n\nimport { useMemo, useState } from \"react\";\nimport type { HeadingNode } from \"../../../../../engine/types/analysis\";\nimport { cn } from \"../../../../../utils/style\";\nimport { collectParentIds } from \"./headingTreeView\";\nimport { HeadingTreeGroup } from \"./HeadingTreeGroup\";\n\nexport interface HeadingTreeProps {\n tree: HeadingNode[];\n}\n\nconst SUB_LABEL = cn(\"text-[9.5px] font-semibold uppercase tracking-[0.05em] text-neutral-500\");\n\nexport function HeadingTree({ tree }: HeadingTreeProps) {\n const parentIds = useMemo(() => collectParentIds(tree), [tree]);\n const [collapsed, setCollapsed] = useState<Set<string>>(() => new Set());\n\n const empty = tree.length === 0;\n const allCollapsed = parentIds.length > 0 && parentIds.every((id) => collapsed.has(id));\n\n const toggleAll = () => setCollapsed(allCollapsed ? new Set() : new Set(parentIds));\n const toggle = (id: string) =>\n setCollapsed((prev) => {\n const next = new Set(prev);\n if (next.has(id)) next.delete(id);\n else next.add(id);\n return next;\n });\n\n return (\n <div className=\"px-[15px] pt-[11px] border-t border-neutral-150\">\n <div className={cn(SUB_LABEL, \"flex items-center justify-between\")}>\n <span>Structure</span>\n\n {!empty && (\n <button\n type=\"button\"\n onClick={toggleAll}\n className=\"text-[11px] font-medium normal-case tracking-normal text-neutral-600 hover:text-neutral-1000 hover:underline underline-offset-2 bg-transparent border-0 p-0 cursor-pointer\"\n >\n {allCollapsed ? \"Expand all\" : \"Collapse all\"}\n </button>\n )}\n </div>\n {empty ? (\n <div className=\"px-[15px] pt-[20px] pb-[24px] text-center text-[12px] text-neutral-500\">\n No headings found in this content.\n </div>\n ) : (\n <div className=\"relative pt-[5px] pb-[7px]\">\n <HeadingTreeGroup nodes={tree} depth={0} collapsed={collapsed} onToggle={toggle} />\n </div>\n )}\n </div>\n );\n}\n"],"mappings":";AAgCM,SACE,KADF;AA9BN,SAAS,SAAS,gBAAgB;AAElC,SAAS,UAAU;AACnB,SAAS,wBAAwB;AACjC,SAAS,wBAAwB;AAMjC,MAAM,YAAY,GAAG,yEAAyE;AAEvF,SAAS,YAAY,EAAE,KAAK,GAAqB;AACtD,QAAM,YAAY,QAAQ,MAAM,iBAAiB,IAAI,GAAG,CAAC,IAAI,CAAC;AAC9D,QAAM,CAAC,WAAW,YAAY,IAAI,SAAsB,MAAM,oBAAI,IAAI,CAAC;AAEvE,QAAM,QAAQ,KAAK,WAAW;AAC9B,QAAM,eAAe,UAAU,SAAS,KAAK,UAAU,MAAM,CAAC,OAAO,UAAU,IAAI,EAAE,CAAC;AAEtF,QAAM,YAAY,MAAM,aAAa,eAAe,oBAAI,IAAI,IAAI,IAAI,IAAI,SAAS,CAAC;AAClF,QAAM,SAAS,CAAC,OACd,aAAa,CAAC,SAAS;AACrB,UAAM,OAAO,IAAI,IAAI,IAAI;AACzB,QAAI,KAAK,IAAI,EAAE;AAAG,WAAK,OAAO,EAAE;AAAA;AAC3B,WAAK,IAAI,EAAE;AAChB,WAAO;AAAA,EACT,CAAC;AAEH,SACE,qBAAC,SAAI,WAAU,mDACb;AAAA,yBAAC,SAAI,WAAW,GAAG,WAAW,mCAAmC,GAC/D;AAAA,0BAAC,UAAK,uBAAS;AAAA,MAEd,CAAC,SACA;AAAA,QAAC;AAAA;AAAA,UACC,MAAK;AAAA,UACL,SAAS;AAAA,UACT,WAAU;AAAA,UAET,yBAAe,eAAe;AAAA;AAAA,MACjC;AAAA,OAEJ;AAAA,IACC,QACC,oBAAC,SAAI,WAAU,0EAAyE,gDAExF,IAEA,oBAAC,SAAI,WAAU,8BACb,8BAAC,oBAAiB,OAAO,MAAM,OAAO,GAAG,WAAsB,UAAU,QAAQ,GACnF;AAAA,KAEJ;AAEJ;","names":[]}
|
|
@@ -15,7 +15,7 @@ function HeadingsSection({ data }) {
|
|
|
15
15
|
widget: /* @__PURE__ */ jsx(HeadingIssuePills, { errors: data.issues.length, warnings, total: data.total }),
|
|
16
16
|
children: [
|
|
17
17
|
data.issues.map((issue) => /* @__PURE__ */ jsx(HeadingIssueBanner, { issue }, issue.type)),
|
|
18
|
-
/* @__PURE__ */ jsx("div", { className: "text-[9.5px] font-semibold uppercase tracking-[0.05em] text-neutral-500 px-[15px] pt-[11px]", children: "Levels" }),
|
|
18
|
+
/* @__PURE__ */ jsx("div", { className: "frseo:text-[9.5px] frseo:font-semibold frseo:uppercase frseo:tracking-[0.05em] frseo:text-neutral-500 frseo:px-[15px] frseo:pt-[11px]", children: "Levels" }),
|
|
19
19
|
/* @__PURE__ */ jsx(HeadingLevelTiles, { levels: data.levels }),
|
|
20
20
|
/* @__PURE__ */ jsx(HeadingTree, { tree: data.tree })
|
|
21
21
|
]
|
|
@@ -20,7 +20,7 @@ function SerpPreview({
|
|
|
20
20
|
const result = /* @__PURE__ */ jsxs("div", { className: serpContainer({ mode }), children: [
|
|
21
21
|
/* @__PURE__ */ jsxs("div", { className: serpUrlRow({ mode }), children: [
|
|
22
22
|
/* @__PURE__ */ jsx(SerpFavicon, { faviconUrl, siteName: data.siteName }),
|
|
23
|
-
/* @__PURE__ */ jsxs("div", { className: "overflow-hidden", children: [
|
|
23
|
+
/* @__PURE__ */ jsxs("div", { className: "frseo:overflow-hidden", children: [
|
|
24
24
|
/* @__PURE__ */ jsx("div", { className: serpSiteName({ mode }), children: data.siteName }),
|
|
25
25
|
/* @__PURE__ */ jsx("div", { className: serpHostname({ mode }), children: data.url })
|
|
26
26
|
] })
|
|
@@ -28,7 +28,7 @@ function SerpPreview({
|
|
|
28
28
|
/* @__PURE__ */ jsx("div", { className: serpTitle({ mode }), children: data.title }),
|
|
29
29
|
/* @__PURE__ */ jsx("div", { className: serpDescription({ mode }), children: highlightKeyphrase(truncateDescription(data.description), keyphrase, synonyms) })
|
|
30
30
|
] });
|
|
31
|
-
return mode === "desktop" ? /* @__PURE__ */ jsx("div", { className: "overflow-x-auto", children: result }) : result;
|
|
31
|
+
return mode === "desktop" ? /* @__PURE__ */ jsx("div", { className: "frseo:overflow-x-auto", children: result }) : result;
|
|
32
32
|
}
|
|
33
33
|
export {
|
|
34
34
|
SerpPreview
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
function SerpFavicon({ faviconUrl, siteName }) {
|
|
3
|
-
return /* @__PURE__ */ jsx("div", { className: "grid h-[28px] w-[28px] min-w-[28px] flex-none place-items-center rounded-[50px] bg-serp-favicon-bg", children: faviconUrl ? /* @__PURE__ */ jsx("img", { alt: "", className: "mx-[5px] h-[18px] w-[18px]", src: faviconUrl }) : /* @__PURE__ */ jsx("span", { className: "text-[12px] text-neutral-600", children: siteName.charAt(0).toUpperCase() }) });
|
|
3
|
+
return /* @__PURE__ */ jsx("div", { className: "frseo:grid frseo:h-[28px] frseo:w-[28px] frseo:min-w-[28px] frseo:flex-none frseo:place-items-center frseo:rounded-[50px] frseo:bg-serp-favicon-bg", children: faviconUrl ? /* @__PURE__ */ jsx("img", { alt: "", className: "frseo:mx-[5px] frseo:h-[18px] frseo:w-[18px]", src: faviconUrl }) : /* @__PURE__ */ jsx("span", { className: "frseo:text-[12px] frseo:text-neutral-600", children: siteName.charAt(0).toUpperCase() }) });
|
|
4
4
|
}
|
|
5
5
|
export {
|
|
6
6
|
SerpFavicon
|
|
@@ -2,13 +2,13 @@ import { cva } from "class-variance-authority";
|
|
|
2
2
|
const serpContainer = cva("", {
|
|
3
3
|
variants: {
|
|
4
4
|
mode: {
|
|
5
|
-
desktop: "w-[600px] font-[arial,sans-serif]",
|
|
6
|
-
mobile: "max-w-[368px] font-[Arial,Roboto-Regular,HelveticaNeue,sans-serif]"
|
|
5
|
+
desktop: "frseo:w-[600px] frseo:font-[arial,sans-serif]",
|
|
6
|
+
mobile: "frseo:max-w-[368px] frseo:font-[Arial,Roboto-Regular,HelveticaNeue,sans-serif]"
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
});
|
|
10
10
|
const serpUrlRow = cva(
|
|
11
|
-
"flex items-center gap-x-[12px] mb-[12px] pt-[1px] overflow-hidden whitespace-nowrap text-ellipsis",
|
|
11
|
+
"frseo:flex frseo:items-center frseo:gap-x-[12px] frseo:mb-[12px] frseo:pt-[1px] frseo:overflow-hidden frseo:whitespace-nowrap frseo:text-ellipsis",
|
|
12
12
|
{
|
|
13
13
|
variants: {
|
|
14
14
|
mode: {
|
|
@@ -18,35 +18,35 @@ const serpUrlRow = cva(
|
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
);
|
|
21
|
-
const serpSiteName = cva("text-[14px] leading-[18px] text-serp-sitename font-normal", {
|
|
21
|
+
const serpSiteName = cva("frseo:text-[14px] frseo:leading-[18px] frseo:text-serp-sitename frseo:font-normal", {
|
|
22
22
|
variants: {
|
|
23
23
|
mode: {
|
|
24
24
|
desktop: "",
|
|
25
|
-
mobile: "max-w-[300px]"
|
|
25
|
+
mobile: "frseo:max-w-[300px]"
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
});
|
|
29
29
|
const serpHostname = cva("", {
|
|
30
30
|
variants: {
|
|
31
31
|
mode: {
|
|
32
|
-
desktop: "text-[14px] leading-[1.3] text-serp-hostname",
|
|
33
|
-
mobile: "text-[12px] leading-[20px] text-serp-hostname-mobile"
|
|
32
|
+
desktop: "frseo:text-[14px] frseo:leading-[1.3] frseo:text-serp-hostname",
|
|
33
|
+
mobile: "frseo:text-[12px] frseo:leading-[20px] frseo:text-serp-hostname-mobile"
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
});
|
|
37
|
-
const serpTitle = cva("text-[20px] font-normal", {
|
|
37
|
+
const serpTitle = cva("frseo:text-[20px] frseo:font-normal", {
|
|
38
38
|
variants: {
|
|
39
39
|
mode: {
|
|
40
|
-
desktop: "block leading-[1.3] text-serp-title max-w-[600px] overflow-hidden text-ellipsis whitespace-nowrap",
|
|
41
|
-
mobile: "leading-[26px] text-serp-title-mobile line-clamp-2 max-h-[52px] overflow-hidden"
|
|
40
|
+
desktop: "frseo:block frseo:leading-[1.3] frseo:text-serp-title frseo:max-w-[600px] frseo:overflow-hidden frseo:text-ellipsis frseo:whitespace-nowrap",
|
|
41
|
+
mobile: "frseo:leading-[26px] frseo:text-serp-title-mobile frseo:line-clamp-2 frseo:max-h-[52px] frseo:overflow-hidden"
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
});
|
|
45
|
-
const serpDescription = cva("text-[14px] [&_strong]:font-bold", {
|
|
45
|
+
const serpDescription = cva("frseo:text-[14px] frseo:[&_strong]:font-bold", {
|
|
46
46
|
variants: {
|
|
47
47
|
mode: {
|
|
48
|
-
desktop: "leading-[1.58] text-serp-description max-w-[600px]",
|
|
49
|
-
mobile: "leading-[1.4] text-serp-description-mobile"
|
|
48
|
+
desktop: "frseo:leading-[1.58] frseo:text-serp-description frseo:max-w-[600px]",
|
|
49
|
+
mobile: "frseo:leading-[1.4] frseo:text-serp-description-mobile"
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
});
|
|
@@ -37,18 +37,18 @@ const SeoDrawer = memo(function SeoDrawer2({
|
|
|
37
37
|
Drawer,
|
|
38
38
|
{
|
|
39
39
|
slug: drawerSlug,
|
|
40
|
-
className: "
|
|
40
|
+
className: "frseo-drawer",
|
|
41
41
|
Header: /* @__PURE__ */ jsx(Header, { drawerSlug, total, totalStatus }),
|
|
42
|
-
children: /* @__PURE__ */ jsxs("div", { className: "
|
|
42
|
+
children: /* @__PURE__ */ jsxs("div", { className: "frseo-root frseo:relative frseo:text-neutral-800", "data-status": totalStatus, children: [
|
|
43
43
|
/* @__PURE__ */ jsx(TabsNav, { active: tab, onChange: setTab }),
|
|
44
|
-
/* @__PURE__ */ jsx("div", { className: "
|
|
44
|
+
/* @__PURE__ */ jsx("div", { className: "frseo-tabpanel", children: result === null && tab !== "keyphrase" ? /* @__PURE__ */ jsxs(
|
|
45
45
|
"div",
|
|
46
46
|
{
|
|
47
|
-
className: "flex items-center gap-[8px] text-neutral-500 text-[13px]",
|
|
47
|
+
className: "frseo:flex frseo:items-center frseo:gap-[8px] frseo:text-neutral-500 frseo:text-[13px]",
|
|
48
48
|
role: "status",
|
|
49
49
|
"aria-live": "polite",
|
|
50
50
|
children: [
|
|
51
|
-
/* @__PURE__ */ jsx(Loader2, { "aria-hidden": "true", className: "w-[14px] h-[14px] animate-spin" }),
|
|
51
|
+
/* @__PURE__ */ jsx(Loader2, { "aria-hidden": "true", className: "frseo:w-[14px] frseo:h-[14px] frseo:animate-spin" }),
|
|
52
52
|
"Analyzing\u2026"
|
|
53
53
|
]
|
|
54
54
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/SeoDrawer/index.tsx"],"sourcesContent":["\"use client\";\n\nimport { Drawer } from \"@payloadcms/ui\";\nimport { Loader2 } from \"lucide-react\";\nimport { memo, useState } from \"react\";\nimport type { AnalysisResult, TotalStatus } from \"../../engine/types/analysis\";\nimport type { KeyphraseEntry } from \"./keyphraseState\";\nimport { Header } from \"./components/Header\";\nimport { TabsNav } from \"./TabsNav\";\nimport type { TabKey } from \"./TabsNav\";\nimport { KeyphraseTab } from \"./tabs/KeyphraseTab\";\nimport { OnPageTab } from \"./tabs/OnPageTab\";\nimport { ReadabilityTab } from \"./tabs/ReadabilityTab\";\nimport { InclusiveTab } from \"./tabs/InclusiveTab\";\nimport { SerpTab } from \"./tabs/SerpTab\";\nimport { VitalsTab } from \"./tabs/VitalsTab\";\n\nimport \"../../admin.css\";\n\nexport interface SeoDrawerProps {\n drawerSlug: string;\n keyphrases: KeyphraseEntry[];\n selectedId: string | null;\n onSelect: (id: string) => void;\n result: AnalysisResult | null;\n analyzing: boolean;\n onAddRelated: () => void;\n onTextChange: (id: string, text: string) => void;\n onAddSynonym: (id: string, syn: string) => void;\n onRemoveSynonym: (id: string, index: number) => void;\n onRemove: (id: string) => void;\n onSetFocus: (id: string) => void;\n isDuplicate: (id: string, text: string) => boolean;\n site: { name: string; baseUrl: string; faviconUrl: string };\n}\n\nexport const SeoDrawer = memo(function SeoDrawer({\n drawerSlug,\n result,\n site,\n analyzing,\n isDuplicate,\n keyphrases,\n onAddRelated,\n onAddSynonym,\n onRemove,\n onRemoveSynonym,\n onSelect,\n onSetFocus,\n onTextChange,\n selectedId,\n}: SeoDrawerProps) {\n const [tab, setTab] = useState<TabKey>(\"keyphrase\");\n\n const total = result?.overall.seoScore ?? 0;\n const totalStatus: TotalStatus = result ? result.overall.status : \"idle\";\n\n const focusKeyphrase = keyphrases[0]?.text ?? \"\";\n const focusSynonyms = keyphrases[0]?.synonyms ?? [];\n\n return (\n <Drawer\n slug={drawerSlug}\n className=\"
|
|
1
|
+
{"version":3,"sources":["../../../src/components/SeoDrawer/index.tsx"],"sourcesContent":["\"use client\";\n\nimport { Drawer } from \"@payloadcms/ui\";\nimport { Loader2 } from \"lucide-react\";\nimport { memo, useState } from \"react\";\nimport type { AnalysisResult, TotalStatus } from \"../../engine/types/analysis\";\nimport type { KeyphraseEntry } from \"./keyphraseState\";\nimport { Header } from \"./components/Header\";\nimport { TabsNav } from \"./TabsNav\";\nimport type { TabKey } from \"./TabsNav\";\nimport { KeyphraseTab } from \"./tabs/KeyphraseTab\";\nimport { OnPageTab } from \"./tabs/OnPageTab\";\nimport { ReadabilityTab } from \"./tabs/ReadabilityTab\";\nimport { InclusiveTab } from \"./tabs/InclusiveTab\";\nimport { SerpTab } from \"./tabs/SerpTab\";\nimport { VitalsTab } from \"./tabs/VitalsTab\";\n\nimport \"../../admin.css\";\n\nexport interface SeoDrawerProps {\n drawerSlug: string;\n keyphrases: KeyphraseEntry[];\n selectedId: string | null;\n onSelect: (id: string) => void;\n result: AnalysisResult | null;\n analyzing: boolean;\n onAddRelated: () => void;\n onTextChange: (id: string, text: string) => void;\n onAddSynonym: (id: string, syn: string) => void;\n onRemoveSynonym: (id: string, index: number) => void;\n onRemove: (id: string) => void;\n onSetFocus: (id: string) => void;\n isDuplicate: (id: string, text: string) => boolean;\n site: { name: string; baseUrl: string; faviconUrl: string };\n}\n\nexport const SeoDrawer = memo(function SeoDrawer({\n drawerSlug,\n result,\n site,\n analyzing,\n isDuplicate,\n keyphrases,\n onAddRelated,\n onAddSynonym,\n onRemove,\n onRemoveSynonym,\n onSelect,\n onSetFocus,\n onTextChange,\n selectedId,\n}: SeoDrawerProps) {\n const [tab, setTab] = useState<TabKey>(\"keyphrase\");\n\n const total = result?.overall.seoScore ?? 0;\n const totalStatus: TotalStatus = result ? result.overall.status : \"idle\";\n\n const focusKeyphrase = keyphrases[0]?.text ?? \"\";\n const focusSynonyms = keyphrases[0]?.synonyms ?? [];\n\n return (\n <Drawer\n slug={drawerSlug}\n className=\"frseo-drawer\"\n Header={<Header drawerSlug={drawerSlug} total={total} totalStatus={totalStatus} />}\n >\n <div className=\"frseo-root relative text-neutral-800\" data-status={totalStatus}>\n <TabsNav active={tab} onChange={setTab} />\n\n <div className=\"frseo-tabpanel\">\n {result === null && tab !== \"keyphrase\" ? (\n <div\n className=\"flex items-center gap-[8px] text-neutral-500 text-[13px]\"\n role=\"status\"\n aria-live=\"polite\"\n >\n <Loader2 aria-hidden=\"true\" className=\"w-[14px] h-[14px] animate-spin\" />\n Analyzing…\n </div>\n ) : (\n <>\n {tab === \"keyphrase\" && (\n <KeyphraseTab\n keyphrases={keyphrases}\n selectedId={selectedId}\n onSelect={onSelect}\n result={result}\n analyzing={analyzing}\n onAddRelated={onAddRelated}\n onTextChange={onTextChange}\n onAddSynonym={onAddSynonym}\n onRemoveSynonym={onRemoveSynonym}\n onRemove={onRemove}\n onSetFocus={onSetFocus}\n isDuplicate={isDuplicate}\n />\n )}\n {tab === \"onpage\" && result && <OnPageTab data={result.onPage} />}\n {tab === \"readability\" && result && <ReadabilityTab data={result.readability} />}\n {tab === \"inclusive\" && result && <InclusiveTab data={result.inclusive} />}\n {tab === \"vitals\" && result && (\n <VitalsTab data={result.vitals} onRequestKeyphrase={() => setTab(\"keyphrase\")} />\n )}\n {tab === \"serp\" && result && (\n <SerpTab\n data={result.serp}\n keyphrase={focusKeyphrase}\n synonyms={focusSynonyms}\n faviconUrl={site.faviconUrl}\n />\n )}\n </>\n )}\n </div>\n </div>\n </Drawer>\n );\n});\n"],"mappings":";AAgEc,SAgBF,UAhBE,KAOF,YAPE;AA9Dd,SAAS,cAAc;AACvB,SAAS,eAAe;AACxB,SAAS,MAAM,gBAAgB;AAG/B,SAAS,cAAc;AACvB,SAAS,eAAe;AAExB,SAAS,oBAAoB;AAC7B,SAAS,iBAAiB;AAC1B,SAAS,sBAAsB;AAC/B,SAAS,oBAAoB;AAC7B,SAAS,eAAe;AACxB,SAAS,iBAAiB;AAE1B,OAAO;AAmBA,MAAM,YAAY,KAAK,SAASA,WAAU;AAAA,EAC/C;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAAmB;AACjB,QAAM,CAAC,KAAK,MAAM,IAAI,SAAiB,WAAW;AAElD,QAAM,QAAQ,QAAQ,QAAQ,YAAY;AAC1C,QAAM,cAA2B,SAAS,OAAO,QAAQ,SAAS;AAElE,QAAM,iBAAiB,WAAW,CAAC,GAAG,QAAQ;AAC9C,QAAM,gBAAgB,WAAW,CAAC,GAAG,YAAY,CAAC;AAElD,SACE;AAAA,IAAC;AAAA;AAAA,MACC,MAAM;AAAA,MACN,WAAU;AAAA,MACV,QAAQ,oBAAC,UAAO,YAAwB,OAAc,aAA0B;AAAA,MAEhF,+BAAC,SAAI,WAAU,wCAAuC,eAAa,aACjE;AAAA,4BAAC,WAAQ,QAAQ,KAAK,UAAU,QAAQ;AAAA,QAExC,oBAAC,SAAI,WAAU,kBACZ,qBAAW,QAAQ,QAAQ,cAC1B;AAAA,UAAC;AAAA;AAAA,YACC,WAAU;AAAA,YACV,MAAK;AAAA,YACL,aAAU;AAAA,YAEV;AAAA,kCAAC,WAAQ,eAAY,QAAO,WAAU,kCAAiC;AAAA,cAAE;AAAA;AAAA;AAAA,QAE3E,IAEA,iCACG;AAAA,kBAAQ,eACP;AAAA,YAAC;AAAA;AAAA,cACC;AAAA,cACA;AAAA,cACA;AAAA,cACA;AAAA,cACA;AAAA,cACA;AAAA,cACA;AAAA,cACA;AAAA,cACA;AAAA,cACA;AAAA,cACA;AAAA,cACA;AAAA;AAAA,UACF;AAAA,UAED,QAAQ,YAAY,UAAU,oBAAC,aAAU,MAAM,OAAO,QAAQ;AAAA,UAC9D,QAAQ,iBAAiB,UAAU,oBAAC,kBAAe,MAAM,OAAO,aAAa;AAAA,UAC7E,QAAQ,eAAe,UAAU,oBAAC,gBAAa,MAAM,OAAO,WAAW;AAAA,UACvE,QAAQ,YAAY,UACnB,oBAAC,aAAU,MAAM,OAAO,QAAQ,oBAAoB,MAAM,OAAO,WAAW,GAAG;AAAA,UAEhF,QAAQ,UAAU,UACjB;AAAA,YAAC;AAAA;AAAA,cACC,MAAM,OAAO;AAAA,cACb,WAAW;AAAA,cACX,UAAU;AAAA,cACV,YAAY,KAAK;AAAA;AAAA,UACnB;AAAA,WAEJ,GAEJ;AAAA,SACF;AAAA;AAAA,EACF;AAEJ,CAAC;","names":["SeoDrawer"]}
|
|
@@ -7,7 +7,7 @@ import { Pill } from "../../../ui/Pill";
|
|
|
7
7
|
import { TabWrapper } from "../components/TabWrapper";
|
|
8
8
|
function InclusiveTab({ data }) {
|
|
9
9
|
const flagged = data.categories.reduce((n, c) => n + c.flags.length, 0);
|
|
10
|
-
return /* @__PURE__ */ jsx(TabWrapper, { children: /* @__PURE__ */ jsxs("section", { className: "flex flex-col gap-[13px]", children: [
|
|
10
|
+
return /* @__PURE__ */ jsx(TabWrapper, { children: /* @__PURE__ */ jsxs("section", { className: "frseo:flex frseo:flex-col frseo:gap-[13px]", children: [
|
|
11
11
|
/* @__PURE__ */ jsx(
|
|
12
12
|
TabHeader,
|
|
13
13
|
{
|
|
@@ -23,20 +23,20 @@ function InclusiveTab({ data }) {
|
|
|
23
23
|
] })
|
|
24
24
|
}
|
|
25
25
|
),
|
|
26
|
-
data.categories.length > 0 && /* @__PURE__ */ jsx(SectionCard, { title: "Marked by category", widget: /* @__PURE__ */ jsx(Pill, { variant: "neutral", children: flagged }), children: data.categories.map((cat) => /* @__PURE__ */ jsxs("div", { className: cn("relative px-[15px] py-[12px]", ROW_SEPARATOR), children: [
|
|
27
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-[8px] mb-[9px]", children: [
|
|
28
|
-
/* @__PURE__ */ jsx("span", { className: "font-bold text-[12.5px]", children: cat.name }),
|
|
26
|
+
data.categories.length > 0 && /* @__PURE__ */ jsx(SectionCard, { title: "Marked by category", widget: /* @__PURE__ */ jsx(Pill, { variant: "neutral", children: flagged }), children: data.categories.map((cat) => /* @__PURE__ */ jsxs("div", { className: cn("frseo:relative frseo:px-[15px] frseo:py-[12px]", ROW_SEPARATOR), children: [
|
|
27
|
+
/* @__PURE__ */ jsxs("div", { className: "frseo:flex frseo:items-center frseo:gap-[8px] frseo:mb-[9px]", children: [
|
|
28
|
+
/* @__PURE__ */ jsx("span", { className: "frseo:font-bold frseo:text-[12.5px]", children: cat.name }),
|
|
29
29
|
/* @__PURE__ */ jsx(Pill, { variant: "bad", children: cat.flags.length })
|
|
30
30
|
] }),
|
|
31
31
|
cat.flags.map((f, i) => /* @__PURE__ */ jsxs(
|
|
32
32
|
"div",
|
|
33
33
|
{
|
|
34
|
-
className: "flex items-center gap-[9px] py-[6px] text-[12px]",
|
|
34
|
+
className: "frseo:flex frseo:items-center frseo:gap-[9px] frseo:py-[6px] frseo:text-[12px]",
|
|
35
35
|
children: [
|
|
36
|
-
/* @__PURE__ */ jsx("span", { className: "text-seo-bad font-medium whitespace-nowrap", children: f.term }),
|
|
37
|
-
/* @__PURE__ */ jsx("span", { className: "text-neutral-300", children: "\u203A" }),
|
|
38
|
-
/* @__PURE__ */ jsx("span", { className: "text-seo-good font-medium flex-1", children: f.suggestion }),
|
|
39
|
-
/* @__PURE__ */ jsx("span", { className: "text-neutral-500 font-mono text-[10.5px] whitespace-nowrap", children: f.location })
|
|
36
|
+
/* @__PURE__ */ jsx("span", { className: "frseo:text-seo-bad frseo:font-medium frseo:whitespace-nowrap", children: f.term }),
|
|
37
|
+
/* @__PURE__ */ jsx("span", { className: "frseo:text-neutral-300", children: "\u203A" }),
|
|
38
|
+
/* @__PURE__ */ jsx("span", { className: "frseo:text-seo-good frseo:font-medium frseo:flex-1", children: f.suggestion }),
|
|
39
|
+
/* @__PURE__ */ jsx("span", { className: "frseo:text-neutral-500 frseo:font-mono frseo:text-[10.5px] frseo:whitespace-nowrap", children: f.location })
|
|
40
40
|
]
|
|
41
41
|
},
|
|
42
42
|
`${f.term}-${i}`
|
|
@@ -47,10 +47,10 @@ function InclusiveTab({ data }) {
|
|
|
47
47
|
{
|
|
48
48
|
title: "No issues found",
|
|
49
49
|
widget: /* @__PURE__ */ jsx(Pill, { variant: "neutral", children: data.cleanCategories.length }),
|
|
50
|
-
children: /* @__PURE__ */ jsx("div", { className: "flex gap-[8px] flex-wrap px-[15px] py-[13px]", children: data.cleanCategories.map((n) => /* @__PURE__ */ jsxs(
|
|
50
|
+
children: /* @__PURE__ */ jsx("div", { className: "frseo:flex frseo:gap-[8px] frseo:flex-wrap frseo:px-[15px] frseo:py-[13px]", children: data.cleanCategories.map((n) => /* @__PURE__ */ jsxs(
|
|
51
51
|
"span",
|
|
52
52
|
{
|
|
53
|
-
className: "inline-flex items-center gap-[6px] text-[11.5px] text-seo-good bg-seo-good-100 border border-seo-good-200 rounded-[20px] px-[11px] py-[4px] font-medium",
|
|
53
|
+
className: "frseo:inline-flex frseo:items-center frseo:gap-[6px] frseo:text-[11.5px] frseo:text-seo-good frseo:bg-seo-good-100 frseo:border frseo:border-seo-good-200 frseo:rounded-[20px] frseo:px-[11px] frseo:py-[4px] frseo:font-medium",
|
|
54
54
|
children: [
|
|
55
55
|
"\u2713 ",
|
|
56
56
|
n
|
|
@@ -87,7 +87,7 @@ function KeyphraseTab({
|
|
|
87
87
|
return { kind: "analyzing" };
|
|
88
88
|
};
|
|
89
89
|
const analysis = detailAnalysis();
|
|
90
|
-
return /* @__PURE__ */ jsxs("div", { className: "flex h-auto min-h-full", children: [
|
|
90
|
+
return /* @__PURE__ */ jsxs("div", { className: "frseo:flex frseo:h-auto frseo:min-h-full", children: [
|
|
91
91
|
/* @__PURE__ */ jsx(
|
|
92
92
|
KeyphraseRail,
|
|
93
93
|
{
|
|
@@ -11,7 +11,7 @@ function OnPageTab({ data }) {
|
|
|
11
11
|
const [filter, setFilter] = useState("all");
|
|
12
12
|
const visible = data.checks.filter((c) => filter === "all" || c.status === filter);
|
|
13
13
|
const passing = data.checks.filter((c) => c.status === "good").length;
|
|
14
|
-
return /* @__PURE__ */ jsx(TabWrapper, { children: /* @__PURE__ */ jsxs("section", { className: "flex flex-col gap-[13px]", children: [
|
|
14
|
+
return /* @__PURE__ */ jsx(TabWrapper, { children: /* @__PURE__ */ jsxs("section", { className: "frseo:flex frseo:flex-col frseo:gap-[13px]", children: [
|
|
15
15
|
/* @__PURE__ */ jsx(
|
|
16
16
|
TabHeader,
|
|
17
17
|
{
|