@treely/strapi-slices 5.12.0 → 5.13.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/models/PageProps.d.ts +1 -0
- package/dist/strapi-slices.cjs.development.js +8 -4
- 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 +8 -4
- package/dist/strapi-slices.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/models/PageProps.ts +1 -0
- package/src/utils/mergeGlobalAndStrapiBlogPostData.test.ts +25 -4
- package/src/utils/mergeGlobalAndStrapiBlogPostData.ts +1 -0
- package/src/utils/mergeGlobalAndStrapiCustomerStoryData.test.ts +24 -4
- package/src/utils/mergeGlobalAndStrapiCustomerStoryData.ts +1 -0
- package/src/utils/mergeGlobalAndStrapiPageData.test.ts +22 -0
- package/src/utils/mergeGlobalAndStrapiPageData.ts +1 -0
- package/src/utils/mergeGlobalAndStrapiProjectData.test.ts +25 -4
- package/src/utils/mergeGlobalAndStrapiProjectData.ts +1 -0
|
@@ -778,7 +778,8 @@ var mergeGlobalAndStrapiBlogPostData = function mergeGlobalAndStrapiBlogPostData
|
|
|
778
778
|
banner: global.attributes.banner,
|
|
779
779
|
topBanner: (post == null ? void 0 : post.attributes.topBanner) || global.attributes.topBanner,
|
|
780
780
|
customerStories: [],
|
|
781
|
-
preview: !!context.preview
|
|
781
|
+
preview: !!context.preview,
|
|
782
|
+
isFallbackLocale: context.locale !== post.attributes.locale
|
|
782
783
|
});
|
|
783
784
|
};
|
|
784
785
|
|
|
@@ -817,7 +818,8 @@ var mergeGlobalAndStrapiCustomerStoryData = function mergeGlobalAndStrapiCustome
|
|
|
817
818
|
banner: global.attributes.banner,
|
|
818
819
|
topBanner: (customerStory == null ? void 0 : customerStory.attributes.topBanner) || global.attributes.topBanner,
|
|
819
820
|
blogPosts: [],
|
|
820
|
-
preview: !!context.preview
|
|
821
|
+
preview: !!context.preview,
|
|
822
|
+
isFallbackLocale: context.locale !== customerStory.attributes.locale
|
|
821
823
|
});
|
|
822
824
|
};
|
|
823
825
|
|
|
@@ -863,7 +865,8 @@ var mergeGlobalAndStrapiPageData = function mergeGlobalAndStrapiPageData(context
|
|
|
863
865
|
banner: global.attributes.banner,
|
|
864
866
|
topBanner: (page == null ? void 0 : page.attributes.topBanner) || global.attributes.topBanner,
|
|
865
867
|
customerStories: returnCustomerStories ? customerStories : [],
|
|
866
|
-
preview: !!context.preview
|
|
868
|
+
preview: !!context.preview,
|
|
869
|
+
isFallbackLocale: context.locale !== page.attributes.locale
|
|
867
870
|
});
|
|
868
871
|
};
|
|
869
872
|
|
|
@@ -906,7 +909,8 @@ var mergeGlobalAndStrapiProject = function mergeGlobalAndStrapiProject(context,
|
|
|
906
909
|
banner: global.attributes.banner,
|
|
907
910
|
topBanner: (project == null ? void 0 : project.attributes.topBanner) || global.attributes.topBanner,
|
|
908
911
|
customerStories: [],
|
|
909
|
-
preview: !!context.preview
|
|
912
|
+
preview: !!context.preview,
|
|
913
|
+
isFallbackLocale: context.locale !== project.attributes.locale
|
|
910
914
|
});
|
|
911
915
|
};
|
|
912
916
|
|