medusa-storefront-data 2.5.9 → 2.5.10
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/package.json +9 -6
- package/dist/src/dynamic-config-schema/index.d.ts +0 -103
- package/dist/src/dynamic-config-schema/index.d.ts.map +0 -1
- package/dist/src/dynamic-config-schema/index.js +0 -172
- package/dist/src/dynamic-config-schema/sections/about-brand.d.ts +0 -5
- package/dist/src/dynamic-config-schema/sections/about-brand.d.ts.map +0 -1
- package/dist/src/dynamic-config-schema/sections/about-brand.js +0 -30
- package/dist/src/dynamic-config-schema/sections/baptism-picks.d.ts +0 -5
- package/dist/src/dynamic-config-schema/sections/baptism-picks.d.ts.map +0 -1
- package/dist/src/dynamic-config-schema/sections/baptism-picks.js +0 -17
- package/dist/src/dynamic-config-schema/sections/baptism.d.ts +0 -5
- package/dist/src/dynamic-config-schema/sections/baptism.d.ts.map +0 -1
- package/dist/src/dynamic-config-schema/sections/baptism.js +0 -4
- package/dist/src/dynamic-config-schema/sections/blog-posts.d.ts +0 -5
- package/dist/src/dynamic-config-schema/sections/blog-posts.d.ts.map +0 -1
- package/dist/src/dynamic-config-schema/sections/blog-posts.js +0 -31
- package/dist/src/dynamic-config-schema/sections/brand-marquee.d.ts +0 -5
- package/dist/src/dynamic-config-schema/sections/brand-marquee.d.ts.map +0 -1
- package/dist/src/dynamic-config-schema/sections/brand-marquee.js +0 -9
- package/dist/src/dynamic-config-schema/sections/brand-pillars.d.ts +0 -5
- package/dist/src/dynamic-config-schema/sections/brand-pillars.d.ts.map +0 -1
- package/dist/src/dynamic-config-schema/sections/brand-pillars.js +0 -29
- package/dist/src/dynamic-config-schema/sections/category-pills.d.ts +0 -5
- package/dist/src/dynamic-config-schema/sections/category-pills.d.ts.map +0 -1
- package/dist/src/dynamic-config-schema/sections/category-pills.js +0 -4
- package/dist/src/dynamic-config-schema/sections/celebrity-trust.d.ts +0 -5
- package/dist/src/dynamic-config-schema/sections/celebrity-trust.d.ts.map +0 -1
- package/dist/src/dynamic-config-schema/sections/celebrity-trust.js +0 -4
- package/dist/src/dynamic-config-schema/sections/features.d.ts +0 -5
- package/dist/src/dynamic-config-schema/sections/features.d.ts.map +0 -1
- package/dist/src/dynamic-config-schema/sections/features.js +0 -12
- package/dist/src/dynamic-config-schema/sections/hero.d.ts +0 -6
- package/dist/src/dynamic-config-schema/sections/hero.d.ts.map +0 -1
- package/dist/src/dynamic-config-schema/sections/hero.js +0 -9
- package/dist/src/dynamic-config-schema/sections/index.d.ts +0 -24
- package/dist/src/dynamic-config-schema/sections/index.d.ts.map +0 -1
- package/dist/src/dynamic-config-schema/sections/index.js +0 -23
- package/dist/src/dynamic-config-schema/sections/instagram-posts.d.ts +0 -5
- package/dist/src/dynamic-config-schema/sections/instagram-posts.d.ts.map +0 -1
- package/dist/src/dynamic-config-schema/sections/instagram-posts.js +0 -30
- package/dist/src/dynamic-config-schema/sections/loved-by-moms.d.ts +0 -5
- package/dist/src/dynamic-config-schema/sections/loved-by-moms.d.ts.map +0 -1
- package/dist/src/dynamic-config-schema/sections/loved-by-moms.js +0 -4
- package/dist/src/dynamic-config-schema/sections/luxe-favourites.d.ts +0 -5
- package/dist/src/dynamic-config-schema/sections/luxe-favourites.d.ts.map +0 -1
- package/dist/src/dynamic-config-schema/sections/luxe-favourites.js +0 -4
- package/dist/src/dynamic-config-schema/sections/new-arrivals-classic.d.ts +0 -5
- package/dist/src/dynamic-config-schema/sections/new-arrivals-classic.d.ts.map +0 -1
- package/dist/src/dynamic-config-schema/sections/new-arrivals-classic.js +0 -12
- package/dist/src/dynamic-config-schema/sections/new-arrivals.d.ts +0 -5
- package/dist/src/dynamic-config-schema/sections/new-arrivals.d.ts.map +0 -1
- package/dist/src/dynamic-config-schema/sections/new-arrivals.js +0 -12
- package/dist/src/dynamic-config-schema/sections/promo-announcements.d.ts +0 -5
- package/dist/src/dynamic-config-schema/sections/promo-announcements.d.ts.map +0 -1
- package/dist/src/dynamic-config-schema/sections/promo-announcements.js +0 -16
- package/dist/src/dynamic-config-schema/sections/promo-countdown.d.ts +0 -5
- package/dist/src/dynamic-config-schema/sections/promo-countdown.d.ts.map +0 -1
- package/dist/src/dynamic-config-schema/sections/promo-countdown.js +0 -16
- package/dist/src/dynamic-config-schema/sections/shop-by-age.d.ts +0 -5
- package/dist/src/dynamic-config-schema/sections/shop-by-age.d.ts.map +0 -1
- package/dist/src/dynamic-config-schema/sections/shop-by-age.js +0 -4
- package/dist/src/dynamic-config-schema/sections/shop-by-category.d.ts +0 -5
- package/dist/src/dynamic-config-schema/sections/shop-by-category.d.ts.map +0 -1
- package/dist/src/dynamic-config-schema/sections/shop-by-category.js +0 -4
- package/dist/src/dynamic-config-schema/sections/testimonials.d.ts +0 -5
- package/dist/src/dynamic-config-schema/sections/testimonials.d.ts.map +0 -1
- package/dist/src/dynamic-config-schema/sections/testimonials.js +0 -9
- package/dist/src/dynamic-config-schema/sections/theme-dresses.d.ts +0 -5
- package/dist/src/dynamic-config-schema/sections/theme-dresses.d.ts.map +0 -1
- package/dist/src/dynamic-config-schema/sections/theme-dresses.js +0 -4
- package/dist/src/dynamic-config-schema/sections/video-stories.d.ts +0 -5
- package/dist/src/dynamic-config-schema/sections/video-stories.d.ts.map +0 -1
- package/dist/src/dynamic-config-schema/sections/video-stories.js +0 -24
- package/dist/src/dynamic-config-schema/sections/why-choose-us.d.ts +0 -5
- package/dist/src/dynamic-config-schema/sections/why-choose-us.d.ts.map +0 -1
- package/dist/src/dynamic-config-schema/sections/why-choose-us.js +0 -9
- package/dist/src/dynamic-config-schema/shared.d.ts +0 -35
- package/dist/src/dynamic-config-schema/shared.d.ts.map +0 -1
- package/dist/src/dynamic-config-schema/shared.js +0 -99
- package/dist/src/dynamic-config-schema/site-configs.d.ts +0 -11
- package/dist/src/dynamic-config-schema/site-configs.d.ts.map +0 -1
- package/dist/src/dynamic-config-schema/site-configs.js +0 -70
- package/dist/src/server/dynamic-config-api.d.ts +0 -11
- package/dist/src/server/dynamic-config-api.d.ts.map +0 -1
- package/dist/src/server/dynamic-config-api.js +0 -46
- package/dist/src/server/hero-banner-resolve.test.d.ts +0 -2
- package/dist/src/server/hero-banner-resolve.test.d.ts.map +0 -1
- package/dist/src/server/hero-banner-resolve.test.js +0 -56
- package/dist/src/server/hero-banners-config.test.d.ts +0 -2
- package/dist/src/server/hero-banners-config.test.d.ts.map +0 -1
- package/dist/src/server/hero-banners-config.test.js +0 -44
- package/dist/src/server/resolve-home-segment-data.d.ts +0 -25
- package/dist/src/server/resolve-home-segment-data.d.ts.map +0 -1
- package/dist/src/server/resolve-home-segment-data.js +0 -20
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export { promoAnnouncementsSectionId, promoAnnouncementsDynamicConfigStructure, promoAnnouncementsHomepageSectionField, } from "./promo-announcements";
|
|
2
|
-
export { heroSectionId, heroDynamicConfigStructure, heroHomepageSectionField, } from "./hero";
|
|
3
|
-
export { categoryPillsSectionId, categoryPillsDynamicConfigStructure, categoryPillsHomepageSectionField, } from "./category-pills";
|
|
4
|
-
export { newArrivalsSectionId, newArrivalsDynamicConfigStructure, newArrivalsHomepageSectionField, } from "./new-arrivals";
|
|
5
|
-
export { newArrivalsClassicSectionId, newArrivalsClassicDynamicConfigStructure, newArrivalsClassicHomepageSectionField, } from "./new-arrivals-classic";
|
|
6
|
-
export { promoCountdownSectionId, promoCountdownDynamicConfigStructure, promoCountdownHomepageSectionField, } from "./promo-countdown";
|
|
7
|
-
export { celebrityTrustSectionId, celebrityTrustDynamicConfigStructure, celebrityTrustHomepageSectionField, } from "./celebrity-trust";
|
|
8
|
-
export { luxeFavouritesSectionId, luxeFavouritesDynamicConfigStructure, luxeFavouritesHomepageSectionField, } from "./luxe-favourites";
|
|
9
|
-
export { shopByCategorySectionId, shopByCategoryDynamicConfigStructure, shopByCategoryHomepageSectionField, } from "./shop-by-category";
|
|
10
|
-
export { baptismSectionId, baptismDynamicConfigStructure, baptismHomepageSectionField, } from "./baptism";
|
|
11
|
-
export { baptismPicksSectionId, baptismPicksDynamicConfigStructure, baptismPicksHomepageSectionField, } from "./baptism-picks";
|
|
12
|
-
export { themeDressesSectionId, themeDressesDynamicConfigStructure, themeDressesHomepageSectionField, } from "./theme-dresses";
|
|
13
|
-
export { brandMarqueeSectionId, brandMarqueeDynamicConfigStructure, brandMarqueeHomepageSectionField, } from "./brand-marquee";
|
|
14
|
-
export { aboutBrandSectionId, aboutBrandDynamicConfigStructure, aboutBrandHomepageSectionField, } from "./about-brand";
|
|
15
|
-
export { testimonialsSectionId, testimonialsDynamicConfigStructure, testimonialsHomepageSectionField, } from "./testimonials";
|
|
16
|
-
export { brandPillarsSectionId, brandPillarsDynamicConfigStructure, brandPillarsHomepageSectionField, } from "./brand-pillars";
|
|
17
|
-
export { instagramPostsSectionId, instagramPostsDynamicConfigStructure, instagramPostsHomepageSectionField, } from "./instagram-posts";
|
|
18
|
-
export { featuresSectionId, featuresDynamicConfigStructure, featuresHomepageSectionField, } from "./features";
|
|
19
|
-
export { shopByAgeSectionId, shopByAgeDynamicConfigStructure, shopByAgeHomepageSectionField, } from "./shop-by-age";
|
|
20
|
-
export { whyChooseUsSectionId, whyChooseUsDynamicConfigStructure, whyChooseUsHomepageSectionField, } from "./why-choose-us";
|
|
21
|
-
export { lovedByMomsSectionId, lovedByMomsDynamicConfigStructure, lovedByMomsHomepageSectionField, } from "./loved-by-moms";
|
|
22
|
-
export { videoStoriesSectionId, videoStoriesDynamicConfigStructure, videoStoriesHomepageSectionField, } from "./video-stories";
|
|
23
|
-
export { blogPostsSectionId, blogPostsDynamicConfigStructure, blogPostsHomepageSectionField, } from "./blog-posts";
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { type DynamicConfigStructureField } from "../shared";
|
|
2
|
-
export declare const instagramPostsSectionId: "instagramPosts";
|
|
3
|
-
export declare const instagramPostsDynamicConfigStructure: DynamicConfigStructureField[];
|
|
4
|
-
export declare const instagramPostsHomepageSectionField: DynamicConfigStructureField;
|
|
5
|
-
//# sourceMappingURL=instagram-posts.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"instagram-posts.d.ts","sourceRoot":"","sources":["../../../../src/dynamic-config-schema/sections/instagram-posts.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,2BAA2B,EACjC,MAAM,WAAW,CAAA;AAElB,eAAO,MAAM,uBAAuB,EAAG,gBAAyB,CAAA;AAEhE,eAAO,MAAM,oCAAoC,EAAE,2BAA2B,EAsB3E,CAAA;AAEH,eAAO,MAAM,kCAAkC,EAAE,2BAKhD,CAAA"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { file, short, } from "../shared";
|
|
2
|
-
export const instagramPostsSectionId = "instagramPosts";
|
|
3
|
-
export const instagramPostsDynamicConfigStructure = [
|
|
4
|
-
short("title", "Section title"),
|
|
5
|
-
short("handle", "Handle"),
|
|
6
|
-
short("profileUrl", "Profile URL"),
|
|
7
|
-
file("profileImage", "Profile image"),
|
|
8
|
-
{
|
|
9
|
-
id: "posts",
|
|
10
|
-
title: "Posts",
|
|
11
|
-
type: "array",
|
|
12
|
-
children: [
|
|
13
|
-
{
|
|
14
|
-
id: "post",
|
|
15
|
-
title: "Post",
|
|
16
|
-
type: "object",
|
|
17
|
-
children: [
|
|
18
|
-
file("image", "Image", true),
|
|
19
|
-
short("url", "Post URL"),
|
|
20
|
-
],
|
|
21
|
-
},
|
|
22
|
-
],
|
|
23
|
-
},
|
|
24
|
-
];
|
|
25
|
-
export const instagramPostsHomepageSectionField = {
|
|
26
|
-
id: instagramPostsSectionId,
|
|
27
|
-
title: "Instagram",
|
|
28
|
-
type: "object",
|
|
29
|
-
children: instagramPostsDynamicConfigStructure,
|
|
30
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { type DynamicConfigStructureField } from "../shared";
|
|
2
|
-
export declare const lovedByMomsSectionId: "lovedByMoms";
|
|
3
|
-
export declare const lovedByMomsHomepageSectionField: DynamicConfigStructureField;
|
|
4
|
-
export declare const lovedByMomsDynamicConfigStructure: DynamicConfigStructureField[];
|
|
5
|
-
//# sourceMappingURL=loved-by-moms.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"loved-by-moms.d.ts","sourceRoot":"","sources":["../../../../src/dynamic-config-schema/sections/loved-by-moms.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,2BAA2B,EACjC,MAAM,WAAW,CAAA;AAElB,eAAO,MAAM,oBAAoB,EAAG,aAAsB,CAAA;AAE1D,eAAO,MAAM,+BAA+B,6BAG3C,CAAA;AAED,eAAO,MAAM,iCAAiC,+BACE,CAAA"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { copyOnlyHomepageSection, } from "../shared";
|
|
2
|
-
export const lovedByMomsSectionId = "lovedByMoms";
|
|
3
|
-
export const lovedByMomsHomepageSectionField = copyOnlyHomepageSection(lovedByMomsSectionId, "Loved by moms");
|
|
4
|
-
export const lovedByMomsDynamicConfigStructure = lovedByMomsHomepageSectionField.children ?? [];
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { type DynamicConfigStructureField } from "../shared";
|
|
2
|
-
export declare const luxeFavouritesSectionId: "luxeFavourites";
|
|
3
|
-
export declare const luxeFavouritesHomepageSectionField: DynamicConfigStructureField;
|
|
4
|
-
export declare const luxeFavouritesDynamicConfigStructure: DynamicConfigStructureField[];
|
|
5
|
-
//# sourceMappingURL=luxe-favourites.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"luxe-favourites.d.ts","sourceRoot":"","sources":["../../../../src/dynamic-config-schema/sections/luxe-favourites.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,2BAA2B,EACjC,MAAM,WAAW,CAAA;AAElB,eAAO,MAAM,uBAAuB,EAAG,gBAAyB,CAAA;AAEhE,eAAO,MAAM,kCAAkC,6BAG9C,CAAA;AAED,eAAO,MAAM,oCAAoC,+BACE,CAAA"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { copyOnlyHomepageSection, } from "../shared";
|
|
2
|
-
export const luxeFavouritesSectionId = "luxeFavourites";
|
|
3
|
-
export const luxeFavouritesHomepageSectionField = copyOnlyHomepageSection(luxeFavouritesSectionId, "Luxe favourites");
|
|
4
|
-
export const luxeFavouritesDynamicConfigStructure = luxeFavouritesHomepageSectionField.children ?? [];
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { type DynamicConfigStructureField } from "../shared";
|
|
2
|
-
export declare const newArrivalsClassicSectionId: "newArrivalsClassic";
|
|
3
|
-
export declare const newArrivalsClassicDynamicConfigStructure: DynamicConfigStructureField[];
|
|
4
|
-
export declare const newArrivalsClassicHomepageSectionField: DynamicConfigStructureField;
|
|
5
|
-
//# sourceMappingURL=new-arrivals-classic.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"new-arrivals-classic.d.ts","sourceRoot":"","sources":["../../../../src/dynamic-config-schema/sections/new-arrivals-classic.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,2BAA2B,EACjC,MAAM,WAAW,CAAA;AAElB,eAAO,MAAM,2BAA2B,EAAG,oBAA6B,CAAA;AAExE,eAAO,MAAM,wCAAwC,EAAE,2BAA2B,EAI/E,CAAA;AAEH,eAAO,MAAM,sCAAsC,EAAE,2BAMlD,CAAA"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { sectionCopyFields, short, } from "../shared";
|
|
2
|
-
export const newArrivalsClassicSectionId = "newArrivalsClassic";
|
|
3
|
-
export const newArrivalsClassicDynamicConfigStructure = [
|
|
4
|
-
...sectionCopyFields(),
|
|
5
|
-
short("variant", "Layout: classic (default) | grid"),
|
|
6
|
-
];
|
|
7
|
-
export const newArrivalsClassicHomepageSectionField = {
|
|
8
|
-
id: newArrivalsClassicSectionId,
|
|
9
|
-
title: "New arrivals (classic)",
|
|
10
|
-
type: "object",
|
|
11
|
-
children: newArrivalsClassicDynamicConfigStructure,
|
|
12
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { type DynamicConfigStructureField } from "../shared";
|
|
2
|
-
export declare const newArrivalsSectionId: "newArrivals";
|
|
3
|
-
export declare const newArrivalsDynamicConfigStructure: DynamicConfigStructureField[];
|
|
4
|
-
export declare const newArrivalsHomepageSectionField: DynamicConfigStructureField;
|
|
5
|
-
//# sourceMappingURL=new-arrivals.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"new-arrivals.d.ts","sourceRoot":"","sources":["../../../../src/dynamic-config-schema/sections/new-arrivals.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,2BAA2B,EACjC,MAAM,WAAW,CAAA;AAElB,eAAO,MAAM,oBAAoB,EAAG,aAAsB,CAAA;AAE1D,eAAO,MAAM,iCAAiC,EAAE,2BAA2B,EAIxE,CAAA;AAEH,eAAO,MAAM,+BAA+B,EAAE,2BAK7C,CAAA"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { sectionCopyFields, short, } from "../shared";
|
|
2
|
-
export const newArrivalsSectionId = "newArrivals";
|
|
3
|
-
export const newArrivalsDynamicConfigStructure = [
|
|
4
|
-
...sectionCopyFields(),
|
|
5
|
-
short("variant", "Layout: grid | classic | legacy | preview"),
|
|
6
|
-
];
|
|
7
|
-
export const newArrivalsHomepageSectionField = {
|
|
8
|
-
id: newArrivalsSectionId,
|
|
9
|
-
title: "New arrivals",
|
|
10
|
-
type: "object",
|
|
11
|
-
children: newArrivalsDynamicConfigStructure,
|
|
12
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { type DynamicConfigStructureField } from "../shared";
|
|
2
|
-
export declare const promoAnnouncementsSectionId: "promoAnnouncements";
|
|
3
|
-
export declare const promoAnnouncementsDynamicConfigStructure: DynamicConfigStructureField[];
|
|
4
|
-
export declare const promoAnnouncementsHomepageSectionField: DynamicConfigStructureField;
|
|
5
|
-
//# sourceMappingURL=promo-announcements.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"promo-announcements.d.ts","sourceRoot":"","sources":["../../../../src/dynamic-config-schema/sections/promo-announcements.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,KAAK,2BAA2B,EAAE,MAAM,WAAW,CAAA;AAEnE,eAAO,MAAM,2BAA2B,EAAG,oBAA6B,CAAA;AAExE,eAAO,MAAM,wCAAwC,EAAE,2BAA2B,EAQ/E,CAAA;AAEH,eAAO,MAAM,sCAAsC,EAAE,2BAMlD,CAAA"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { short } from "../shared";
|
|
2
|
-
export const promoAnnouncementsSectionId = "promoAnnouncements";
|
|
3
|
-
export const promoAnnouncementsDynamicConfigStructure = [
|
|
4
|
-
{
|
|
5
|
-
id: "messages",
|
|
6
|
-
title: "Ticker messages",
|
|
7
|
-
type: "array",
|
|
8
|
-
children: [short("message", "Message", true)],
|
|
9
|
-
},
|
|
10
|
-
];
|
|
11
|
-
export const promoAnnouncementsHomepageSectionField = {
|
|
12
|
-
id: promoAnnouncementsSectionId,
|
|
13
|
-
title: "Promo ticker",
|
|
14
|
-
type: "object",
|
|
15
|
-
children: promoAnnouncementsDynamicConfigStructure,
|
|
16
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { type DynamicConfigStructureField } from "../shared";
|
|
2
|
-
export declare const promoCountdownSectionId: "promoCountdown";
|
|
3
|
-
export declare const promoCountdownDynamicConfigStructure: DynamicConfigStructureField[];
|
|
4
|
-
export declare const promoCountdownHomepageSectionField: DynamicConfigStructureField;
|
|
5
|
-
//# sourceMappingURL=promo-countdown.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"promo-countdown.d.ts","sourceRoot":"","sources":["../../../../src/dynamic-config-schema/sections/promo-countdown.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,2BAA2B,EACjC,MAAM,WAAW,CAAA;AAElB,eAAO,MAAM,uBAAuB,EAAG,gBAAyB,CAAA;AAEhE,eAAO,MAAM,oCAAoC,EAAE,2BAA2B,EAQ3E,CAAA;AAEH,eAAO,MAAM,kCAAkC,EAAE,2BAKhD,CAAA"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { bool, long, short, } from "../shared";
|
|
2
|
-
export const promoCountdownSectionId = "promoCountdown";
|
|
3
|
-
export const promoCountdownDynamicConfigStructure = [
|
|
4
|
-
short("code", "Promo code"),
|
|
5
|
-
long("text", "Message"),
|
|
6
|
-
short("endAt", "End date (ISO 8601)"),
|
|
7
|
-
bool("active", "Show bar"),
|
|
8
|
-
short("ctaLabel", "CTA label"),
|
|
9
|
-
short("ctaHref", "CTA link"),
|
|
10
|
-
];
|
|
11
|
-
export const promoCountdownHomepageSectionField = {
|
|
12
|
-
id: promoCountdownSectionId,
|
|
13
|
-
title: "Promo countdown bar",
|
|
14
|
-
type: "object",
|
|
15
|
-
children: promoCountdownDynamicConfigStructure,
|
|
16
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { type DynamicConfigStructureField } from "../shared";
|
|
2
|
-
export declare const shopByAgeSectionId: "shopByAge";
|
|
3
|
-
export declare const shopByAgeHomepageSectionField: DynamicConfigStructureField;
|
|
4
|
-
export declare const shopByAgeDynamicConfigStructure: DynamicConfigStructureField[];
|
|
5
|
-
//# sourceMappingURL=shop-by-age.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"shop-by-age.d.ts","sourceRoot":"","sources":["../../../../src/dynamic-config-schema/sections/shop-by-age.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,2BAA2B,EACjC,MAAM,WAAW,CAAA;AAElB,eAAO,MAAM,kBAAkB,EAAG,WAAoB,CAAA;AAEtD,eAAO,MAAM,6BAA6B,6BAGzC,CAAA;AAED,eAAO,MAAM,+BAA+B,+BACE,CAAA"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { copyOnlyHomepageSection, } from "../shared";
|
|
2
|
-
export const shopByAgeSectionId = "shopByAge";
|
|
3
|
-
export const shopByAgeHomepageSectionField = copyOnlyHomepageSection(shopByAgeSectionId, "Shop by age");
|
|
4
|
-
export const shopByAgeDynamicConfigStructure = shopByAgeHomepageSectionField.children ?? [];
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { type DynamicConfigStructureField } from "../shared";
|
|
2
|
-
export declare const shopByCategorySectionId: "shopByCategory";
|
|
3
|
-
export declare const shopByCategoryHomepageSectionField: DynamicConfigStructureField;
|
|
4
|
-
export declare const shopByCategoryDynamicConfigStructure: DynamicConfigStructureField[];
|
|
5
|
-
//# sourceMappingURL=shop-by-category.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"shop-by-category.d.ts","sourceRoot":"","sources":["../../../../src/dynamic-config-schema/sections/shop-by-category.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,2BAA2B,EACjC,MAAM,WAAW,CAAA;AAElB,eAAO,MAAM,uBAAuB,EAAG,gBAAyB,CAAA;AAEhE,eAAO,MAAM,kCAAkC,6BAG9C,CAAA;AAED,eAAO,MAAM,oCAAoC,+BACE,CAAA"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { copyOnlyHomepageSection, } from "../shared";
|
|
2
|
-
export const shopByCategorySectionId = "shopByCategory";
|
|
3
|
-
export const shopByCategoryHomepageSectionField = copyOnlyHomepageSection(shopByCategorySectionId, "Shop by category");
|
|
4
|
-
export const shopByCategoryDynamicConfigStructure = shopByCategoryHomepageSectionField.children ?? [];
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { type DynamicConfigStructureField } from "../shared";
|
|
2
|
-
export declare const testimonialsSectionId: "testimonials";
|
|
3
|
-
export declare const testimonialsDynamicConfigStructure: DynamicConfigStructureField[];
|
|
4
|
-
export declare const testimonialsHomepageSectionField: DynamicConfigStructureField;
|
|
5
|
-
//# sourceMappingURL=testimonials.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"testimonials.d.ts","sourceRoot":"","sources":["../../../../src/dynamic-config-schema/sections/testimonials.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,2BAA2B,EACjC,MAAM,WAAW,CAAA;AAElB,eAAO,MAAM,qBAAqB,EAAG,cAAuB,CAAA;AAE5D,eAAO,MAAM,kCAAkC,EAAE,2BAA2B,EACa,CAAA;AAEzF,eAAO,MAAM,gCAAgC,EAAE,2BAK9C,CAAA"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { short, testimonialItemsArray, } from "../shared";
|
|
2
|
-
export const testimonialsSectionId = "testimonials";
|
|
3
|
-
export const testimonialsDynamicConfigStructure = [short("title", "Section title"), short("subtitle", "Subtitle"), testimonialItemsArray];
|
|
4
|
-
export const testimonialsHomepageSectionField = {
|
|
5
|
-
id: testimonialsSectionId,
|
|
6
|
-
title: "Testimonials",
|
|
7
|
-
type: "object",
|
|
8
|
-
children: testimonialsDynamicConfigStructure,
|
|
9
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { type DynamicConfigStructureField } from "../shared";
|
|
2
|
-
export declare const themeDressesSectionId: "themeDresses";
|
|
3
|
-
export declare const themeDressesHomepageSectionField: DynamicConfigStructureField;
|
|
4
|
-
export declare const themeDressesDynamicConfigStructure: DynamicConfigStructureField[];
|
|
5
|
-
//# sourceMappingURL=theme-dresses.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"theme-dresses.d.ts","sourceRoot":"","sources":["../../../../src/dynamic-config-schema/sections/theme-dresses.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,2BAA2B,EACjC,MAAM,WAAW,CAAA;AAElB,eAAO,MAAM,qBAAqB,EAAG,cAAuB,CAAA;AAE5D,eAAO,MAAM,gCAAgC,6BAG5C,CAAA;AAED,eAAO,MAAM,kCAAkC,+BACE,CAAA"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { copyOnlyHomepageSection, } from "../shared";
|
|
2
|
-
export const themeDressesSectionId = "themeDresses";
|
|
3
|
-
export const themeDressesHomepageSectionField = copyOnlyHomepageSection(themeDressesSectionId, "Theme dresses");
|
|
4
|
-
export const themeDressesDynamicConfigStructure = themeDressesHomepageSectionField.children ?? [];
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { type DynamicConfigStructureField } from "../shared";
|
|
2
|
-
export declare const videoStoriesSectionId: "videoStories";
|
|
3
|
-
export declare const videoStoriesDynamicConfigStructure: DynamicConfigStructureField[];
|
|
4
|
-
export declare const videoStoriesHomepageSectionField: DynamicConfigStructureField;
|
|
5
|
-
//# sourceMappingURL=video-stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"video-stories.d.ts","sourceRoot":"","sources":["../../../../src/dynamic-config-schema/sections/video-stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,2BAA2B,EACjC,MAAM,WAAW,CAAA;AAElB,eAAO,MAAM,qBAAqB,EAAG,cAAuB,CAAA;AAE5D,eAAO,MAAM,kCAAkC,EAAE,2BAA2B,EAgBzE,CAAA;AAEH,eAAO,MAAM,gCAAgC,EAAE,2BAK9C,CAAA"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { sectionCopyFields, short, } from "../shared";
|
|
2
|
-
export const videoStoriesSectionId = "videoStories";
|
|
3
|
-
export const videoStoriesDynamicConfigStructure = [
|
|
4
|
-
...sectionCopyFields(),
|
|
5
|
-
{
|
|
6
|
-
id: "videoUrls",
|
|
7
|
-
title: "Video URLs",
|
|
8
|
-
type: "array",
|
|
9
|
-
children: [
|
|
10
|
-
{
|
|
11
|
-
id: "videoUrl",
|
|
12
|
-
title: "Video",
|
|
13
|
-
type: "object",
|
|
14
|
-
children: [short("url", "Video URL", true)],
|
|
15
|
-
},
|
|
16
|
-
],
|
|
17
|
-
},
|
|
18
|
-
];
|
|
19
|
-
export const videoStoriesHomepageSectionField = {
|
|
20
|
-
id: videoStoriesSectionId,
|
|
21
|
-
title: "Video stories",
|
|
22
|
-
type: "object",
|
|
23
|
-
children: videoStoriesDynamicConfigStructure,
|
|
24
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { type DynamicConfigStructureField } from "../shared";
|
|
2
|
-
export declare const whyChooseUsSectionId: "whyChooseUs";
|
|
3
|
-
export declare const whyChooseUsDynamicConfigStructure: DynamicConfigStructureField[];
|
|
4
|
-
export declare const whyChooseUsHomepageSectionField: DynamicConfigStructureField;
|
|
5
|
-
//# sourceMappingURL=why-choose-us.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"why-choose-us.d.ts","sourceRoot":"","sources":["../../../../src/dynamic-config-schema/sections/why-choose-us.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,2BAA2B,EACjC,MAAM,WAAW,CAAA;AAElB,eAAO,MAAM,oBAAoB,EAAG,aAAsB,CAAA;AAE1D,eAAO,MAAM,iCAAiC,EAAE,2BAA2B,EAC9B,CAAA;AAE7C,eAAO,MAAM,+BAA+B,EAAE,2BAK7C,CAAA"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { featureItemsArray, sectionCopyFields, } from "../shared";
|
|
2
|
-
export const whyChooseUsSectionId = "whyChooseUs";
|
|
3
|
-
export const whyChooseUsDynamicConfigStructure = [...sectionCopyFields(), featureItemsArray];
|
|
4
|
-
export const whyChooseUsHomepageSectionField = {
|
|
5
|
-
id: whyChooseUsSectionId,
|
|
6
|
-
title: "Why choose us",
|
|
7
|
-
type: "object",
|
|
8
|
-
children: whyChooseUsDynamicConfigStructure,
|
|
9
|
-
};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Medusa dynamic-config admin field shapes.
|
|
3
|
-
* Field ids match `homepage-config.sections.*` and `normalizeHomepageConfig`.
|
|
4
|
-
*
|
|
5
|
-
* Backend usage:
|
|
6
|
-
* ```ts
|
|
7
|
-
* import { homepageSectionsStructure } from "medusa-storefront-data/dynamic-config-schema"
|
|
8
|
-
* import { promoAnnouncementsHomepageSectionField } from "medusa-storefront-data/dynamic-config-schema/sections/promoAnnouncements"
|
|
9
|
-
* ```
|
|
10
|
-
*/
|
|
11
|
-
export type DynamicConfigFieldType = "short-text" | "long-text" | "file" | "boolean" | "number" | "object" | "array";
|
|
12
|
-
/** Compatible with `medusa-plugin-dynamic-config` structure entries. */
|
|
13
|
-
export type DynamicConfigStructureField = {
|
|
14
|
-
id: string;
|
|
15
|
-
title: string;
|
|
16
|
-
type: DynamicConfigFieldType;
|
|
17
|
-
required?: boolean;
|
|
18
|
-
children?: DynamicConfigStructureField[];
|
|
19
|
-
};
|
|
20
|
-
type Field = DynamicConfigStructureField;
|
|
21
|
-
export declare const short: (id: string, title: string, required?: boolean) => Field;
|
|
22
|
-
export declare const long: (id: string, title: string, required?: boolean) => Field;
|
|
23
|
-
export declare const file: (id: string, title: string, required?: boolean) => Field;
|
|
24
|
-
export declare const bool: (id: string, title: string, required?: boolean) => Field;
|
|
25
|
-
export declare const number: (id: string, title: string, required?: boolean) => Field;
|
|
26
|
-
/** Shared copy fields for most homepage sections. */
|
|
27
|
-
export declare const sectionCopyFields: () => Field[];
|
|
28
|
-
/** Section object with copy fields only. */
|
|
29
|
-
export declare function copyOnlyHomepageSection(id: string, title: string): Field;
|
|
30
|
-
export declare const featureItemsArray: Field;
|
|
31
|
-
export declare const testimonialItemsArray: Field;
|
|
32
|
-
export declare const bannerSlide: Field;
|
|
33
|
-
export declare const shoppableLookObject: Field;
|
|
34
|
-
export {};
|
|
35
|
-
//# sourceMappingURL=shared.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../src/dynamic-config-schema/shared.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,MAAM,MAAM,sBAAsB,GAC9B,YAAY,GACZ,WAAW,GACX,MAAM,GACN,SAAS,GACT,QAAQ,GACR,QAAQ,GACR,OAAO,CAAA;AAEX,wEAAwE;AACxE,MAAM,MAAM,2BAA2B,GAAG;IACxC,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,sBAAsB,CAAA;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,2BAA2B,EAAE,CAAA;CACzC,CAAA;AAED,KAAK,KAAK,GAAG,2BAA2B,CAAA;AAWxC,eAAO,MAAM,KAAK,GAAI,IAAI,MAAM,EAAE,OAAO,MAAM,EAAE,kBAAgB,KAAG,KAC1B,CAAA;AAE1C,eAAO,MAAM,IAAI,GAAI,IAAI,MAAM,EAAE,OAAO,MAAM,EAAE,kBAAgB,KAAG,KAC1B,CAAA;AAEzC,eAAO,MAAM,IAAI,GAAI,IAAI,MAAM,EAAE,OAAO,MAAM,EAAE,kBAAgB,KAAG,KAC/B,CAAA;AAEpC,eAAO,MAAM,IAAI,GAAI,IAAI,MAAM,EAAE,OAAO,MAAM,EAAE,kBAAgB,KAAG,KAC5B,CAAA;AAEvC,eAAO,MAAM,MAAM,GAAI,IAAI,MAAM,EAAE,OAAO,MAAM,EAAE,kBAAgB,KAAG,KAC/B,CAAA;AAEtC,qDAAqD;AACrD,eAAO,MAAM,iBAAiB,QAAO,KAAK,EASzC,CAAA;AAED,4CAA4C;AAC5C,wBAAgB,uBAAuB,CACrC,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,MAAM,GACZ,KAAK,CAOP;AAED,eAAO,MAAM,iBAAiB,EAAE,KAe/B,CAAA;AAED,eAAO,MAAM,qBAAqB,EAAE,KAiBnC,CAAA;AAED,eAAO,MAAM,WAAW,EAAE,KAYzB,CAAA;AAED,eAAO,MAAM,mBAAmB,EAAE,KAajC,CAAA"}
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Medusa dynamic-config admin field shapes.
|
|
3
|
-
* Field ids match `homepage-config.sections.*` and `normalizeHomepageConfig`.
|
|
4
|
-
*
|
|
5
|
-
* Backend usage:
|
|
6
|
-
* ```ts
|
|
7
|
-
* import { homepageSectionsStructure } from "medusa-storefront-data/dynamic-config-schema"
|
|
8
|
-
* import { promoAnnouncementsHomepageSectionField } from "medusa-storefront-data/dynamic-config-schema/sections/promoAnnouncements"
|
|
9
|
-
* ```
|
|
10
|
-
*/
|
|
11
|
-
function field(id, title, type, required = false) {
|
|
12
|
-
return { id, title, type, required };
|
|
13
|
-
}
|
|
14
|
-
export const short = (id, title, required = false) => field(id, title, "short-text", required);
|
|
15
|
-
export const long = (id, title, required = false) => field(id, title, "long-text", required);
|
|
16
|
-
export const file = (id, title, required = false) => field(id, title, "file", required);
|
|
17
|
-
export const bool = (id, title, required = false) => field(id, title, "boolean", required);
|
|
18
|
-
export const number = (id, title, required = false) => field(id, title, "number", required);
|
|
19
|
-
/** Shared copy fields for most homepage sections. */
|
|
20
|
-
export const sectionCopyFields = () => [
|
|
21
|
-
short("title", "Section title"),
|
|
22
|
-
short("subtitle", "Subtitle"),
|
|
23
|
-
short("name", "Name (alias for title)"),
|
|
24
|
-
long("description", "Description"),
|
|
25
|
-
short("text", "Text"),
|
|
26
|
-
short("eyebrow", "Eyebrow"),
|
|
27
|
-
short("variant", "Layout variant (e.g. grid | classic)"),
|
|
28
|
-
short("layout", "Layout (alias for variant)"),
|
|
29
|
-
];
|
|
30
|
-
/** Section object with copy fields only. */
|
|
31
|
-
export function copyOnlyHomepageSection(id, title) {
|
|
32
|
-
return {
|
|
33
|
-
id,
|
|
34
|
-
title,
|
|
35
|
-
type: "object",
|
|
36
|
-
children: sectionCopyFields(),
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
export const featureItemsArray = {
|
|
40
|
-
id: "features",
|
|
41
|
-
title: "Features",
|
|
42
|
-
type: "array",
|
|
43
|
-
children: [
|
|
44
|
-
{
|
|
45
|
-
id: "feature",
|
|
46
|
-
title: "Feature",
|
|
47
|
-
type: "object",
|
|
48
|
-
children: [
|
|
49
|
-
short("name", "Name", true),
|
|
50
|
-
file("icon", "Icon"),
|
|
51
|
-
],
|
|
52
|
-
},
|
|
53
|
-
],
|
|
54
|
-
};
|
|
55
|
-
export const testimonialItemsArray = {
|
|
56
|
-
id: "items",
|
|
57
|
-
title: "Reviews",
|
|
58
|
-
type: "array",
|
|
59
|
-
children: [
|
|
60
|
-
{
|
|
61
|
-
id: "testimonial",
|
|
62
|
-
title: "Review",
|
|
63
|
-
type: "object",
|
|
64
|
-
children: [
|
|
65
|
-
long("text", "Review text", true),
|
|
66
|
-
short("name", "Customer name", true),
|
|
67
|
-
file("avatar", "Avatar"),
|
|
68
|
-
short("rating", "Rating (1–5)"),
|
|
69
|
-
],
|
|
70
|
-
},
|
|
71
|
-
],
|
|
72
|
-
};
|
|
73
|
-
export const bannerSlide = {
|
|
74
|
-
id: "slide",
|
|
75
|
-
title: "Banner slide",
|
|
76
|
-
type: "object",
|
|
77
|
-
children: [
|
|
78
|
-
file("image", "Image", true),
|
|
79
|
-
short("title", "Title"),
|
|
80
|
-
short("subtitle", "Subtitle"),
|
|
81
|
-
long("description", "Description"),
|
|
82
|
-
short("buttonText", "Button label"),
|
|
83
|
-
short("buttonLink", "Button link"),
|
|
84
|
-
],
|
|
85
|
-
};
|
|
86
|
-
export const shoppableLookObject = {
|
|
87
|
-
id: "look",
|
|
88
|
-
title: "Look",
|
|
89
|
-
type: "object",
|
|
90
|
-
children: [
|
|
91
|
-
file("image", "Look image", true),
|
|
92
|
-
{
|
|
93
|
-
id: "productHandles",
|
|
94
|
-
title: "Product handles",
|
|
95
|
-
type: "array",
|
|
96
|
-
children: [short("handle", "Handle")],
|
|
97
|
-
},
|
|
98
|
-
],
|
|
99
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { type DynamicConfigStructureField } from "./shared";
|
|
2
|
-
type Field = DynamicConfigStructureField;
|
|
3
|
-
export declare const siteBrandingStructure: Field[];
|
|
4
|
-
export declare const contactStructure: Field[];
|
|
5
|
-
export declare const socialLinksStructure: Field[];
|
|
6
|
-
export declare const faqsStructure: Field[];
|
|
7
|
-
export declare const heroBannersStructure: Field[];
|
|
8
|
-
/** Layout promo bar (`homepage-config.promo-bar`). */
|
|
9
|
-
export declare const promoBarStructure: Field[];
|
|
10
|
-
export {};
|
|
11
|
-
//# sourceMappingURL=site-configs.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"site-configs.d.ts","sourceRoot":"","sources":["../../../src/dynamic-config-schema/site-configs.ts"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,2BAA2B,EACjC,MAAM,UAAU,CAAA;AAEjB,KAAK,KAAK,GAAG,2BAA2B,CAAA;AAExC,eAAO,MAAM,qBAAqB,EAAE,KAAK,EAGxC,CAAA;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,EAKnC,CAAA;AAED,eAAO,MAAM,oBAAoB,EAAE,KAAK,EAkBvC,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,EAkBhC,CAAA;AAED,eAAO,MAAM,oBAAoB,EAAE,KAAK,EAavC,CAAA;AAED,sDAAsD;AACtD,eAAO,MAAM,iBAAiB,EAAE,KAAK,EAKpC,CAAA"}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { bannerSlide, bool, file, long, short, } from "./shared";
|
|
2
|
-
export const siteBrandingStructure = [
|
|
3
|
-
file("logo", "Logo"),
|
|
4
|
-
long("description", "Site description (footer / SEO)"),
|
|
5
|
-
];
|
|
6
|
-
export const contactStructure = [
|
|
7
|
-
short("phone", "Phone"),
|
|
8
|
-
short("email", "Email"),
|
|
9
|
-
short("whatsapp", "WhatsApp"),
|
|
10
|
-
long("address", "Address"),
|
|
11
|
-
];
|
|
12
|
-
export const socialLinksStructure = [
|
|
13
|
-
{
|
|
14
|
-
id: "links",
|
|
15
|
-
title: "Social links",
|
|
16
|
-
type: "array",
|
|
17
|
-
children: [
|
|
18
|
-
{
|
|
19
|
-
id: "link",
|
|
20
|
-
title: "Social link",
|
|
21
|
-
type: "object",
|
|
22
|
-
children: [
|
|
23
|
-
short("name", "Platform name", true),
|
|
24
|
-
short("url", "URL", true),
|
|
25
|
-
file("icon", "Icon"),
|
|
26
|
-
],
|
|
27
|
-
},
|
|
28
|
-
],
|
|
29
|
-
},
|
|
30
|
-
];
|
|
31
|
-
export const faqsStructure = [
|
|
32
|
-
{
|
|
33
|
-
id: "items",
|
|
34
|
-
title: "FAQs",
|
|
35
|
-
type: "array",
|
|
36
|
-
children: [
|
|
37
|
-
{
|
|
38
|
-
id: "faq",
|
|
39
|
-
title: "FAQ",
|
|
40
|
-
type: "object",
|
|
41
|
-
children: [
|
|
42
|
-
short("category", "Category"),
|
|
43
|
-
short("question", "Question", true),
|
|
44
|
-
long("answer", "Answer", true),
|
|
45
|
-
],
|
|
46
|
-
},
|
|
47
|
-
],
|
|
48
|
-
},
|
|
49
|
-
];
|
|
50
|
-
export const heroBannersStructure = [
|
|
51
|
-
{
|
|
52
|
-
id: "desktop",
|
|
53
|
-
title: "Desktop / web carousel",
|
|
54
|
-
type: "array",
|
|
55
|
-
children: [bannerSlide],
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
id: "mobile",
|
|
59
|
-
title: "Mobile carousel (optional)",
|
|
60
|
-
type: "array",
|
|
61
|
-
children: [bannerSlide],
|
|
62
|
-
},
|
|
63
|
-
];
|
|
64
|
-
/** Layout promo bar (`homepage-config.promo-bar`). */
|
|
65
|
-
export const promoBarStructure = [
|
|
66
|
-
short("promo-text", "Promo message"),
|
|
67
|
-
short("promo-code", "Promo code"),
|
|
68
|
-
short("promo-value", "Promo value"),
|
|
69
|
-
bool("promo-active", "Show promo bar"),
|
|
70
|
-
];
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { DynamicConfigResponse, HomepageConfig } from "./homepage-config.types";
|
|
2
|
-
type Loose = Record<string, unknown>;
|
|
3
|
-
/**
|
|
4
|
-
* Medusa split keys (`site-branding`, `homepage-sections`, …) → simplified shape
|
|
5
|
-
* consumed by `normalizeHomepageConfig`.
|
|
6
|
-
*/
|
|
7
|
-
export declare function mergeStorefrontDynamicConfig(dynamicConfigResponse: Record<string, unknown>): Loose;
|
|
8
|
-
/** Full `GET /store/dynamic-config` body → legacy `homepage-config`. */
|
|
9
|
-
export declare function homepageConfigFromApiResponse(response: Record<string, unknown> | DynamicConfigResponse | null | undefined): HomepageConfig;
|
|
10
|
-
export {};
|
|
11
|
-
//# sourceMappingURL=dynamic-config-api.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dynamic-config-api.d.ts","sourceRoot":"","sources":["../../../src/server/dynamic-config-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AAGpF,KAAK,KAAK,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;AAUpC;;;GAGG;AACH,wBAAgB,4BAA4B,CAC1C,qBAAqB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC7C,KAAK,CA6BP;AAED,wEAAwE;AACxE,wBAAgB,6BAA6B,CAC3C,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,qBAAqB,GAAG,IAAI,GAAG,SAAS,GAC3E,cAAc,CAShB"}
|