@focus-reactive/payload-plugin-seo 1.11.0 → 1.12.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.
- package/README.md +106 -7
- package/dist/admin.css +28 -1
- package/dist/components/SeoButton/RemoteKeyphrasesGate.d.ts +7 -0
- package/dist/components/SeoButton/RemoteKeyphrasesGate.d.ts.map +1 -0
- package/dist/components/SeoButton/RemoteKeyphrasesGate.js +23 -0
- package/dist/components/SeoButton/RemoteKeyphrasesGate.js.map +1 -0
- package/dist/components/SeoButton/SeoButtonInner.d.ts +7 -1
- package/dist/components/SeoButton/SeoButtonInner.d.ts.map +1 -1
- package/dist/components/SeoButton/SeoButtonInner.js +20 -26
- package/dist/components/SeoButton/SeoButtonInner.js.map +1 -1
- package/dist/components/SeoButton/SeoTriggerButton.d.ts +9 -0
- package/dist/components/SeoButton/SeoTriggerButton.d.ts.map +1 -0
- package/dist/components/SeoButton/SeoTriggerButton.js +31 -0
- package/dist/components/SeoButton/SeoTriggerButton.js.map +1 -0
- package/dist/components/SeoButton/index.d.ts.map +1 -1
- package/dist/components/SeoButton/index.js +6 -1
- package/dist/components/SeoButton/index.js.map +1 -1
- package/dist/components/SeoDrawer/TabsNav/constants.d.ts +2 -1
- package/dist/components/SeoDrawer/TabsNav/constants.d.ts.map +1 -1
- package/dist/components/SeoDrawer/TabsNav/constants.js +7 -2
- package/dist/components/SeoDrawer/TabsNav/constants.js.map +1 -1
- package/dist/components/SeoDrawer/TabsNav/index.d.ts +4 -2
- package/dist/components/SeoDrawer/TabsNav/index.d.ts.map +1 -1
- package/dist/components/SeoDrawer/TabsNav/index.js +5 -3
- package/dist/components/SeoDrawer/TabsNav/index.js.map +1 -1
- package/dist/components/SeoDrawer/TabsNav/types.d.ts +1 -1
- package/dist/components/SeoDrawer/TabsNav/types.d.ts.map +1 -1
- package/dist/components/SeoDrawer/index.d.ts +5 -0
- package/dist/components/SeoDrawer/index.d.ts.map +1 -1
- package/dist/components/SeoDrawer/index.js +15 -5
- package/dist/components/SeoDrawer/index.js.map +1 -1
- package/dist/components/SeoDrawer/keyphraseStorage.d.ts +7 -1
- package/dist/components/SeoDrawer/keyphraseStorage.d.ts.map +1 -1
- package/dist/components/SeoDrawer/keyphraseStorage.js +41 -24
- package/dist/components/SeoDrawer/keyphraseStorage.js.map +1 -1
- package/dist/components/SeoDrawer/links/readContent.d.ts +7 -0
- package/dist/components/SeoDrawer/links/readContent.d.ts.map +1 -0
- package/dist/components/SeoDrawer/links/readContent.js +21 -0
- package/dist/components/SeoDrawer/links/readContent.js.map +1 -0
- package/dist/components/SeoDrawer/links/readInternalLinks.d.ts +3 -0
- package/dist/components/SeoDrawer/links/readInternalLinks.d.ts.map +1 -0
- package/dist/components/SeoDrawer/links/readInternalLinks.js +35 -0
- package/dist/components/SeoDrawer/links/readInternalLinks.js.map +1 -0
- package/dist/components/SeoDrawer/links/useLinkSuggestions.d.ts +27 -0
- package/dist/components/SeoDrawer/links/useLinkSuggestions.d.ts.map +1 -0
- package/dist/components/SeoDrawer/links/useLinkSuggestions.js +65 -0
- package/dist/components/SeoDrawer/links/useLinkSuggestions.js.map +1 -0
- package/dist/components/SeoDrawer/remoteSaver.d.ts +30 -0
- package/dist/components/SeoDrawer/remoteSaver.d.ts.map +1 -0
- package/dist/components/SeoDrawer/remoteSaver.js +81 -0
- package/dist/components/SeoDrawer/remoteSaver.js.map +1 -0
- package/dist/components/SeoDrawer/tabs/KeyphraseTab.d.ts +4 -1
- package/dist/components/SeoDrawer/tabs/KeyphraseTab.d.ts.map +1 -1
- package/dist/components/SeoDrawer/tabs/KeyphraseTab.js +10 -2
- package/dist/components/SeoDrawer/tabs/KeyphraseTab.js.map +1 -1
- package/dist/components/SeoDrawer/tabs/LinksTab.d.ts +7 -0
- package/dist/components/SeoDrawer/tabs/LinksTab.d.ts.map +1 -0
- package/dist/components/SeoDrawer/tabs/LinksTab.js +66 -0
- package/dist/components/SeoDrawer/tabs/LinksTab.js.map +1 -0
- package/dist/components/SeoDrawer/tabs/keyphrase/KeyphraseDetail.d.ts +4 -1
- package/dist/components/SeoDrawer/tabs/keyphrase/KeyphraseDetail.d.ts.map +1 -1
- package/dist/components/SeoDrawer/tabs/keyphrase/KeyphraseDetail.js +19 -16
- package/dist/components/SeoDrawer/tabs/keyphrase/KeyphraseDetail.js.map +1 -1
- package/dist/components/SeoDrawer/tabs/keyphrase/KeyphraseRail.d.ts +3 -1
- package/dist/components/SeoDrawer/tabs/keyphrase/KeyphraseRail.d.ts.map +1 -1
- package/dist/components/SeoDrawer/tabs/keyphrase/KeyphraseRail.js +7 -3
- package/dist/components/SeoDrawer/tabs/keyphrase/KeyphraseRail.js.map +1 -1
- package/dist/components/SeoDrawer/tabs/keyphrase/KeyphraseUsageNotice.d.ts +8 -0
- package/dist/components/SeoDrawer/tabs/keyphrase/KeyphraseUsageNotice.d.ts.map +1 -0
- package/dist/components/SeoDrawer/tabs/keyphrase/KeyphraseUsageNotice.js +53 -0
- package/dist/components/SeoDrawer/tabs/keyphrase/KeyphraseUsageNotice.js.map +1 -0
- package/dist/components/SeoDrawer/tabs/keyphrase/SynonymsField.d.ts +2 -1
- package/dist/components/SeoDrawer/tabs/keyphrase/SynonymsField.d.ts.map +1 -1
- package/dist/components/SeoDrawer/tabs/keyphrase/SynonymsField.js +4 -3
- package/dist/components/SeoDrawer/tabs/keyphrase/SynonymsField.js.map +1 -1
- package/dist/components/SeoDrawer/tabs/links/LinkSuggestionRow.d.ts +8 -0
- package/dist/components/SeoDrawer/tabs/links/LinkSuggestionRow.d.ts.map +1 -0
- package/dist/components/SeoDrawer/tabs/links/LinkSuggestionRow.js +94 -0
- package/dist/components/SeoDrawer/tabs/links/LinkSuggestionRow.js.map +1 -0
- package/dist/components/SeoDrawer/useFlushOnHide.d.ts +3 -0
- package/dist/components/SeoDrawer/useFlushOnHide.d.ts.map +1 -0
- package/dist/components/SeoDrawer/useFlushOnHide.js +24 -0
- package/dist/components/SeoDrawer/useFlushOnHide.js.map +1 -0
- package/dist/components/SeoDrawer/useKeyphrases.d.ts +12 -1
- package/dist/components/SeoDrawer/useKeyphrases.d.ts.map +1 -1
- package/dist/components/SeoDrawer/useKeyphrases.js +85 -22
- package/dist/components/SeoDrawer/useKeyphrases.js.map +1 -1
- package/dist/components/SeoDrawer/useRemoteSync.d.ts +18 -0
- package/dist/components/SeoDrawer/useRemoteSync.d.ts.map +1 -0
- package/dist/components/SeoDrawer/useRemoteSync.js +42 -0
- package/dist/components/SeoDrawer/useRemoteSync.js.map +1 -0
- package/dist/components/SeoField/index.d.ts.map +1 -1
- package/dist/components/SeoField/index.js +2 -5
- package/dist/components/SeoField/index.js.map +1 -1
- package/dist/constants/index.d.ts +2 -0
- package/dist/constants/index.d.ts.map +1 -1
- package/dist/constants/index.js +2 -0
- package/dist/constants/index.js.map +1 -1
- package/dist/constants/keyphrases.d.ts +8 -0
- package/dist/constants/keyphrases.d.ts.map +1 -0
- package/dist/constants/keyphrases.js +17 -0
- package/dist/constants/keyphrases.js.map +1 -0
- package/dist/constants/links.d.ts +11 -0
- package/dist/constants/links.d.ts.map +1 -0
- package/dist/constants/links.js +23 -0
- package/dist/constants/links.js.map +1 -0
- package/dist/content/resolve/resolve-docs.d.ts.map +1 -1
- package/dist/content/resolve/resolve-docs.js +3 -5
- package/dist/content/resolve/resolve-docs.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/keyphrases/docTarget.d.ts +7 -0
- package/dist/keyphrases/docTarget.d.ts.map +1 -0
- package/dist/keyphrases/docTarget.js +15 -0
- package/dist/keyphrases/docTarget.js.map +1 -0
- package/dist/keyphrases/stored.d.ts +6 -0
- package/dist/keyphrases/stored.d.ts.map +1 -0
- package/dist/keyphrases/stored.js +29 -0
- package/dist/keyphrases/stored.js.map +1 -0
- package/dist/keyphrases/text.d.ts +10 -0
- package/dist/keyphrases/text.d.ts.map +1 -0
- package/dist/keyphrases/text.js +38 -0
- package/dist/keyphrases/text.js.map +1 -0
- package/dist/keyphrases/usage.d.ts +7 -0
- package/dist/keyphrases/usage.d.ts.map +1 -0
- package/dist/keyphrases/usage.js +10 -0
- package/dist/keyphrases/usage.js.map +1 -0
- package/dist/links/toPath.d.ts +3 -0
- package/dist/links/toPath.d.ts.map +1 -0
- package/dist/links/toPath.js +39 -0
- package/dist/links/toPath.js.map +1 -0
- package/dist/links/types.d.ts +15 -0
- package/dist/links/types.d.ts.map +1 -0
- package/dist/links/types.js +1 -0
- package/dist/links/types.js.map +1 -0
- package/dist/plugin.d.ts.map +1 -1
- package/dist/plugin.js +2 -1
- package/dist/plugin.js.map +1 -1
- package/dist/server/docTargets.d.ts +16 -0
- package/dist/server/docTargets.d.ts.map +1 -0
- package/dist/server/docTargets.js +42 -0
- package/dist/server/docTargets.js.map +1 -0
- package/dist/server/findDocsByIds.d.ts +17 -0
- package/dist/server/findDocsByIds.d.ts.map +1 -0
- package/dist/server/findDocsByIds.js +24 -0
- package/dist/server/findDocsByIds.js.map +1 -0
- package/dist/server/generate/endpoint.d.ts.map +1 -1
- package/dist/server/generate/endpoint.js +5 -11
- package/dist/server/generate/endpoint.js.map +1 -1
- package/dist/server/generate/serverResolveDocs.d.ts.map +1 -1
- package/dist/server/generate/serverResolveDocs.js +9 -18
- package/dist/server/generate/serverResolveDocs.js.map +1 -1
- package/dist/server/http.d.ts +3 -0
- package/dist/server/http.d.ts.map +1 -0
- package/dist/server/http.js +11 -0
- package/dist/server/http.js.map +1 -0
- package/dist/server/keyphrases/authorize.d.ts +8 -0
- package/dist/server/keyphrases/authorize.d.ts.map +1 -0
- package/dist/server/keyphrases/authorize.js +81 -0
- package/dist/server/keyphrases/authorize.js.map +1 -0
- package/dist/server/keyphrases/cleanupHook.d.ts +3 -0
- package/dist/server/keyphrases/cleanupHook.d.ts.map +1 -0
- package/dist/server/keyphrases/cleanupHook.js +16 -0
- package/dist/server/keyphrases/cleanupHook.js.map +1 -0
- package/dist/server/keyphrases/collection.d.ts +3 -0
- package/dist/server/keyphrases/collection.d.ts.map +1 -0
- package/dist/server/keyphrases/collection.js +27 -0
- package/dist/server/keyphrases/collection.js.map +1 -0
- package/dist/server/keyphrases/docRef.d.ts +3 -0
- package/dist/server/keyphrases/docRef.d.ts.map +1 -0
- package/dist/server/keyphrases/docRef.js +16 -0
- package/dist/server/keyphrases/docRef.js.map +1 -0
- package/dist/server/keyphrases/endpoints.d.ts +4 -0
- package/dist/server/keyphrases/endpoints.d.ts.map +1 -0
- package/dist/server/keyphrases/endpoints.js +111 -0
- package/dist/server/keyphrases/endpoints.js.map +1 -0
- package/dist/server/keyphrases/rows.d.ts +8 -0
- package/dist/server/keyphrases/rows.d.ts.map +1 -0
- package/dist/server/keyphrases/rows.js +50 -0
- package/dist/server/keyphrases/rows.js.map +1 -0
- package/dist/server/keyphrases/types.d.ts +16 -0
- package/dist/server/keyphrases/types.d.ts.map +1 -0
- package/dist/server/keyphrases/types.js +1 -0
- package/dist/server/keyphrases/types.js.map +1 -0
- package/dist/server/keyphrases/withKeyphraseIndex.d.ts +4 -0
- package/dist/server/keyphrases/withKeyphraseIndex.d.ts.map +1 -0
- package/dist/server/keyphrases/withKeyphraseIndex.js +41 -0
- package/dist/server/keyphrases/withKeyphraseIndex.js.map +1 -0
- package/dist/server/links/endpoint.d.ts +4 -0
- package/dist/server/links/endpoint.d.ts.map +1 -0
- package/dist/server/links/endpoint.js +85 -0
- package/dist/server/links/endpoint.js.map +1 -0
- package/dist/server/links/findLinkCandidates.d.ts +10 -0
- package/dist/server/links/findLinkCandidates.d.ts.map +1 -0
- package/dist/server/links/findLinkCandidates.js +121 -0
- package/dist/server/links/findLinkCandidates.js.map +1 -0
- package/dist/server/links/request.d.ts +11 -0
- package/dist/server/links/request.d.ts.map +1 -0
- package/dist/server/links/request.js +54 -0
- package/dist/server/links/request.js.map +1 -0
- package/dist/server/links/resolveLinkTargets.d.ts +5 -0
- package/dist/server/links/resolveLinkTargets.d.ts.map +1 -0
- package/dist/server/links/resolveLinkTargets.js +35 -0
- package/dist/server/links/resolveLinkTargets.js.map +1 -0
- package/dist/server/links/snippet.d.ts +10 -0
- package/dist/server/links/snippet.d.ts.map +1 -0
- package/dist/server/links/snippet.js +38 -0
- package/dist/server/links/snippet.js.map +1 -0
- package/dist/server/links/sourceRows.d.ts +5 -0
- package/dist/server/links/sourceRows.d.ts.map +1 -0
- package/dist/server/links/sourceRows.js +24 -0
- package/dist/server/links/sourceRows.js.map +1 -0
- package/dist/server/links/toLinkSources.d.ts +4 -0
- package/dist/server/links/toLinkSources.d.ts.map +1 -0
- package/dist/server/links/toLinkSources.js +11 -0
- package/dist/server/links/toLinkSources.js.map +1 -0
- package/dist/translations/messages/cs.d.ts.map +1 -1
- package/dist/translations/messages/cs.js +20 -0
- package/dist/translations/messages/cs.js.map +1 -1
- package/dist/translations/messages/en.d.ts +19 -0
- package/dist/translations/messages/en.d.ts.map +1 -1
- package/dist/translations/messages/en.js +19 -0
- package/dist/translations/messages/en.js.map +1 -1
- package/dist/types/config.d.ts +9 -0
- package/dist/types/config.d.ts.map +1 -1
- package/dist/ui/Notice.d.ts +7 -0
- package/dist/ui/Notice.d.ts.map +1 -0
- package/dist/ui/Notice.js +26 -0
- package/dist/ui/Notice.js.map +1 -0
- package/dist/utils/config/overrideAdmin.d.ts.map +1 -1
- package/dist/utils/config/overrideAdmin.js +2 -1
- package/dist/utils/config/overrideAdmin.js.map +1 -1
- package/dist/utils/style.d.ts +1 -0
- package/dist/utils/style.d.ts.map +1 -1
- package/dist/utils/style.js +4 -0
- package/dist/utils/style.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/translations/messages/en.ts"],"sourcesContent":["export const en = {\n title: \"SEO Analytics\",\n close: \"Close\",\n analyzing: \"Analyzing…\",\n scoreBadge: \"SEO score {{score}}\",\n\n \"tab.keyphrase\": \"Keyphrase\",\n \"tab.onpage\": \"On-page SEO\",\n \"tab.readability\": \"Readability\",\n \"tab.inclusive\": \"Inclusive\",\n \"tab.vitals\": \"Content vitals\",\n \"tab.serp\": \"Search result preview\",\n\n \"status.good\": \"Good\",\n \"status.warn\": \"Needs work\",\n \"status.bad\": \"Problem\",\n\n \"filter.all\": \"All\",\n \"filter.bad\": \"Problems\",\n \"filter.warn\": \"Needs work\",\n \"filter.good\": \"Good\",\n\n \"checks.title\": \"Checks\",\n \"checks.passing\": \"{{passing}} / {{total}} checks passing\",\n \"onpage.title\": \"On-page structure\",\n \"readability.title\": \"Readability\",\n\n \"keyphrase.optimization\": \"Keyphrase optimization\",\n \"keyphrase.rail\": \"Keyphrases · {{count}}/{{max}}\",\n \"keyphrase.add\": \"Add related keyphrase\",\n \"keyphrase.max\": \"Up to {{max}} keyphrases\",\n \"keyphrase.focusBadge\": \"Focus\",\n \"keyphrase.new\": \"New keyphrase\",\n \"keyphrase.focusLabel\": \"Focus keyphrase\",\n \"keyphrase.relatedLabel\": \"Related keyphrase\",\n \"keyphrase.setFocus\": \"Set as focus\",\n \"keyphrase.remove\": \"Remove keyphrase\",\n \"keyphrase.focusPlaceholder\": \"Type your primary keyphrase\",\n \"keyphrase.relatedPlaceholder\": \"Type a related keyphrase\",\n \"keyphrase.duplicate\": \"“{{text}}” is already in your keyphrase list.\",\n \"keyphrase.analyzing\": \"Analyzing keyphrase…\",\n \"keyphrase.hintDuplicate\": \"Resolve the duplicate to analyse this keyphrase.\",\n \"keyphrase.hintEmpty\": \"Start typing a keyphrase to see its analysis.\",\n\n \"synonyms.title\": \"Synonyms\",\n \"synonyms.add\": \"Add synonym\",\n \"synonyms.placeholder\": \"Add a synonym…\",\n \"synonyms.inputLabel\": \"Add a synonym\",\n \"synonyms.enter\": \"Enter\",\n \"synonyms.remove\": \"Remove synonym {{synonym}} ({{position}})\",\n \"synonyms.help\":\n \"Synonyms count as keyphrase matches in this keyphrase’s checks. One chip per synonym.\",\n\n \"inclusive.title\": \"Inclusive language\",\n \"inclusive.subtitle\": \"Flagged phrases: {{flagged}} · categories: {{categories}}\",\n \"inclusive.flagged\": \"Marked by category\",\n \"inclusive.clean\": \"No issues found\",\n \"inclusive.category.age\": \"Age\",\n \"inclusive.category.appearance\": \"Appearance & body\",\n \"inclusive.category.culture\": \"Culture, race & religion\",\n \"inclusive.category.disability\": \"Disability\",\n \"inclusive.category.gender\": \"Gendered language\",\n \"inclusive.category.sexualOrientation\": \"Sexual orientation\",\n \"inclusive.category.ses\": \"Socioeconomic status\",\n \"inclusive.category.other\": \"Other\",\n\n \"vitals.words\": \"Words\",\n \"vitals.sentences\": \"Sentences\",\n \"vitals.paragraphs\": \"Paragraphs\",\n \"vitals.images\": \"Images\",\n \"vitals.videos\": \"Videos\",\n \"vitals.readingTime\": \"Reading time\",\n \"vitals.minutes\": \"min\",\n \"vitals.prominentWords\": \"Prominent words\",\n \"vitals.keyBadge\": \"Key\",\n \"vitals.setKeyphrase\": \"Set a focus keyphrase to see which prominent words match it\",\n\n \"headings.title\": \"Headings\",\n \"headings.levels\": \"Levels\",\n \"headings.structure\": \"Structure\",\n \"headings.expandAll\": \"Expand all\",\n \"headings.collapseAll\": \"Collapse all\",\n \"headings.expand\": \"Expand\",\n \"headings.collapse\": \"Collapse\",\n \"headings.empty\": \"No headings found in this content.\",\n \"headings.emptyHeading\": \"(empty heading)\",\n \"headings.skipped\": \"Skipped {{levels}}\",\n \"headings.errors_one\": \"{{count}} error\",\n \"headings.errors_other\": \"{{count}} errors\",\n \"headings.warnings_one\": \"{{count}} warning\",\n \"headings.warnings_other\": \"{{count}} warnings\",\n \"headings.missingH1.title\": \"No H1 heading found\",\n \"headings.missingH1.body\": \"Add a single top-level heading so the page has a clear title anchor.\",\n \"headings.multipleH1.title\": \"Multiple H1 headings ({{count}})\",\n \"headings.multipleH1.body\":\n \"Use exactly one H1 so search engines and screen readers get a single page title.\",\n\n \"serp.title\": \"Search result preview\",\n \"serp.mobile\": \"Mobile\",\n \"serp.desktop\": \"Desktop\",\n \"serp.device\": \"Preview device\",\n\n \"viz.hide\": \"Hide\",\n \"viz.show.link_one\": \"Show {{count}} link\",\n \"viz.show.link_other\": \"Show {{count}} links\",\n \"viz.show.section_one\": \"Show {{count}} section\",\n \"viz.show.section_other\": \"Show {{count}} sections\",\n \"viz.show.paragraph_one\": \"Show {{count}} paragraph\",\n \"viz.show.paragraph_other\": \"Show {{count}} paragraphs\",\n \"viz.show.group_one\": \"Show {{count}} group\",\n \"viz.show.group_other\": \"Show {{count}} groups\",\n \"viz.dofollow\": \"{{count}} dofollow\",\n \"viz.nofollow\": \"{{count}} nofollow\",\n \"viz.start\": \"start\",\n \"viz.middle\": \"middle\",\n \"viz.end\": \"end\",\n\n \"check.introductionKeyword.name\": \"Keyphrase in introduction\",\n \"check.introductionKeyword.tip\": \"Whether the focus keyphrase appears in the first paragraph.\",\n \"check.keyphraseLength.name\": \"Keyphrase length\",\n \"check.keyphraseLength.tip\": \"Word count of the keyphrase itself.\",\n \"check.keyphraseDensity.name\": \"Keyphrase density\",\n \"check.keyphraseDensity.tip\": \"Occurrences relative to total words. Ideal 0.5–2.5%.\",\n \"check.metaDescriptionKeyword.name\": \"Keyphrase in meta description\",\n \"check.metaDescriptionKeyword.tip\": \"Whether the keyphrase appears in the meta description.\",\n \"check.subheadingsKeyword.name\": \"Keyphrase in subheadings\",\n \"check.subheadingsKeyword.tip\": \"Whether subheadings (H2+) use the keyphrase.\",\n \"check.textCompetingLinks.name\": \"Competing links\",\n \"check.textCompetingLinks.tip\": \"Links that use your keyphrase as anchor text.\",\n \"check.imageKeyphrase.name\": \"Keyphrase in image alts\",\n \"check.imageKeyphrase.tip\": \"How many images reference the keyphrase in alt text.\",\n \"check.keyphraseInSEOTitle.name\": \"Keyphrase in SEO title\",\n \"check.keyphraseInSEOTitle.tip\": \"Whether the keyphrase is in the SEO title, and where.\",\n \"check.slugKeyword.name\": \"Keyphrase in slug\",\n \"check.slugKeyword.tip\": \"Whether the keyphrase appears in the URL slug.\",\n \"check.functionWordsInKeyphrase.name\": \"Function words in keyphrase\",\n \"check.functionWordsInKeyphrase.tip\": \"Your keyphrase is made up only of function words.\",\n \"check.keyphraseDistribution.name\": \"Keyphrase distribution\",\n \"check.keyphraseDistribution.tip\": \"Where the keyphrase occurs across the document.\",\n \"check.textLength.name\": \"Total word count\",\n \"check.textLength.tip\": \"Total words vs the recommended minimum (300).\",\n \"check.metaDescriptionLength.name\": \"Meta description length\",\n \"check.metaDescriptionLength.tip\": \"Ideal 120–158 characters.\",\n \"check.titleWidth.name\": \"SEO title width\",\n \"check.titleWidth.tip\": \"Pixel width; over ~580px truncates.\",\n \"check.images.name\": \"Images\",\n \"check.images.tip\": \"Whether the text contains images.\",\n \"check.externalLinks.name\": \"Outbound links\",\n \"check.externalLinks.tip\": \"Follow / nofollow mix of outbound links.\",\n \"check.internalLinks.name\": \"Internal links\",\n \"check.internalLinks.tip\": \"Follow / nofollow mix of internal links.\",\n \"check.singleH1.name\": \"Exactly one H1\",\n \"check.singleH1.tip\": \"There is one H1, correctly positioned.\",\n \"check.subheadingsTooLong.name\": \"Subheading distribution\",\n \"check.subheadingsTooLong.tip\": \"Long sections without a subheading.\",\n \"check.textParagraphTooLong.name\": \"Paragraph length\",\n \"check.textParagraphTooLong.tip\": \"Paragraphs over the recommended length.\",\n \"check.textSentenceLength.name\": \"Sentence length\",\n \"check.textSentenceLength.tip\": \"Share of sentences over the recommended length.\",\n \"check.textTransitionWords.name\": \"Transition words\",\n \"check.textTransitionWords.tip\": \"Share of sentences using transition words.\",\n \"check.passiveVoice.name\": \"Passive voice\",\n \"check.passiveVoice.tip\": \"Share of sentences in passive voice.\",\n \"check.sentenceBeginnings.name\": \"Consecutive sentences\",\n \"check.sentenceBeginnings.tip\": \"Repetitive sentence beginnings.\",\n \"check.fleschReadingEase.name\": \"Reading ease\",\n \"check.fleschReadingEase.tip\": \"Flesch Reading Ease (0–100); higher is easier. Aim for 60+.\",\n\n \"reco.introductionKeyword.bad\": \"Add “{{keyphrase}}” to your opening paragraph.\",\n \"reco.introductionKeyword.badNoKeyphrase\": \"Add your keyphrase to your opening paragraph.\",\n \"reco.keyphraseDensity.bad\": \"Use the keyphrase a few more times to land in the ideal band.\",\n \"reco.keyphraseDensity.warn\": \"Use the keyphrase ~2 more times to land in the ideal band.\",\n \"reco.metaDescriptionKeyword.bad\":\n \"Add the keyphrase to the meta description to improve click-through.\",\n \"reco.imageKeyphrase.warn\": \"Add the keyphrase to the alt text of the remaining images.\",\n \"reco.imageKeyphrase.bad\": \"Add the keyphrase to your image alt texts.\",\n \"reco.keyphraseDistribution.warn\":\n \"Occurrences are clustered — spread the keyphrase through the body.\",\n \"reco.keyphraseDistribution.bad\": \"Distribute the keyphrase more evenly through the text.\",\n \"reco.metaDescriptionLength.warn\":\n \"You're near the limit — trim a few characters to avoid truncation.\",\n \"reco.metaDescriptionLength.bad\": \"Adjust the meta description toward 120–158 characters.\",\n \"reco.internalLinks.warn\": \"Add a few internal links to related pages.\",\n \"reco.internalLinks.bad\": \"Add internal links to related pages.\",\n \"reco.textLength.bad\": \"Add more content — aim for at least 300 words.\",\n \"reco.textLength.warn\": \"Add more content to comfortably clear the minimum.\",\n \"reco.fleschReadingEase.warn\":\n \"Shorten sentences and prefer simpler words to make the text easier to read.\",\n \"reco.fleschReadingEase.bad\":\n \"The text is hard to read — use shorter sentences and simpler words.\",\n \"reco.generic.warn\": \"This check needs some attention.\",\n \"reco.generic.bad\": \"This check needs improvement.\",\n\n \"field.generate\": \"Generate\",\n \"field.generating\": \"Generating…\",\n \"field.generationFailed\": \"Generation failed\",\n \"field.unchanged\": \"Your text is unchanged — press Generate to try again.\",\n \"field.noExtractor\": \"No content extractor is registered for this collection.\",\n \"field.auto.title\": \"Generated automatically\",\n \"field.auto.label\": \"Generated on publish\",\n \"field.auto.body.title\":\n \"Left empty, this title is generated from the page content when you publish. Type a value to keep your own.\",\n \"field.auto.body.description\":\n \"Left empty, this description is generated from the page content when you publish. Type a value to keep your own.\",\n \"meter.good\": \"Good\",\n \"meter.short\": \"Too short\",\n \"meter.long\": \"Too long\",\n \"meter.working\": \"Working…\",\n \"meter.empty.title\": \"No title\",\n \"meter.empty.description\": \"No description\",\n} as const;\n"],"mappings":"AAAO,MAAM,KAAK;AAAA,EAChB,OAAO;AAAA,EACP,OAAO;AAAA,EACP,WAAW;AAAA,EACX,YAAY;AAAA,EAEZ,iBAAiB;AAAA,EACjB,cAAc;AAAA,EACd,mBAAmB;AAAA,EACnB,iBAAiB;AAAA,EACjB,cAAc;AAAA,EACd,YAAY;AAAA,EAEZ,eAAe;AAAA,EACf,eAAe;AAAA,EACf,cAAc;AAAA,EAEd,cAAc;AAAA,EACd,cAAc;AAAA,EACd,eAAe;AAAA,EACf,eAAe;AAAA,EAEf,gBAAgB;AAAA,EAChB,kBAAkB;AAAA,EAClB,gBAAgB;AAAA,EAChB,qBAAqB;AAAA,EAErB,0BAA0B;AAAA,EAC1B,kBAAkB;AAAA,EAClB,iBAAiB;AAAA,EACjB,iBAAiB;AAAA,EACjB,wBAAwB;AAAA,EACxB,iBAAiB;AAAA,EACjB,wBAAwB;AAAA,EACxB,0BAA0B;AAAA,EAC1B,sBAAsB;AAAA,EACtB,oBAAoB;AAAA,EACpB,8BAA8B;AAAA,EAC9B,gCAAgC;AAAA,EAChC,uBAAuB;AAAA,EACvB,uBAAuB;AAAA,EACvB,2BAA2B;AAAA,EAC3B,uBAAuB;AAAA,EAEvB,kBAAkB;AAAA,EAClB,gBAAgB;AAAA,EAChB,wBAAwB;AAAA,EACxB,uBAAuB;AAAA,EACvB,kBAAkB;AAAA,EAClB,mBAAmB;AAAA,EACnB,iBACE;AAAA,EAEF,mBAAmB;AAAA,EACnB,sBAAsB;AAAA,EACtB,qBAAqB;AAAA,EACrB,mBAAmB;AAAA,EACnB,0BAA0B;AAAA,EAC1B,iCAAiC;AAAA,EACjC,8BAA8B;AAAA,EAC9B,iCAAiC;AAAA,EACjC,6BAA6B;AAAA,EAC7B,wCAAwC;AAAA,EACxC,0BAA0B;A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BAAqB;AAAA,EACrB,oBAAoB;AAAA,EACpB,oBAAoB;AAAA,EACpB,yBACE;AAAA,EACF,+BACE;AAAA,EACF,cAAc;AAAA,EACd,eAAe;AAAA,EACf,cAAc;AAAA,EACd,iBAAiB;AAAA,EACjB,qBAAqB;AAAA,EACrB,2BAA2B;AAC7B;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../../src/translations/messages/en.ts"],"sourcesContent":["export const en = {\n title: \"SEO Analytics\",\n close: \"Close\",\n analyzing: \"Analyzing…\",\n scoreBadge: \"SEO score {{score}}\",\n\n \"tab.keyphrase\": \"Keyphrase\",\n \"tab.onpage\": \"On-page SEO\",\n \"tab.readability\": \"Readability\",\n \"tab.inclusive\": \"Inclusive\",\n \"tab.vitals\": \"Content vitals\",\n \"tab.serp\": \"Search result preview\",\n \"tab.links\": \"Internal links\",\n\n \"status.good\": \"Good\",\n \"status.warn\": \"Needs work\",\n \"status.bad\": \"Problem\",\n\n \"filter.all\": \"All\",\n \"filter.bad\": \"Problems\",\n \"filter.warn\": \"Needs work\",\n \"filter.good\": \"Good\",\n\n \"checks.title\": \"Checks\",\n \"checks.passing\": \"{{passing}} / {{total}} checks passing\",\n \"onpage.title\": \"On-page structure\",\n \"readability.title\": \"Readability\",\n\n \"keyphrase.optimization\": \"Keyphrase optimization\",\n \"keyphrase.rail\": \"Keyphrases · {{count}}/{{max}}\",\n \"keyphrase.add\": \"Add related keyphrase\",\n \"keyphrase.max\": \"Up to {{max}} keyphrases\",\n \"keyphrase.focusBadge\": \"Focus\",\n \"keyphrase.new\": \"New keyphrase\",\n \"keyphrase.focusLabel\": \"Focus keyphrase\",\n \"keyphrase.relatedLabel\": \"Related keyphrase\",\n \"keyphrase.setFocus\": \"Set as focus\",\n \"keyphrase.remove\": \"Remove keyphrase\",\n \"keyphrase.focusPlaceholder\": \"Type your primary keyphrase\",\n \"keyphrase.relatedPlaceholder\": \"Type a related keyphrase\",\n \"keyphrase.duplicate\": \"“{{text}}” is already in your keyphrase list.\",\n \"keyphrase.analyzing\": \"Analyzing keyphrase…\",\n \"keyphrase.hintDuplicate\": \"Resolve the duplicate to analyse this keyphrase.\",\n \"keyphrase.hintEmpty\": \"Start typing a keyphrase to see its analysis.\",\n \"keyphrase.readOnly\": \"You can’t edit this document, so its keyphrases are read-only.\",\n \"keyphrase.saveFailed\":\n \"Couldn’t save keyphrases. Your changes are kept in this browser and will be saved again.\",\n \"keyphrase.usedOn\": \"This keyphrase is already used on:\",\n \"keyphrase.cannibalization\":\n \"Pages that target one keyphrase can compete in search. Pick a different keyphrase or link the pages to each other.\",\n\n \"synonyms.title\": \"Synonyms\",\n \"synonyms.add\": \"Add synonym\",\n \"synonyms.placeholder\": \"Add a synonym…\",\n \"synonyms.inputLabel\": \"Add a synonym\",\n \"synonyms.enter\": \"Enter\",\n \"synonyms.remove\": \"Remove synonym {{synonym}} ({{position}})\",\n \"synonyms.help\":\n \"Synonyms count as keyphrase matches in this keyphrase’s checks. One chip per synonym.\",\n\n \"inclusive.title\": \"Inclusive language\",\n \"inclusive.subtitle\": \"Flagged phrases: {{flagged}} · categories: {{categories}}\",\n \"inclusive.flagged\": \"Marked by category\",\n \"inclusive.clean\": \"No issues found\",\n \"inclusive.category.age\": \"Age\",\n \"inclusive.category.appearance\": \"Appearance & body\",\n \"inclusive.category.culture\": \"Culture, race & religion\",\n \"inclusive.category.disability\": \"Disability\",\n \"inclusive.category.gender\": \"Gendered language\",\n \"inclusive.category.sexualOrientation\": \"Sexual orientation\",\n \"inclusive.category.ses\": \"Socioeconomic status\",\n \"inclusive.category.other\": \"Other\",\n\n \"vitals.words\": \"Words\",\n \"vitals.sentences\": \"Sentences\",\n \"vitals.paragraphs\": \"Paragraphs\",\n \"vitals.images\": \"Images\",\n \"vitals.videos\": \"Videos\",\n \"vitals.readingTime\": \"Reading time\",\n \"vitals.minutes\": \"min\",\n \"vitals.prominentWords\": \"Prominent words\",\n \"vitals.keyBadge\": \"Key\",\n \"vitals.setKeyphrase\": \"Set a focus keyphrase to see which prominent words match it\",\n\n \"headings.title\": \"Headings\",\n \"headings.levels\": \"Levels\",\n \"headings.structure\": \"Structure\",\n \"headings.expandAll\": \"Expand all\",\n \"headings.collapseAll\": \"Collapse all\",\n \"headings.expand\": \"Expand\",\n \"headings.collapse\": \"Collapse\",\n \"headings.empty\": \"No headings found in this content.\",\n \"headings.emptyHeading\": \"(empty heading)\",\n \"headings.skipped\": \"Skipped {{levels}}\",\n \"headings.errors_one\": \"{{count}} error\",\n \"headings.errors_other\": \"{{count}} errors\",\n \"headings.warnings_one\": \"{{count}} warning\",\n \"headings.warnings_other\": \"{{count}} warnings\",\n \"headings.missingH1.title\": \"No H1 heading found\",\n \"headings.missingH1.body\": \"Add a single top-level heading so the page has a clear title anchor.\",\n \"headings.multipleH1.title\": \"Multiple H1 headings ({{count}})\",\n \"headings.multipleH1.body\":\n \"Use exactly one H1 so search engines and screen readers get a single page title.\",\n\n \"serp.title\": \"Search result preview\",\n \"serp.mobile\": \"Mobile\",\n \"serp.desktop\": \"Desktop\",\n \"serp.device\": \"Preview device\",\n\n \"links.title\": \"Internal link opportunities\",\n \"links.find\": \"Find opportunities\",\n \"links.description\": \"Pages whose keyphrases appear in this text but are not linked from it yet.\",\n \"links.loading\": \"Looking for opportunities…\",\n \"links.error\": \"Could not load suggestions. Try again.\",\n \"links.empty\": \"No opportunities found. Add keyphrases to other pages to get suggestions.\",\n \"links.matches_one\": \"{{count}} match\",\n \"links.matches_other\": \"{{count}} matches\",\n \"links.matchedPhrase\": \"Matches\",\n \"links.quotedPhrase\": \"“{{phrase}}”\",\n \"links.noPublicUrl\": \"No public URL configured, open the page in the admin.\",\n \"links.copy\": \"Copy link\",\n \"links.copied\": \"Copied\",\n \"links.copyFailed\": \"Copy failed\",\n\n \"viz.hide\": \"Hide\",\n \"viz.show.link_one\": \"Show {{count}} link\",\n \"viz.show.link_other\": \"Show {{count}} links\",\n \"viz.show.section_one\": \"Show {{count}} section\",\n \"viz.show.section_other\": \"Show {{count}} sections\",\n \"viz.show.paragraph_one\": \"Show {{count}} paragraph\",\n \"viz.show.paragraph_other\": \"Show {{count}} paragraphs\",\n \"viz.show.group_one\": \"Show {{count}} group\",\n \"viz.show.group_other\": \"Show {{count}} groups\",\n \"viz.dofollow\": \"{{count}} dofollow\",\n \"viz.nofollow\": \"{{count}} nofollow\",\n \"viz.start\": \"start\",\n \"viz.middle\": \"middle\",\n \"viz.end\": \"end\",\n\n \"check.introductionKeyword.name\": \"Keyphrase in introduction\",\n \"check.introductionKeyword.tip\": \"Whether the focus keyphrase appears in the first paragraph.\",\n \"check.keyphraseLength.name\": \"Keyphrase length\",\n \"check.keyphraseLength.tip\": \"Word count of the keyphrase itself.\",\n \"check.keyphraseDensity.name\": \"Keyphrase density\",\n \"check.keyphraseDensity.tip\": \"Occurrences relative to total words. Ideal 0.5–2.5%.\",\n \"check.metaDescriptionKeyword.name\": \"Keyphrase in meta description\",\n \"check.metaDescriptionKeyword.tip\": \"Whether the keyphrase appears in the meta description.\",\n \"check.subheadingsKeyword.name\": \"Keyphrase in subheadings\",\n \"check.subheadingsKeyword.tip\": \"Whether subheadings (H2+) use the keyphrase.\",\n \"check.textCompetingLinks.name\": \"Competing links\",\n \"check.textCompetingLinks.tip\": \"Links that use your keyphrase as anchor text.\",\n \"check.imageKeyphrase.name\": \"Keyphrase in image alts\",\n \"check.imageKeyphrase.tip\": \"How many images reference the keyphrase in alt text.\",\n \"check.keyphraseInSEOTitle.name\": \"Keyphrase in SEO title\",\n \"check.keyphraseInSEOTitle.tip\": \"Whether the keyphrase is in the SEO title, and where.\",\n \"check.slugKeyword.name\": \"Keyphrase in slug\",\n \"check.slugKeyword.tip\": \"Whether the keyphrase appears in the URL slug.\",\n \"check.functionWordsInKeyphrase.name\": \"Function words in keyphrase\",\n \"check.functionWordsInKeyphrase.tip\": \"Your keyphrase is made up only of function words.\",\n \"check.keyphraseDistribution.name\": \"Keyphrase distribution\",\n \"check.keyphraseDistribution.tip\": \"Where the keyphrase occurs across the document.\",\n \"check.textLength.name\": \"Total word count\",\n \"check.textLength.tip\": \"Total words vs the recommended minimum (300).\",\n \"check.metaDescriptionLength.name\": \"Meta description length\",\n \"check.metaDescriptionLength.tip\": \"Ideal 120–158 characters.\",\n \"check.titleWidth.name\": \"SEO title width\",\n \"check.titleWidth.tip\": \"Pixel width; over ~580px truncates.\",\n \"check.images.name\": \"Images\",\n \"check.images.tip\": \"Whether the text contains images.\",\n \"check.externalLinks.name\": \"Outbound links\",\n \"check.externalLinks.tip\": \"Follow / nofollow mix of outbound links.\",\n \"check.internalLinks.name\": \"Internal links\",\n \"check.internalLinks.tip\": \"Follow / nofollow mix of internal links.\",\n \"check.singleH1.name\": \"Exactly one H1\",\n \"check.singleH1.tip\": \"There is one H1, correctly positioned.\",\n \"check.subheadingsTooLong.name\": \"Subheading distribution\",\n \"check.subheadingsTooLong.tip\": \"Long sections without a subheading.\",\n \"check.textParagraphTooLong.name\": \"Paragraph length\",\n \"check.textParagraphTooLong.tip\": \"Paragraphs over the recommended length.\",\n \"check.textSentenceLength.name\": \"Sentence length\",\n \"check.textSentenceLength.tip\": \"Share of sentences over the recommended length.\",\n \"check.textTransitionWords.name\": \"Transition words\",\n \"check.textTransitionWords.tip\": \"Share of sentences using transition words.\",\n \"check.passiveVoice.name\": \"Passive voice\",\n \"check.passiveVoice.tip\": \"Share of sentences in passive voice.\",\n \"check.sentenceBeginnings.name\": \"Consecutive sentences\",\n \"check.sentenceBeginnings.tip\": \"Repetitive sentence beginnings.\",\n \"check.fleschReadingEase.name\": \"Reading ease\",\n \"check.fleschReadingEase.tip\": \"Flesch Reading Ease (0–100); higher is easier. Aim for 60+.\",\n\n \"reco.introductionKeyword.bad\": \"Add “{{keyphrase}}” to your opening paragraph.\",\n \"reco.introductionKeyword.badNoKeyphrase\": \"Add your keyphrase to your opening paragraph.\",\n \"reco.keyphraseDensity.bad\": \"Use the keyphrase a few more times to land in the ideal band.\",\n \"reco.keyphraseDensity.warn\": \"Use the keyphrase ~2 more times to land in the ideal band.\",\n \"reco.metaDescriptionKeyword.bad\":\n \"Add the keyphrase to the meta description to improve click-through.\",\n \"reco.imageKeyphrase.warn\": \"Add the keyphrase to the alt text of the remaining images.\",\n \"reco.imageKeyphrase.bad\": \"Add the keyphrase to your image alt texts.\",\n \"reco.keyphraseDistribution.warn\":\n \"Occurrences are clustered — spread the keyphrase through the body.\",\n \"reco.keyphraseDistribution.bad\": \"Distribute the keyphrase more evenly through the text.\",\n \"reco.metaDescriptionLength.warn\":\n \"You're near the limit — trim a few characters to avoid truncation.\",\n \"reco.metaDescriptionLength.bad\": \"Adjust the meta description toward 120–158 characters.\",\n \"reco.internalLinks.warn\": \"Add a few internal links to related pages.\",\n \"reco.internalLinks.bad\": \"Add internal links to related pages.\",\n \"reco.textLength.bad\": \"Add more content — aim for at least 300 words.\",\n \"reco.textLength.warn\": \"Add more content to comfortably clear the minimum.\",\n \"reco.fleschReadingEase.warn\":\n \"Shorten sentences and prefer simpler words to make the text easier to read.\",\n \"reco.fleschReadingEase.bad\":\n \"The text is hard to read — use shorter sentences and simpler words.\",\n \"reco.generic.warn\": \"This check needs some attention.\",\n \"reco.generic.bad\": \"This check needs improvement.\",\n\n \"field.generate\": \"Generate\",\n \"field.generating\": \"Generating…\",\n \"field.generationFailed\": \"Generation failed\",\n \"field.unchanged\": \"Your text is unchanged — press Generate to try again.\",\n \"field.noExtractor\": \"No content extractor is registered for this collection.\",\n \"field.auto.title\": \"Generated automatically\",\n \"field.auto.label\": \"Generated on publish\",\n \"field.auto.body.title\":\n \"Left empty, this title is generated from the page content when you publish. Type a value to keep your own.\",\n \"field.auto.body.description\":\n \"Left empty, this description is generated from the page content when you publish. Type a value to keep your own.\",\n \"meter.good\": \"Good\",\n \"meter.short\": \"Too short\",\n \"meter.long\": \"Too long\",\n \"meter.working\": \"Working…\",\n \"meter.empty.title\": \"No title\",\n \"meter.empty.description\": \"No description\",\n} as const;\n"],"mappings":"AAAO,MAAM,KAAK;AAAA,EA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A,EAC1B,uBAAuB;AAAA,EACvB,wBAAwB;AAAA,EACxB,+BACE;AAAA,EACF,8BACE;AAAA,EACF,qBAAqB;AAAA,EACrB,oBAAoB;AAAA,EAEpB,kBAAkB;AAAA,EAClB,oBAAoB;AAAA,EACpB,0BAA0B;AAAA,EAC1B,mBAAmB;AAAA,EACnB,qBAAqB;AAAA,EACrB,oBAAoB;AAAA,EACpB,oBAAoB;AAAA,EACpB,yBACE;AAAA,EACF,+BACE;AAAA,EACF,cAAc;AAAA,EACd,eAAe;AAAA,EACf,cAAc;AAAA,EACd,iBAAiB;AAAA,EACjB,qBAAqB;AAAA,EACrB,2BAA2B;AAC7B;","names":[]}
|
package/dist/types/config.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { PayloadRequest } from "payload";
|
|
1
2
|
import type { ContentNode, HeadingLevel } from "../content/schema/nodes";
|
|
2
3
|
import type { Translations } from "../translations/types";
|
|
3
4
|
/** Runtime context handed to a content extractor so it can resolve references and locale-correct hrefs. */
|
|
@@ -20,6 +21,12 @@ export interface SeoFieldPaths {
|
|
|
20
21
|
*/
|
|
21
22
|
slug?: string;
|
|
22
23
|
}
|
|
24
|
+
export interface ResolveUrlArgs {
|
|
25
|
+
doc: Record<string, unknown>;
|
|
26
|
+
locale: string;
|
|
27
|
+
req: PayloadRequest;
|
|
28
|
+
}
|
|
29
|
+
export type ResolveUrl = (args: ResolveUrlArgs) => string | null | Promise<string | null>;
|
|
23
30
|
export interface SeoCollectionConfig {
|
|
24
31
|
slug: string;
|
|
25
32
|
fields?: SeoFieldPaths;
|
|
@@ -36,6 +43,7 @@ export interface SeoCollectionConfig {
|
|
|
36
43
|
* it only reads ids + injected resolveDocs (it is runtime-agnostic).
|
|
37
44
|
*/
|
|
38
45
|
serverExtractContent?: ContentExtractor;
|
|
46
|
+
resolveUrl?: ResolveUrl;
|
|
39
47
|
}
|
|
40
48
|
export interface SeoSiteConfig {
|
|
41
49
|
name?: string;
|
|
@@ -67,6 +75,7 @@ export interface SeoPluginConfig {
|
|
|
67
75
|
supportedLocales?: string[];
|
|
68
76
|
translations?: Translations;
|
|
69
77
|
generation?: SeoGenerationConfig;
|
|
78
|
+
keyphraseIndex?: boolean;
|
|
70
79
|
}
|
|
71
80
|
export interface DocQuery {
|
|
72
81
|
collection: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/types/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACzE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAE1D,2GAA2G;AAC3G,MAAM,WAAW,cAAc;IAC7B,+FAA+F;IAC/F,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,8EAA8E;IAC9E,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,qIAAqI;AACrI,MAAM,MAAM,gBAAgB,GAAG,CAC7B,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/B,GAAG,EAAE,cAAc,EACnB,OAAO,EAAE,cAAc,KACpB,WAAW,EAAE,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC;AAE5C,MAAM,WAAW,aAAa;IAC5B,kEAAkE;IAClE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,yGAAyG;IACzG,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB;;;;OAIG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAC3B;;;;;OAKG;IACH,oBAAoB,CAAC,EAAE,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/types/config.ts"],"names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AI,KAAK,WAAW,GAAG,IAAI,CAAC;IAC3E,SAAS,EAAE,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,KAAK,WAAW,GAAG,IAAI,CAAC;IACxD,IAAI,EAAE,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,KAAK,WAAW,GAAG,IAAI,CAAC;IACzE,KAAK,EAAE,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,KAAK,WAAW,GAAG,IAAI,CAAC;IACxE,KAAK,EAAE,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,KAAK,WAAW,GAAG,IAAI,CAAC;IAC3E,IAAI,EAAE,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,KAAK,WAAW,GAAG,IAAI,CAAC;IAClD,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,WAAW,GAAG,IAAI,CAAC;IACjD,OAAO,EAAE,CAAC,KAAK,EAAE,CAAC,WAAW,GAAG,IAAI,GAAG,SAAS,CAAC,EAAE,KAAK,WAAW,EAAE,CAAC;CACvE;AAED,MAAM,WAAW,cAAc;IAC7B,WAAW,EAAE,CAAC,OAAO,EAAE,QAAQ,EAAE,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAC;IACxD,OAAO,EAAE,cAAc,CAAC;CACzB"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { HTMLAttributes } from "react";
|
|
2
|
+
interface NoticeProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
variant: "warn" | "bad";
|
|
4
|
+
}
|
|
5
|
+
export declare function Notice({ variant, className, children, ...props }: NoticeProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=Notice.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Notice.d.ts","sourceRoot":"","sources":["../../src/ui/Notice.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAe5C,UAAU,WAAY,SAAQ,cAAc,CAAC,cAAc,CAAC;IAC1D,OAAO,EAAE,MAAM,GAAG,KAAK,CAAC;CACzB;AAED,wBAAgB,MAAM,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,WAAW,2CAO7E"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { cva } from "class-variance-authority";
|
|
4
|
+
import { AlertTriangle } from "lucide-react";
|
|
5
|
+
import { cn } from "../utils/style";
|
|
6
|
+
const noticeVariants = cva(
|
|
7
|
+
"frseo:text-[11.5px] frseo:rounded-rs frseo:px-[10px] frseo:py-[8px] frseo:flex frseo:items-start frseo:gap-[7px]",
|
|
8
|
+
{
|
|
9
|
+
variants: {
|
|
10
|
+
variant: {
|
|
11
|
+
warn: "frseo:text-seo-warn frseo:bg-seo-warn-100",
|
|
12
|
+
bad: "frseo:text-seo-bad frseo:bg-seo-bad-100"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
);
|
|
17
|
+
function Notice({ variant, className, children, ...props }) {
|
|
18
|
+
return /* @__PURE__ */ jsxs("div", { className: cn(noticeVariants({ variant }), className), ...props, children: [
|
|
19
|
+
/* @__PURE__ */ jsx(AlertTriangle, { "aria-hidden": "true", className: "frseo:w-[15px] frseo:h-[15px] frseo:flex-none" }),
|
|
20
|
+
children
|
|
21
|
+
] });
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
Notice
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=Notice.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/ui/Notice.tsx"],"sourcesContent":["\"use client\";\n\nimport { cva } from \"class-variance-authority\";\nimport { AlertTriangle } from \"lucide-react\";\nimport type { HTMLAttributes } from \"react\";\nimport { cn } from \"../utils/style\";\n\nconst noticeVariants = cva(\n \"text-[11.5px] rounded-rs px-[10px] py-[8px] flex items-start gap-[7px]\",\n {\n variants: {\n variant: {\n warn: \"text-seo-warn bg-seo-warn-100\",\n bad: \"text-seo-bad bg-seo-bad-100\",\n },\n },\n }\n);\n\ninterface NoticeProps extends HTMLAttributes<HTMLDivElement> {\n variant: \"warn\" | \"bad\";\n}\n\nexport function Notice({ variant, className, children, ...props }: NoticeProps) {\n return (\n <div className={cn(noticeVariants({ variant }), className)} {...props}>\n <AlertTriangle aria-hidden=\"true\" className=\"w-[15px] h-[15px] flex-none\" />\n {children}\n </div>\n );\n}\n"],"mappings":";AAyBI,SACE,KADF;AAvBJ,SAAS,WAAW;AACpB,SAAS,qBAAqB;AAE9B,SAAS,UAAU;AAEnB,MAAM,iBAAiB;AAAA,EACrB;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,SAAS;AAAA,QACP,MAAM;AAAA,QACN,KAAK;AAAA,MACP;AAAA,IACF;AAAA,EACF;AACF;AAMO,SAAS,OAAO,EAAE,SAAS,WAAW,UAAU,GAAG,MAAM,GAAgB;AAC9E,SACE,qBAAC,SAAI,WAAW,GAAG,eAAe,EAAE,QAAQ,CAAC,GAAG,SAAS,GAAI,GAAG,OAC9D;AAAA,wBAAC,iBAAc,eAAY,QAAO,WAAU,+BAA8B;AAAA,IACzE;AAAA,KACH;AAEJ;","names":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"overrideAdmin.d.ts","sourceRoot":"","sources":["../../../src/utils/config/overrideAdmin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAKtC,OAAO,KAAK,EAAE,eAAe,EAAiB,MAAM,oBAAoB,CAAC;AAEzE,wBAAgB,aAAa,CAAC,cAAc,EAAE,MAAM,EAAE,MAAM,EAAE,eAAe,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"overrideAdmin.d.ts","sourceRoot":"","sources":["../../../src/utils/config/overrideAdmin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAKtC,OAAO,KAAK,EAAE,eAAe,EAAiB,MAAM,oBAAoB,CAAC;AAEzE,wBAAgB,aAAa,CAAC,cAAc,EAAE,MAAM,EAAE,MAAM,EAAE,eAAe,GAAG,MAAM,CAqErF"}
|
|
@@ -19,7 +19,8 @@ function overrideAdmin(incomingConfig, config) {
|
|
|
19
19
|
baseUrl: site.baseUrl ?? "",
|
|
20
20
|
faviconUrl: site.faviconUrl ?? ""
|
|
21
21
|
},
|
|
22
|
-
supportedLocales: config.supportedLocales ?? ["en"]
|
|
22
|
+
supportedLocales: config.supportedLocales ?? ["en"],
|
|
23
|
+
keyphraseIndex: Boolean(config.keyphraseIndex)
|
|
23
24
|
}
|
|
24
25
|
};
|
|
25
26
|
const existing = collection.admin?.components?.edit?.beforeDocumentControls ?? [];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/utils/config/overrideAdmin.ts"],"sourcesContent":["import type { Config } from \"payload\";\nimport { getComponentPath } from \"./getComponentPath\";\nimport { resolveApiKey } from \"../../server/generate/apiKey\";\nimport { createGenerateEndpoint } from \"../../server/generate/endpoint\";\nimport type { SeoClientConfig } from \"../../client-config/registry\";\nimport type { SeoPluginConfig, SeoSiteConfig } from \"../../types/config\";\n\nexport function overrideAdmin(incomingConfig: Config, config: SeoPluginConfig): Config {\n const bySlug = new Map(config.collections.map((c) => [c.slug, c]));\n const site: SeoSiteConfig = config.site ?? {};\n\n const collections = (incomingConfig.collections ?? []).map((collection) => {\n const seoCfg = bySlug.get(collection.slug);\n if (!seoCfg) return collection;\n\n const buttonEntry = {\n path: getComponentPath(\"components/SeoButton\"),\n clientProps: {\n collectionSlug: collection.slug,\n fields: seoCfg.fields ?? {},\n extractContentPath: seoCfg.extractContentPath,\n site: {\n name: site.name ?? \"\",\n baseUrl: site.baseUrl ?? \"\",\n faviconUrl: site.faviconUrl ?? \"\",\n },\n supportedLocales: config.supportedLocales ?? [\"en\"],\n },\n };\n\n const existing = collection.admin?.components?.edit?.beforeDocumentControls ?? [];\n\n return {\n ...collection,\n admin: {\n ...collection.admin,\n components: {\n ...collection.admin?.components,\n edit: {\n ...collection.admin?.components?.edit,\n beforeDocumentControls: [...existing, buttonEntry],\n },\n },\n },\n };\n });\n\n const clientConfig: SeoClientConfig = {\n enabled: Boolean(resolveApiKey(config.generation)),\n extractByCollection: Object.fromEntries(\n config.collections.map((c) => [c.slug, c.extractContentPath])\n ),\n };\n\n const providerEntry = {\n path: getComponentPath(\"providers/SeoClientConfigProvider\", \"SeoClientConfigProvider\"),\n clientProps: {\n config: clientConfig,\n },\n };\n\n const providers = [...(incomingConfig.admin?.components?.providers ?? []), providerEntry];\n\n return {\n ...incomingConfig,\n collections,\n endpoints: [...(incomingConfig.endpoints ?? []), createGenerateEndpoint()],\n admin: {\n ...incomingConfig.admin,\n components: {\n ...incomingConfig.admin?.components,\n providers,\n },\n },\n };\n}\n"],"mappings":"AACA,SAAS,wBAAwB;AACjC,SAAS,qBAAqB;AAC9B,SAAS,8BAA8B;AAIhC,SAAS,cAAc,gBAAwB,QAAiC;AACrF,QAAM,SAAS,IAAI,IAAI,OAAO,YAAY,IAAI,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC;AACjE,QAAM,OAAsB,OAAO,QAAQ,CAAC;AAE5C,QAAM,eAAe,eAAe,eAAe,CAAC,GAAG,IAAI,CAAC,eAAe;AACzE,UAAM,SAAS,OAAO,IAAI,WAAW,IAAI;AACzC,QAAI,CAAC;AAAQ,aAAO;AAEpB,UAAM,cAAc;AAAA,MAClB,MAAM,iBAAiB,sBAAsB;AAAA,MAC7C,aAAa;AAAA,QACX,gBAAgB,WAAW;AAAA,QAC3B,QAAQ,OAAO,UAAU,CAAC;AAAA,QAC1B,oBAAoB,OAAO;AAAA,QAC3B,MAAM;AAAA,UACJ,MAAM,KAAK,QAAQ;AAAA,UACnB,SAAS,KAAK,WAAW;AAAA,UACzB,YAAY,KAAK,cAAc;AAAA,QACjC;AAAA,QACA,kBAAkB,OAAO,oBAAoB,CAAC,IAAI;AAAA,
|
|
1
|
+
{"version":3,"sources":["../../../src/utils/config/overrideAdmin.ts"],"sourcesContent":["import type { Config } from \"payload\";\nimport { getComponentPath } from \"./getComponentPath\";\nimport { resolveApiKey } from \"../../server/generate/apiKey\";\nimport { createGenerateEndpoint } from \"../../server/generate/endpoint\";\nimport type { SeoClientConfig } from \"../../client-config/registry\";\nimport type { SeoPluginConfig, SeoSiteConfig } from \"../../types/config\";\n\nexport function overrideAdmin(incomingConfig: Config, config: SeoPluginConfig): Config {\n const bySlug = new Map(config.collections.map((c) => [c.slug, c]));\n const site: SeoSiteConfig = config.site ?? {};\n\n const collections = (incomingConfig.collections ?? []).map((collection) => {\n const seoCfg = bySlug.get(collection.slug);\n if (!seoCfg) return collection;\n\n const buttonEntry = {\n path: getComponentPath(\"components/SeoButton\"),\n clientProps: {\n collectionSlug: collection.slug,\n fields: seoCfg.fields ?? {},\n extractContentPath: seoCfg.extractContentPath,\n site: {\n name: site.name ?? \"\",\n baseUrl: site.baseUrl ?? \"\",\n faviconUrl: site.faviconUrl ?? \"\",\n },\n supportedLocales: config.supportedLocales ?? [\"en\"],\n keyphraseIndex: Boolean(config.keyphraseIndex),\n },\n };\n\n const existing = collection.admin?.components?.edit?.beforeDocumentControls ?? [];\n\n return {\n ...collection,\n admin: {\n ...collection.admin,\n components: {\n ...collection.admin?.components,\n edit: {\n ...collection.admin?.components?.edit,\n beforeDocumentControls: [...existing, buttonEntry],\n },\n },\n },\n };\n });\n\n const clientConfig: SeoClientConfig = {\n enabled: Boolean(resolveApiKey(config.generation)),\n extractByCollection: Object.fromEntries(\n config.collections.map((c) => [c.slug, c.extractContentPath])\n ),\n };\n\n const providerEntry = {\n path: getComponentPath(\"providers/SeoClientConfigProvider\", \"SeoClientConfigProvider\"),\n clientProps: {\n config: clientConfig,\n },\n };\n\n const providers = [...(incomingConfig.admin?.components?.providers ?? []), providerEntry];\n\n return {\n ...incomingConfig,\n collections,\n endpoints: [...(incomingConfig.endpoints ?? []), createGenerateEndpoint()],\n admin: {\n ...incomingConfig.admin,\n components: {\n ...incomingConfig.admin?.components,\n providers,\n },\n },\n };\n}\n"],"mappings":"AACA,SAAS,wBAAwB;AACjC,SAAS,qBAAqB;AAC9B,SAAS,8BAA8B;AAIhC,SAAS,cAAc,gBAAwB,QAAiC;AACrF,QAAM,SAAS,IAAI,IAAI,OAAO,YAAY,IAAI,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC;AACjE,QAAM,OAAsB,OAAO,QAAQ,CAAC;AAE5C,QAAM,eAAe,eAAe,eAAe,CAAC,GAAG,IAAI,CAAC,eAAe;AACzE,UAAM,SAAS,OAAO,IAAI,WAAW,IAAI;AACzC,QAAI,CAAC;AAAQ,aAAO;AAEpB,UAAM,cAAc;AAAA,MAClB,MAAM,iBAAiB,sBAAsB;AAAA,MAC7C,aAAa;AAAA,QACX,gBAAgB,WAAW;AAAA,QAC3B,QAAQ,OAAO,UAAU,CAAC;AAAA,QAC1B,oBAAoB,OAAO;AAAA,QAC3B,MAAM;AAAA,UACJ,MAAM,KAAK,QAAQ;AAAA,UACnB,SAAS,KAAK,WAAW;AAAA,UACzB,YAAY,KAAK,cAAc;AAAA,QACjC;AAAA,QACA,kBAAkB,OAAO,oBAAoB,CAAC,IAAI;AAAA,QAClD,gBAAgB,QAAQ,OAAO,cAAc;AAAA,MAC/C;AAAA,IACF;AAEA,UAAM,WAAW,WAAW,OAAO,YAAY,MAAM,0BAA0B,CAAC;AAEhF,WAAO;AAAA,MACL,GAAG;AAAA,MACH,OAAO;AAAA,QACL,GAAG,WAAW;AAAA,QACd,YAAY;AAAA,UACV,GAAG,WAAW,OAAO;AAAA,UACrB,MAAM;AAAA,YACJ,GAAG,WAAW,OAAO,YAAY;AAAA,YACjC,wBAAwB,CAAC,GAAG,UAAU,WAAW;AAAA,UACnD;AAAA,QACF;AAAA,MACF;AAAA,IACF;AAAA,EACF,CAAC;AAED,QAAM,eAAgC;AAAA,IACpC,SAAS,QAAQ,cAAc,OAAO,UAAU,CAAC;AAAA,IACjD,qBAAqB,OAAO;AAAA,MAC1B,OAAO,YAAY,IAAI,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,kBAAkB,CAAC;AAAA,IAC9D;AAAA,EACF;AAEA,QAAM,gBAAgB;AAAA,IACpB,MAAM,iBAAiB,qCAAqC,yBAAyB;AAAA,IACrF,aAAa;AAAA,MACX,QAAQ;AAAA,IACV;AAAA,EACF;AAEA,QAAM,YAAY,CAAC,GAAI,eAAe,OAAO,YAAY,aAAa,CAAC,GAAI,aAAa;AAExF,SAAO;AAAA,IACL,GAAG;AAAA,IACH;AAAA,IACA,WAAW,CAAC,GAAI,eAAe,aAAa,CAAC,GAAI,uBAAuB,CAAC;AAAA,IACzE,OAAO;AAAA,MACL,GAAG,eAAe;AAAA,MAClB,YAAY;AAAA,QACV,GAAG,eAAe,OAAO;AAAA,QACzB;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF;","names":[]}
|
package/dist/utils/style.d.ts
CHANGED
|
@@ -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;AAIvC,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,UAAU,EAAE,GAAG,MAAM,CAElD;AAED,eAAO,MAAM,aAAa,QAEzB,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;AAEF,eAAO,MAAM,oBAAoB,QAEhC,CAAC"}
|
package/dist/utils/style.js
CHANGED
|
@@ -7,7 +7,11 @@ function cn(...inputs) {
|
|
|
7
7
|
const ROW_SEPARATOR = cn(
|
|
8
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
9
|
);
|
|
10
|
+
const OUTLINE_BUTTON_CLASS = cn(
|
|
11
|
+
"frseo:inline-flex frseo:items-center frseo:gap-[6px] frseo:rounded-rs frseo:border frseo:border-neutral-200 frseo:bg-transparent frseo:px-[9px] frseo:py-[4px] frseo:text-[12px] frseo:font-semibold frseo:text-neutral-800 frseo:transition-colors frseo:hover:border-neutral-300 frseo:hover:bg-neutral-100 frseo:cursor-pointer frseo:disabled:cursor-default frseo:disabled:text-neutral-400 frseo:aria-disabled:cursor-default frseo:aria-disabled:text-neutral-400"
|
|
12
|
+
);
|
|
10
13
|
export {
|
|
14
|
+
OUTLINE_BUTTON_CLASS,
|
|
11
15
|
ROW_SEPARATOR,
|
|
12
16
|
cn
|
|
13
17
|
};
|
package/dist/utils/style.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
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":[]}
|
|
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\nexport const OUTLINE_BUTTON_CLASS = cn(\n \"inline-flex items-center gap-[6px] rounded-rs border border-neutral-200 bg-transparent px-[9px] py-[4px] text-[12px] font-semibold text-neutral-800 transition-colors hover:border-neutral-300 hover:bg-neutral-100 cursor-pointer disabled:cursor-default disabled:text-neutral-400 aria-disabled:cursor-default aria-disabled:text-neutral-400\"\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;AAEO,MAAM,uBAAuB;AAAA,EAClC;AACF;","names":[]}
|