@pronto-tools-and-more/components 14.59.0 → 14.60.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 +16 -1
- package/dist/parts/Seo/Seo.d.ts +1 -1
- package/package.json +1 -1
package/dist/main.js
CHANGED
@@ -2081,6 +2081,20 @@ 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
|
+
alternates: {
|
2091
|
+
expression: alternates,
|
2092
|
+
fallback: []
|
2093
|
+
}
|
2094
|
+
};
|
2095
|
+
}
|
2096
|
+
return alternates;
|
2097
|
+
};
|
2084
2098
|
var Seo = ({
|
2085
2099
|
title,
|
2086
2100
|
description,
|
@@ -2093,6 +2107,7 @@ var Seo = ({
|
|
2093
2107
|
image
|
2094
2108
|
} = {}) => {
|
2095
2109
|
const actualTitlePostFix = getActualTitlePostFix(titlePostfix);
|
2110
|
+
const actualAlternates = getActualAlternates(alternates);
|
2096
2111
|
const actualTitle = `${title}${actualTitlePostFix}`;
|
2097
2112
|
const json = {
|
2098
2113
|
title: actualTitle,
|
@@ -2111,7 +2126,7 @@ var Seo = ({
|
|
2111
2126
|
"google-site-verification": googleSiteVerification,
|
2112
2127
|
"facebook-domain-verification": facebookDomainVerification,
|
2113
2128
|
language,
|
2114
|
-
alternates
|
2129
|
+
alternates: actualAlternates
|
2115
2130
|
}
|
2116
2131
|
};
|
2117
2132
|
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;
|