@pronto-tools-and-more/components 14.59.0 → 14.61.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/dist/main.js +14 -1
- package/dist/parts/Seo/Seo.d.ts +1 -1
- package/package.json +1 -1
package/dist/main.js
CHANGED
@@ -2081,6 +2081,18 @@ var getActualTitlePostFix = (titlePostFix) => {
|
|
2081
2081
|
}
|
2082
2082
|
return titlePostFix;
|
2083
2083
|
};
|
2084
|
+
var getActualAlternates = (alternates) => {
|
2085
|
+
if (!alternates) {
|
2086
|
+
return [];
|
2087
|
+
}
|
2088
|
+
if (typeof alternates === "string") {
|
2089
|
+
return {
|
2090
|
+
expression: alternates,
|
2091
|
+
fallback: []
|
2092
|
+
};
|
2093
|
+
}
|
2094
|
+
return alternates;
|
2095
|
+
};
|
2084
2096
|
var Seo = ({
|
2085
2097
|
title,
|
2086
2098
|
description,
|
@@ -2093,6 +2105,7 @@ var Seo = ({
|
|
2093
2105
|
image
|
2094
2106
|
} = {}) => {
|
2095
2107
|
const actualTitlePostFix = getActualTitlePostFix(titlePostfix);
|
2108
|
+
const actualAlternates = getActualAlternates(alternates);
|
2096
2109
|
const actualTitle = `${title}${actualTitlePostFix}`;
|
2097
2110
|
const json = {
|
2098
2111
|
title: actualTitle,
|
@@ -2111,7 +2124,7 @@ var Seo = ({
|
|
2111
2124
|
"google-site-verification": googleSiteVerification,
|
2112
2125
|
"facebook-domain-verification": facebookDomainVerification,
|
2113
2126
|
language,
|
2114
|
-
alternates
|
2127
|
+
alternates: actualAlternates
|
2115
2128
|
}
|
2116
2129
|
};
|
2117
2130
|
return /* @__PURE__ */ React.createElement(JsonComponent, { json });
|
package/dist/parts/Seo/Seo.d.ts
CHANGED
@@ -6,7 +6,7 @@ export declare const Seo: ({ title, description, keywords, titlePostfix, languag
|
|
6
6
|
titlePostfix?: string;
|
7
7
|
language?: string;
|
8
8
|
hrefLang?: string;
|
9
|
-
alternates?: readonly HrefLangAlternate[];
|
9
|
+
alternates?: readonly HrefLangAlternate[] | string;
|
10
10
|
googleSiteVerification?: string;
|
11
11
|
facebookDomainVerification?: string;
|
12
12
|
image?: string;
|