@treely/strapi-slices 2.2.1 → 2.3.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/index.d.ts +3 -1
- package/dist/strapi-slices.cjs.development.js +13 -11
- package/dist/strapi-slices.cjs.development.js.map +1 -1
- package/dist/strapi-slices.cjs.production.min.js +1 -1
- package/dist/strapi-slices.cjs.production.min.js.map +1 -1
- package/dist/strapi-slices.esm.js +12 -12
- package/dist/strapi-slices.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/index.tsx +4 -0
|
@@ -550,6 +550,17 @@ var mergeGlobalAndStrapiProject = function mergeGlobalAndStrapiProject(context,
|
|
|
550
550
|
});
|
|
551
551
|
};
|
|
552
552
|
|
|
553
|
+
var strapiLinkUrl = function strapiLinkUrl(strapiLink) {
|
|
554
|
+
var _strapiLink, _strapiLink2;
|
|
555
|
+
if (strapiLink === void 0) {
|
|
556
|
+
strapiLink = undefined;
|
|
557
|
+
}
|
|
558
|
+
if ((_strapiLink = strapiLink) != null && (_strapiLink = _strapiLink.page) != null && _strapiLink.data) {
|
|
559
|
+
return "/" + strapiLink.page.data.attributes.slug;
|
|
560
|
+
}
|
|
561
|
+
return ((_strapiLink2 = strapiLink) == null ? void 0 : _strapiLink2.url) || '/';
|
|
562
|
+
};
|
|
563
|
+
|
|
553
564
|
var SEOTags = function SEOTags(_ref) {
|
|
554
565
|
var _shareImage$url, _shareImage$alt;
|
|
555
566
|
var title = _ref.title,
|
|
@@ -840,17 +851,6 @@ var FullWidthImage = function FullWidthImage(_ref) {
|
|
|
840
851
|
}))));
|
|
841
852
|
};
|
|
842
853
|
|
|
843
|
-
var strapiLinkUrl = function strapiLinkUrl(strapiLink) {
|
|
844
|
-
var _strapiLink, _strapiLink2;
|
|
845
|
-
if (strapiLink === void 0) {
|
|
846
|
-
strapiLink = undefined;
|
|
847
|
-
}
|
|
848
|
-
if ((_strapiLink = strapiLink) != null && (_strapiLink = _strapiLink.page) != null && _strapiLink.data) {
|
|
849
|
-
return "/" + strapiLink.page.data.attributes.slug;
|
|
850
|
-
}
|
|
851
|
-
return ((_strapiLink2 = strapiLink) == null ? void 0 : _strapiLink2.url) || '/';
|
|
852
|
-
};
|
|
853
|
-
|
|
854
854
|
var openHubSpotChat = function openHubSpotChat() {
|
|
855
855
|
var w = window;
|
|
856
856
|
if (w.HubSpotConversations) {
|
|
@@ -4849,5 +4849,5 @@ var SliceRenderer = function SliceRenderer(_ref) {
|
|
|
4849
4849
|
}));
|
|
4850
4850
|
};
|
|
4851
4851
|
|
|
4852
|
-
export { SECTIONS_WITH_BLOG_POSTS, SECTIONS_WITH_CUSTOMER_STORIES, SECTIONS_WITH_PROJECTS, SEOTags, SliceRenderer, mergeGlobalAndStrapiBlogPostData, mergeGlobalAndStrapiCustomerStoryData, mergeGlobalAndStrapiPageData, mergeGlobalAndStrapiProject as mergeGlobalAndStrapiProjectData };
|
|
4852
|
+
export { SECTIONS_WITH_BLOG_POSTS, SECTIONS_WITH_CUSTOMER_STORIES, SECTIONS_WITH_PROJECTS, SEOTags, SliceRenderer, mergeGlobalAndStrapiBlogPostData, mergeGlobalAndStrapiCustomerStoryData, mergeGlobalAndStrapiPageData, mergeGlobalAndStrapiProject as mergeGlobalAndStrapiProjectData, strapiLinkUrl, strapiMediaUrl };
|
|
4853
4853
|
//# sourceMappingURL=strapi-slices.esm.js.map
|