medusa-storefront-data 2.3.0 → 2.4.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/HOMEPAGE_CONFIG.md +99 -0
- package/dist/segment-data/default-page-input.json +191 -0
- package/dist/src/config.d.ts.map +1 -0
- package/dist/src/cookies.d.ts.map +1 -0
- package/dist/src/edge.d.ts.map +1 -0
- package/dist/src/middleware.d.ts.map +1 -0
- package/dist/src/server/cart.d.ts.map +1 -0
- package/dist/src/server/categories.d.ts.map +1 -0
- package/dist/src/server/collections.d.ts.map +1 -0
- package/dist/src/server/config-merge.d.ts +3 -0
- package/dist/src/server/config-merge.d.ts.map +1 -0
- package/dist/src/server/config-merge.js +31 -0
- package/dist/src/server/contact.d.ts.map +1 -0
- package/dist/src/server/customer-registration.d.ts.map +1 -0
- package/dist/src/server/customer.d.ts.map +1 -0
- package/dist/src/server/dynamic-config.d.ts +240 -0
- package/dist/src/server/dynamic-config.d.ts.map +1 -0
- package/dist/src/server/dynamic-config.js +703 -0
- package/dist/src/server/fulfillment.d.ts.map +1 -0
- package/dist/src/server/guest.d.ts.map +1 -0
- package/dist/src/server/home-sections/about-brand.d.ts +9 -0
- package/dist/src/server/home-sections/about-brand.d.ts.map +1 -0
- package/dist/src/server/home-sections/about-brand.js +9 -0
- package/dist/src/server/home-sections/baptism-picks.d.ts +10 -0
- package/dist/src/server/home-sections/baptism-picks.d.ts.map +1 -0
- package/dist/src/server/home-sections/baptism-picks.js +27 -0
- package/dist/src/server/home-sections/baptism.d.ts +13 -0
- package/dist/src/server/home-sections/baptism.d.ts.map +1 -0
- package/dist/src/server/home-sections/baptism.js +43 -0
- package/dist/src/server/home-sections/blog-posts.d.ts +9 -0
- package/dist/src/server/home-sections/blog-posts.d.ts.map +1 -0
- package/dist/src/server/home-sections/blog-posts.js +9 -0
- package/dist/src/server/home-sections/brand-marquee.d.ts +8 -0
- package/dist/src/server/home-sections/brand-marquee.d.ts.map +1 -0
- package/dist/src/server/home-sections/brand-marquee.js +7 -0
- package/dist/src/server/home-sections/brand-pillars.d.ts +9 -0
- package/dist/src/server/home-sections/brand-pillars.d.ts.map +1 -0
- package/dist/src/server/home-sections/brand-pillars.js +9 -0
- package/dist/src/server/home-sections/category-pills.d.ts +9 -0
- package/dist/src/server/home-sections/category-pills.d.ts.map +1 -0
- package/dist/src/server/home-sections/category-pills.js +19 -0
- package/dist/src/server/home-sections/celebrity-trust.d.ts +12 -0
- package/dist/src/server/home-sections/celebrity-trust.d.ts.map +1 -0
- package/dist/src/server/home-sections/celebrity-trust.js +27 -0
- package/dist/src/server/home-sections/features.d.ts +9 -0
- package/dist/src/server/home-sections/features.d.ts.map +1 -0
- package/dist/src/server/home-sections/features.js +9 -0
- package/dist/src/server/home-sections/hero.d.ts +9 -0
- package/dist/src/server/home-sections/hero.d.ts.map +1 -0
- package/dist/src/server/home-sections/hero.js +9 -0
- package/dist/src/server/home-sections/instagram-posts.d.ts +9 -0
- package/dist/src/server/home-sections/instagram-posts.d.ts.map +1 -0
- package/dist/src/server/home-sections/instagram-posts.js +9 -0
- package/dist/src/server/home-sections/loved-by-moms.d.ts +12 -0
- package/dist/src/server/home-sections/loved-by-moms.d.ts.map +1 -0
- package/dist/src/server/home-sections/loved-by-moms.js +20 -0
- package/dist/src/server/home-sections/luxe-favourites.d.ts +11 -0
- package/dist/src/server/home-sections/luxe-favourites.d.ts.map +1 -0
- package/dist/src/server/home-sections/luxe-favourites.js +19 -0
- package/dist/src/server/home-sections/new-arrivals-classic.d.ts +8 -0
- package/dist/src/server/home-sections/new-arrivals-classic.d.ts.map +1 -0
- package/dist/src/server/home-sections/new-arrivals-classic.js +10 -0
- package/dist/src/server/home-sections/new-arrivals.d.ts +12 -0
- package/dist/src/server/home-sections/new-arrivals.d.ts.map +1 -0
- package/dist/src/server/home-sections/new-arrivals.js +28 -0
- package/dist/src/server/home-sections/promo-announcements.d.ts +7 -0
- package/dist/src/server/home-sections/promo-announcements.d.ts.map +1 -0
- package/dist/src/server/home-sections/promo-announcements.js +7 -0
- package/dist/src/server/home-sections/promo-countdown.d.ts +6 -0
- package/dist/src/server/home-sections/promo-countdown.d.ts.map +1 -0
- package/dist/src/server/home-sections/promo-countdown.js +5 -0
- package/dist/src/server/home-sections/shared.d.ts +10 -0
- package/dist/src/server/home-sections/shared.d.ts.map +1 -0
- package/dist/src/server/home-sections/shared.js +29 -0
- package/dist/src/server/home-sections/shop-by-age.d.ts +9 -0
- package/dist/src/server/home-sections/shop-by-age.d.ts.map +1 -0
- package/dist/src/server/home-sections/shop-by-age.js +17 -0
- package/dist/src/server/home-sections/shop-by-category.d.ts +10 -0
- package/dist/src/server/home-sections/shop-by-category.d.ts.map +1 -0
- package/dist/src/server/home-sections/shop-by-category.js +17 -0
- package/dist/src/server/home-sections/testimonials.d.ts +9 -0
- package/dist/src/server/home-sections/testimonials.d.ts.map +1 -0
- package/dist/src/server/home-sections/testimonials.js +9 -0
- package/dist/src/server/home-sections/theme-dresses.d.ts +12 -0
- package/dist/src/server/home-sections/theme-dresses.d.ts.map +1 -0
- package/dist/src/server/home-sections/theme-dresses.js +27 -0
- package/dist/src/server/home-sections/video-stories.d.ts +9 -0
- package/dist/src/server/home-sections/video-stories.d.ts.map +1 -0
- package/dist/src/server/home-sections/video-stories.js +9 -0
- package/dist/src/server/home-sections/why-choose-us.d.ts +9 -0
- package/dist/src/server/home-sections/why-choose-us.d.ts.map +1 -0
- package/dist/src/server/home-sections/why-choose-us.js +9 -0
- package/dist/src/server/home.d.ts +62 -0
- package/dist/src/server/home.d.ts.map +1 -0
- package/dist/{server → src/server}/home.js +29 -31
- package/dist/src/server/homepage-config.types.d.ts +274 -0
- package/dist/src/server/homepage-config.types.d.ts.map +1 -0
- package/dist/src/server/homepage-config.types.js +33 -0
- package/dist/{server → src/server}/homepage-section-defaults.d.ts +35 -2
- package/dist/src/server/homepage-section-defaults.d.ts.map +1 -0
- package/dist/{server → src/server}/homepage-section-defaults.js +41 -2
- package/dist/{server → src/server}/index.d.ts +2 -0
- package/dist/src/server/index.d.ts.map +1 -0
- package/dist/{server → src/server}/index.js +2 -0
- package/dist/src/server/locale-actions.d.ts.map +1 -0
- package/dist/src/server/locales.d.ts.map +1 -0
- package/dist/src/server/notifications.d.ts.map +1 -0
- package/dist/src/server/onboarding.d.ts.map +1 -0
- package/dist/src/server/orders.d.ts.map +1 -0
- package/dist/src/server/page-input.d.ts +19 -0
- package/dist/src/server/page-input.d.ts.map +1 -0
- package/dist/src/server/page-input.js +40 -0
- package/dist/src/server/payment-details.d.ts.map +1 -0
- package/dist/src/server/payment.d.ts.map +1 -0
- package/dist/src/server/pincode.d.ts.map +1 -0
- package/dist/src/server/products.d.ts.map +1 -0
- package/dist/src/server/regions.d.ts.map +1 -0
- package/dist/src/server/resolve-home-segment-data.d.ts +25 -0
- package/dist/src/server/resolve-home-segment-data.d.ts.map +1 -0
- package/dist/src/server/resolve-home-segment-data.js +20 -0
- package/dist/src/server/returns.d.ts.map +1 -0
- package/dist/src/server/shoppable-looks.d.ts +17 -0
- package/dist/src/server/shoppable-looks.d.ts.map +1 -0
- package/dist/src/server/shoppable-looks.js +136 -0
- package/dist/src/server/swaps.d.ts.map +1 -0
- package/dist/src/server/variants.d.ts.map +1 -0
- package/dist/src/server/wishlist.d.ts.map +1 -0
- package/dist/src/util/get-locale-header.d.ts.map +1 -0
- package/dist/src/util/medusa-error.d.ts.map +1 -0
- package/dist/src/util/revalidate-cart.d.ts.map +1 -0
- package/dist/src/util/sort-products.d.ts.map +1 -0
- package/dist/src/util/store-client.d.ts.map +1 -0
- package/homepage-config.example.json +209 -0
- package/homepage-sections.example.json +55 -0
- package/package.json +121 -2
- package/segment-data/default-page-input.json +191 -0
- package/src/server/config-merge.ts +31 -0
- package/src/server/dynamic-config.ts +620 -508
- package/src/server/home-sections/about-brand.ts +24 -0
- package/src/server/home-sections/baptism-picks.ts +46 -0
- package/src/server/home-sections/baptism.ts +64 -0
- package/src/server/home-sections/blog-posts.ts +23 -0
- package/src/server/home-sections/brand-marquee.ts +17 -0
- package/src/server/home-sections/brand-pillars.ts +23 -0
- package/src/server/home-sections/category-pills.ts +32 -0
- package/src/server/home-sections/celebrity-trust.ts +42 -0
- package/src/server/home-sections/features.ts +23 -0
- package/src/server/home-sections/hero.ts +24 -0
- package/src/server/home-sections/instagram-posts.ts +23 -0
- package/src/server/home-sections/loved-by-moms.ts +34 -0
- package/src/server/home-sections/luxe-favourites.ts +30 -0
- package/src/server/home-sections/new-arrivals-classic.ts +21 -0
- package/src/server/home-sections/new-arrivals.ts +47 -0
- package/src/server/home-sections/promo-announcements.ts +17 -0
- package/src/server/home-sections/promo-countdown.ts +15 -0
- package/src/server/home-sections/shared.ts +44 -0
- package/src/server/home-sections/shop-by-age.ts +26 -0
- package/src/server/home-sections/shop-by-category.ts +28 -0
- package/src/server/home-sections/testimonials.ts +23 -0
- package/src/server/home-sections/theme-dresses.ts +49 -0
- package/src/server/home-sections/video-stories.ts +23 -0
- package/src/server/home-sections/why-choose-us.ts +23 -0
- package/src/server/home.ts +68 -54
- package/src/server/homepage-config.types.ts +335 -0
- package/src/server/homepage-section-defaults.ts +41 -2
- package/src/server/index.ts +2 -0
- package/src/server/page-input.ts +64 -0
- package/src/server/resolve-home-segment-data.ts +63 -0
- package/src/server/shoppable-looks.ts +178 -0
- package/dist/config.d.ts.map +0 -1
- package/dist/cookies.d.ts.map +0 -1
- package/dist/edge.d.ts.map +0 -1
- package/dist/middleware.d.ts.map +0 -1
- package/dist/server/cart.d.ts.map +0 -1
- package/dist/server/categories.d.ts.map +0 -1
- package/dist/server/collections.d.ts.map +0 -1
- package/dist/server/contact.d.ts.map +0 -1
- package/dist/server/customer-registration.d.ts.map +0 -1
- package/dist/server/customer.d.ts.map +0 -1
- package/dist/server/dynamic-config.d.ts +0 -202
- package/dist/server/dynamic-config.d.ts.map +0 -1
- package/dist/server/dynamic-config.js +0 -675
- package/dist/server/fulfillment.d.ts.map +0 -1
- package/dist/server/guest.d.ts.map +0 -1
- package/dist/server/home.d.ts +0 -42
- package/dist/server/home.d.ts.map +0 -1
- package/dist/server/homepage-section-defaults.d.ts.map +0 -1
- package/dist/server/index.d.ts.map +0 -1
- package/dist/server/locale-actions.d.ts.map +0 -1
- package/dist/server/locales.d.ts.map +0 -1
- package/dist/server/notifications.d.ts.map +0 -1
- package/dist/server/onboarding.d.ts.map +0 -1
- package/dist/server/orders.d.ts.map +0 -1
- package/dist/server/payment-details.d.ts.map +0 -1
- package/dist/server/payment.d.ts.map +0 -1
- package/dist/server/pincode.d.ts.map +0 -1
- package/dist/server/products.d.ts.map +0 -1
- package/dist/server/regions.d.ts.map +0 -1
- package/dist/server/returns.d.ts.map +0 -1
- package/dist/server/swaps.d.ts.map +0 -1
- package/dist/server/variants.d.ts.map +0 -1
- package/dist/server/wishlist.d.ts.map +0 -1
- package/dist/util/get-locale-header.d.ts.map +0 -1
- package/dist/util/medusa-error.d.ts.map +0 -1
- package/dist/util/revalidate-cart.d.ts.map +0 -1
- package/dist/util/sort-products.d.ts.map +0 -1
- package/dist/util/store-client.d.ts.map +0 -1
- /package/dist/{config.d.ts → src/config.d.ts} +0 -0
- /package/dist/{config.js → src/config.js} +0 -0
- /package/dist/{cookies.d.ts → src/cookies.d.ts} +0 -0
- /package/dist/{cookies.js → src/cookies.js} +0 -0
- /package/dist/{edge.d.ts → src/edge.d.ts} +0 -0
- /package/dist/{edge.js → src/edge.js} +0 -0
- /package/dist/{middleware.d.ts → src/middleware.d.ts} +0 -0
- /package/dist/{middleware.js → src/middleware.js} +0 -0
- /package/dist/{server → src/server}/cart.d.ts +0 -0
- /package/dist/{server → src/server}/cart.js +0 -0
- /package/dist/{server → src/server}/categories.d.ts +0 -0
- /package/dist/{server → src/server}/categories.js +0 -0
- /package/dist/{server → src/server}/collections.d.ts +0 -0
- /package/dist/{server → src/server}/collections.js +0 -0
- /package/dist/{server → src/server}/contact.d.ts +0 -0
- /package/dist/{server → src/server}/contact.js +0 -0
- /package/dist/{server → src/server}/customer-registration.d.ts +0 -0
- /package/dist/{server → src/server}/customer-registration.js +0 -0
- /package/dist/{server → src/server}/customer.d.ts +0 -0
- /package/dist/{server → src/server}/customer.js +0 -0
- /package/dist/{server → src/server}/fulfillment.d.ts +0 -0
- /package/dist/{server → src/server}/fulfillment.js +0 -0
- /package/dist/{server → src/server}/guest.d.ts +0 -0
- /package/dist/{server → src/server}/guest.js +0 -0
- /package/dist/{server → src/server}/locale-actions.d.ts +0 -0
- /package/dist/{server → src/server}/locale-actions.js +0 -0
- /package/dist/{server → src/server}/locales.d.ts +0 -0
- /package/dist/{server → src/server}/locales.js +0 -0
- /package/dist/{server → src/server}/notifications.d.ts +0 -0
- /package/dist/{server → src/server}/notifications.js +0 -0
- /package/dist/{server → src/server}/onboarding.d.ts +0 -0
- /package/dist/{server → src/server}/onboarding.js +0 -0
- /package/dist/{server → src/server}/orders.d.ts +0 -0
- /package/dist/{server → src/server}/orders.js +0 -0
- /package/dist/{server → src/server}/payment-details.d.ts +0 -0
- /package/dist/{server → src/server}/payment-details.js +0 -0
- /package/dist/{server → src/server}/payment.d.ts +0 -0
- /package/dist/{server → src/server}/payment.js +0 -0
- /package/dist/{server → src/server}/pincode.d.ts +0 -0
- /package/dist/{server → src/server}/pincode.js +0 -0
- /package/dist/{server → src/server}/products.d.ts +0 -0
- /package/dist/{server → src/server}/products.js +0 -0
- /package/dist/{server → src/server}/regions.d.ts +0 -0
- /package/dist/{server → src/server}/regions.js +0 -0
- /package/dist/{server → src/server}/returns.d.ts +0 -0
- /package/dist/{server → src/server}/returns.js +0 -0
- /package/dist/{server → src/server}/swaps.d.ts +0 -0
- /package/dist/{server → src/server}/swaps.js +0 -0
- /package/dist/{server → src/server}/variants.d.ts +0 -0
- /package/dist/{server → src/server}/variants.js +0 -0
- /package/dist/{server → src/server}/wishlist.d.ts +0 -0
- /package/dist/{server → src/server}/wishlist.js +0 -0
- /package/dist/{util → src/util}/get-locale-header.d.ts +0 -0
- /package/dist/{util → src/util}/get-locale-header.js +0 -0
- /package/dist/{util → src/util}/medusa-error.d.ts +0 -0
- /package/dist/{util → src/util}/medusa-error.js +0 -0
- /package/dist/{util → src/util}/revalidate-cart.d.ts +0 -0
- /package/dist/{util → src/util}/revalidate-cart.js +0 -0
- /package/dist/{util → src/util}/sort-products.d.ts +0 -0
- /package/dist/{util → src/util}/sort-products.js +0 -0
- /package/dist/{util → src/util}/store-client.d.ts +0 -0
- /package/dist/{util → src/util}/store-client.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fulfillment.d.ts","sourceRoot":"","sources":["../../../src/server/fulfillment.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAQ3C,eAAO,MAAM,uBAAuB,GAAU,QAAQ,MAAM,uEA0B3D,CAAA;AAED,eAAO,MAAM,+BAA+B,GAC1C,UAAU,MAAM,EAChB,QAAQ,MAAM,EACd,OAAO,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,sDAc/B,CAAA;AAED,eAAO,MAAM,2BAA2B,GAAU,SAAS,MAAM,EAAE,YAAY,MAAM,EAAE,MAAK,MAAU,yFAWrG,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"guest.d.ts","sourceRoot":"","sources":["../../../src/server/guest.ts"],"names":[],"mappings":"AAEA,OAAO,EAOL,KAAK,eAAe,EACrB,MAAM,uBAAuB,CAAA;AAsB9B;;GAEG;AACH,wBAAsB,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,GAAE,MAA6B,6DAO/E;AAED;;GAEG;AACH,wBAAsB,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,6DAExE;AAED;;GAEG;AACH,wBAAsB,eAAe,CAAC,KAAK,EAAE,MAAM;;aAOH,MAAM;;;GAUrD;AAED,wBAAsB,eAAe,CAAC,KAAK,EAAE,MAAM,6DAGlD;AAED,wBAAsB,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,6DAe9D;AAED,wBAAsB,WAAW;;GAOhC;AAED,wBAAsB,cAAc,CAAC,KAAK,CAAC,EAAE,MAAM;;;;;;;;GAclD;AAED,wBAAsB,aAAa,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM;;;;;;;;GAkB7D;AAED,wBAAsB,gBAAgB,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM;;;;;;GAcrE;AAED,wBAAsB,oBAAoB,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM;;;;;;;;;;;;;GAczE;AAED,wBAAsB,YAAY,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM;;;;;;;;GAqBjE;AAED,wBAAsB,iBAAiB,CACrC,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,eAAe,EAAE,EACxB,SAAS,CAAC,EAAE,MAAM,EAClB,IAAI,CAAC,EAAE,MAAM,EACb,KAAK,CAAC,EAAE,MAAM;;;;;;;;GAef"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import "server-only";
|
|
2
|
+
import { getHomeSectionsCopyFromPageInput, type AboutBrandConfig } from "../dynamic-config";
|
|
3
|
+
import type { SectionLoaderOptions } from "./shared";
|
|
4
|
+
export type AboutBrandSectionData = {
|
|
5
|
+
aboutBrand: AboutBrandConfig;
|
|
6
|
+
copy: ReturnType<typeof getHomeSectionsCopyFromPageInput>["aboutBrand"];
|
|
7
|
+
};
|
|
8
|
+
export declare function loadAboutBrandSectionData(_countryCode: string, options?: SectionLoaderOptions): Promise<AboutBrandSectionData>;
|
|
9
|
+
//# sourceMappingURL=about-brand.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"about-brand.d.ts","sourceRoot":"","sources":["../../../../src/server/home-sections/about-brand.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAA;AAEpB,OAAO,EAEL,gCAAgC,EAChC,KAAK,gBAAgB,EACtB,MAAM,mBAAmB,CAAA;AAC1B,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAA;AAEpD,MAAM,MAAM,qBAAqB,GAAG;IAClC,UAAU,EAAE,gBAAgB,CAAA;IAC5B,IAAI,EAAE,UAAU,CAAC,OAAO,gCAAgC,CAAC,CAAC,YAAY,CAAC,CAAA;CACxE,CAAA;AAED,wBAAsB,yBAAyB,CAC7C,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,oBAAoB,GAC7B,OAAO,CAAC,qBAAqB,CAAC,CAMhC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import "server-only";
|
|
2
|
+
import { getAboutBrandFromPageInput, getHomeSectionsCopyFromPageInput, } from "../dynamic-config";
|
|
3
|
+
export async function loadAboutBrandSectionData(_countryCode, options) {
|
|
4
|
+
const pageInput = options?.pageInput ?? null;
|
|
5
|
+
return {
|
|
6
|
+
aboutBrand: getAboutBrandFromPageInput(pageInput),
|
|
7
|
+
copy: getHomeSectionsCopyFromPageInput(pageInput).aboutBrand,
|
|
8
|
+
};
|
|
9
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import "server-only";
|
|
2
|
+
import { getHomeSectionsCopyFromPageInput } from "../dynamic-config";
|
|
3
|
+
import { type ShoppableLook } from "../shoppable-looks";
|
|
4
|
+
import { type SectionLoaderOptions } from "./shared";
|
|
5
|
+
export type BaptismPicksSectionData = {
|
|
6
|
+
baptismPicks: ShoppableLook[];
|
|
7
|
+
copy: ReturnType<typeof getHomeSectionsCopyFromPageInput>["baptismPicks"];
|
|
8
|
+
};
|
|
9
|
+
export declare function loadBaptismPicksSectionData(countryCode: string, options?: SectionLoaderOptions): Promise<BaptismPicksSectionData | null>;
|
|
10
|
+
//# sourceMappingURL=baptism-picks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"baptism-picks.d.ts","sourceRoot":"","sources":["../../../../src/server/home-sections/baptism-picks.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAA;AAGpB,OAAO,EAAE,gCAAgC,EAAE,MAAM,mBAAmB,CAAA;AAGpE,OAAO,EAAwB,KAAK,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAC7E,OAAO,EAIL,KAAK,oBAAoB,EAC1B,MAAM,UAAU,CAAA;AAEjB,MAAM,MAAM,uBAAuB,GAAG;IACpC,YAAY,EAAE,aAAa,EAAE,CAAA;IAC7B,IAAI,EAAE,UAAU,CAAC,OAAO,gCAAgC,CAAC,CAAC,cAAc,CAAC,CAAA;CAC1E,CAAA;AAED,wBAAsB,2BAA2B,CAC/C,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,oBAAoB,GAC7B,OAAO,CAAC,uBAAuB,GAAG,IAAI,CAAC,CAuBzC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import "server-only";
|
|
2
|
+
import { getHomeSectionsCopyFromPageInput } from "../dynamic-config";
|
|
3
|
+
import { listCategories } from "../categories";
|
|
4
|
+
import { getProductsByTag } from "../products";
|
|
5
|
+
import { getBaptismPicksLooks } from "../shoppable-looks";
|
|
6
|
+
import { categoryIdsMatching, productsForCategoryIds, requireRegion, } from "./shared";
|
|
7
|
+
export async function loadBaptismPicksSectionData(countryCode, options) {
|
|
8
|
+
const region = await requireRegion(countryCode);
|
|
9
|
+
if (!region)
|
|
10
|
+
return null;
|
|
11
|
+
const pageInput = options?.pageInput ?? null;
|
|
12
|
+
const [categoriesResult, baptismByTag] = await Promise.all([
|
|
13
|
+
listCategories({ limit: 100 }).catch(() => []),
|
|
14
|
+
getProductsByTag({ tagValue: "baptism", limit: 12, countryCode }).catch(() => []),
|
|
15
|
+
]);
|
|
16
|
+
const categories = (categoriesResult ?? []);
|
|
17
|
+
const baptismIds = categoryIdsMatching(categories, /baptism/);
|
|
18
|
+
let baptismFallback = baptismByTag;
|
|
19
|
+
if (baptismIds.length > 0) {
|
|
20
|
+
baptismFallback = await productsForCategoryIds(countryCode, baptismIds, 12);
|
|
21
|
+
}
|
|
22
|
+
const baptismPicks = await getBaptismPicksLooks(countryCode, baptismFallback.slice(0, 8), pageInput);
|
|
23
|
+
return {
|
|
24
|
+
baptismPicks,
|
|
25
|
+
copy: getHomeSectionsCopyFromPageInput(pageInput).baptismPicks,
|
|
26
|
+
};
|
|
27
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import "server-only";
|
|
2
|
+
import { HttpTypes } from "@medusajs/types";
|
|
3
|
+
import { getHomeSectionsCopyFromPageInput } from "../dynamic-config";
|
|
4
|
+
import { requireRegion, type SectionLoaderOptions } from "./shared";
|
|
5
|
+
export type BaptismSectionData = {
|
|
6
|
+
region: NonNullable<Awaited<ReturnType<typeof requireRegion>>>;
|
|
7
|
+
baptismGirl: HttpTypes.StoreProduct[];
|
|
8
|
+
baptismBoy: HttpTypes.StoreProduct[];
|
|
9
|
+
ratings: unknown[];
|
|
10
|
+
copy: ReturnType<typeof getHomeSectionsCopyFromPageInput>["baptism"];
|
|
11
|
+
};
|
|
12
|
+
export declare function loadBaptismSectionData(countryCode: string, options?: SectionLoaderOptions): Promise<BaptismSectionData | null>;
|
|
13
|
+
//# sourceMappingURL=baptism.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"baptism.d.ts","sourceRoot":"","sources":["../../../../src/server/home-sections/baptism.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAA;AAEpB,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAE3C,OAAO,EAAE,gCAAgC,EAAE,MAAM,mBAAmB,CAAA;AAGpE,OAAO,EAGL,aAAa,EACb,KAAK,oBAAoB,EAC1B,MAAM,UAAU,CAAA;AAEjB,MAAM,MAAM,kBAAkB,GAAG;IAC/B,MAAM,EAAE,WAAW,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC,CAAC,CAAA;IAC9D,WAAW,EAAE,SAAS,CAAC,YAAY,EAAE,CAAA;IACrC,UAAU,EAAE,SAAS,CAAC,YAAY,EAAE,CAAA;IACpC,OAAO,EAAE,OAAO,EAAE,CAAA;IAClB,IAAI,EAAE,UAAU,CAAC,OAAO,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAA;CACrE,CAAA;AAED,wBAAsB,sBAAsB,CAC1C,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,oBAAoB,GAC7B,OAAO,CAAC,kBAAkB,GAAG,IAAI,CAAC,CAsCpC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import "server-only";
|
|
2
|
+
import { fetchRatings } from "medusa-reviews-logic/server";
|
|
3
|
+
import { getHomeSectionsCopyFromPageInput } from "../dynamic-config";
|
|
4
|
+
import { listCategories } from "../categories";
|
|
5
|
+
import { getProductsByTag } from "../products";
|
|
6
|
+
import { categoryIdsMatching, productsForCategoryIds, requireRegion, } from "./shared";
|
|
7
|
+
export async function loadBaptismSectionData(countryCode, options) {
|
|
8
|
+
const region = await requireRegion(countryCode);
|
|
9
|
+
if (!region)
|
|
10
|
+
return null;
|
|
11
|
+
const ratings = await fetchRatings();
|
|
12
|
+
const pageInput = options?.pageInput ?? null;
|
|
13
|
+
const [categoriesResult, baptismByTag] = await Promise.all([
|
|
14
|
+
listCategories({ limit: 100 }).catch(() => []),
|
|
15
|
+
getProductsByTag({ tagValue: "baptism", limit: 12, countryCode }).catch(() => []),
|
|
16
|
+
]);
|
|
17
|
+
const categories = (categoriesResult ?? []);
|
|
18
|
+
const girlIds = categoryIdsMatching(categories, /baptism.*girl|girl.*baptism|^girl$/);
|
|
19
|
+
const boyIds = categoryIdsMatching(categories, /baptism.*boy|boy.*baptism|^boy$/);
|
|
20
|
+
const baptismIds = categoryIdsMatching(categories, /baptism/);
|
|
21
|
+
const [baptismGirl, baptismBoy] = await Promise.all([
|
|
22
|
+
girlIds.length
|
|
23
|
+
? productsForCategoryIds(countryCode, girlIds, 8)
|
|
24
|
+
: baptismByTag.filter((p) => /girl/i.test(p.title || "")).slice(0, 8),
|
|
25
|
+
boyIds.length
|
|
26
|
+
? productsForCategoryIds(countryCode, boyIds, 8)
|
|
27
|
+
: baptismByTag.filter((p) => /boy/i.test(p.title || "")).slice(0, 8),
|
|
28
|
+
]);
|
|
29
|
+
let baptismFallback = [];
|
|
30
|
+
if (baptismGirl.length === 0 && baptismBoy.length === 0) {
|
|
31
|
+
baptismFallback =
|
|
32
|
+
baptismIds.length > 0
|
|
33
|
+
? await productsForCategoryIds(countryCode, baptismIds, 12)
|
|
34
|
+
: baptismByTag;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
region,
|
|
38
|
+
baptismGirl: baptismGirl.length > 0 ? baptismGirl : baptismFallback.slice(0, 8),
|
|
39
|
+
baptismBoy: baptismBoy.length > 0 ? baptismBoy : baptismFallback.slice(0, 8),
|
|
40
|
+
ratings: ratings ?? [],
|
|
41
|
+
copy: getHomeSectionsCopyFromPageInput(pageInput).baptism,
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import "server-only";
|
|
2
|
+
import { getBlogPostsFromPageInput, getHomeSectionsCopyFromPageInput } from "../dynamic-config";
|
|
3
|
+
import type { SectionLoaderOptions } from "./shared";
|
|
4
|
+
export type BlogPostsSectionData = {
|
|
5
|
+
blogPosts: ReturnType<typeof getBlogPostsFromPageInput>;
|
|
6
|
+
copy: ReturnType<typeof getHomeSectionsCopyFromPageInput>["blogPosts"];
|
|
7
|
+
};
|
|
8
|
+
export declare function loadBlogPostsSectionData(_countryCode: string, options?: SectionLoaderOptions): Promise<BlogPostsSectionData>;
|
|
9
|
+
//# sourceMappingURL=blog-posts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blog-posts.d.ts","sourceRoot":"","sources":["../../../../src/server/home-sections/blog-posts.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAA;AAEpB,OAAO,EACL,yBAAyB,EACzB,gCAAgC,EACjC,MAAM,mBAAmB,CAAA;AAC1B,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAA;AAEpD,MAAM,MAAM,oBAAoB,GAAG;IACjC,SAAS,EAAE,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAAA;IACvD,IAAI,EAAE,UAAU,CAAC,OAAO,gCAAgC,CAAC,CAAC,WAAW,CAAC,CAAA;CACvE,CAAA;AAED,wBAAsB,wBAAwB,CAC5C,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,oBAAoB,GAC7B,OAAO,CAAC,oBAAoB,CAAC,CAM/B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import "server-only";
|
|
2
|
+
import { getBlogPostsFromPageInput, getHomeSectionsCopyFromPageInput, } from "../dynamic-config";
|
|
3
|
+
export async function loadBlogPostsSectionData(_countryCode, options) {
|
|
4
|
+
const pageInput = options?.pageInput ?? null;
|
|
5
|
+
return {
|
|
6
|
+
blogPosts: getBlogPostsFromPageInput(pageInput),
|
|
7
|
+
copy: getHomeSectionsCopyFromPageInput(pageInput).blogPosts,
|
|
8
|
+
};
|
|
9
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import "server-only";
|
|
2
|
+
import { getHomeSectionsCopyFromPageInput } from "../dynamic-config";
|
|
3
|
+
import type { SectionLoaderOptions } from "./shared";
|
|
4
|
+
export type BrandMarqueeSectionData = {
|
|
5
|
+
copy: ReturnType<typeof getHomeSectionsCopyFromPageInput>["brandMarquee"];
|
|
6
|
+
};
|
|
7
|
+
export declare function loadBrandMarqueeSectionData(_countryCode: string, options?: SectionLoaderOptions): Promise<BrandMarqueeSectionData>;
|
|
8
|
+
//# sourceMappingURL=brand-marquee.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"brand-marquee.d.ts","sourceRoot":"","sources":["../../../../src/server/home-sections/brand-marquee.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAA;AAEpB,OAAO,EAAE,gCAAgC,EAAE,MAAM,mBAAmB,CAAA;AACpE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAA;AAEpD,MAAM,MAAM,uBAAuB,GAAG;IACpC,IAAI,EAAE,UAAU,CAAC,OAAO,gCAAgC,CAAC,CAAC,cAAc,CAAC,CAAA;CAC1E,CAAA;AAED,wBAAsB,2BAA2B,CAC/C,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,oBAAoB,GAC7B,OAAO,CAAC,uBAAuB,CAAC,CAIlC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import "server-only";
|
|
2
|
+
import { getHomeSectionsCopyFromPageInput } from "../dynamic-config";
|
|
3
|
+
export async function loadBrandMarqueeSectionData(_countryCode, options) {
|
|
4
|
+
return {
|
|
5
|
+
copy: getHomeSectionsCopyFromPageInput(options?.pageInput ?? null).brandMarquee,
|
|
6
|
+
};
|
|
7
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import "server-only";
|
|
2
|
+
import { getBrandPillarsFromPageInput, getHomeSectionsCopyFromPageInput } from "../dynamic-config";
|
|
3
|
+
import type { SectionLoaderOptions } from "./shared";
|
|
4
|
+
export type BrandPillarsSectionData = {
|
|
5
|
+
brandPillars: ReturnType<typeof getBrandPillarsFromPageInput>;
|
|
6
|
+
copy: ReturnType<typeof getHomeSectionsCopyFromPageInput>["brandPillars"];
|
|
7
|
+
};
|
|
8
|
+
export declare function loadBrandPillarsSectionData(_countryCode: string, options?: SectionLoaderOptions): Promise<BrandPillarsSectionData>;
|
|
9
|
+
//# sourceMappingURL=brand-pillars.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"brand-pillars.d.ts","sourceRoot":"","sources":["../../../../src/server/home-sections/brand-pillars.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAA;AAEpB,OAAO,EACL,4BAA4B,EAC5B,gCAAgC,EACjC,MAAM,mBAAmB,CAAA;AAC1B,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAA;AAEpD,MAAM,MAAM,uBAAuB,GAAG;IACpC,YAAY,EAAE,UAAU,CAAC,OAAO,4BAA4B,CAAC,CAAA;IAC7D,IAAI,EAAE,UAAU,CAAC,OAAO,gCAAgC,CAAC,CAAC,cAAc,CAAC,CAAA;CAC1E,CAAA;AAED,wBAAsB,2BAA2B,CAC/C,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,oBAAoB,GAC7B,OAAO,CAAC,uBAAuB,CAAC,CAMlC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import "server-only";
|
|
2
|
+
import { getBrandPillarsFromPageInput, getHomeSectionsCopyFromPageInput, } from "../dynamic-config";
|
|
3
|
+
export async function loadBrandPillarsSectionData(_countryCode, options) {
|
|
4
|
+
const pageInput = options?.pageInput ?? null;
|
|
5
|
+
return {
|
|
6
|
+
brandPillars: getBrandPillarsFromPageInput(pageInput),
|
|
7
|
+
copy: getHomeSectionsCopyFromPageInput(pageInput).brandPillars,
|
|
8
|
+
};
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import "server-only";
|
|
2
|
+
import { HttpTypes } from "@medusajs/types";
|
|
3
|
+
import type { SectionLoaderOptions } from "./shared";
|
|
4
|
+
export type CategoryPillsSectionData = {
|
|
5
|
+
categories: HttpTypes.StoreProductCategory[];
|
|
6
|
+
collections: Array<Record<string, unknown>>;
|
|
7
|
+
};
|
|
8
|
+
export declare function loadCategoryPillsSectionData(_countryCode: string, _options?: SectionLoaderOptions): Promise<CategoryPillsSectionData>;
|
|
9
|
+
//# sourceMappingURL=category-pills.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"category-pills.d.ts","sourceRoot":"","sources":["../../../../src/server/home-sections/category-pills.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAA;AAEpB,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAG3C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAA;AAEpD,MAAM,MAAM,wBAAwB,GAAG;IACrC,UAAU,EAAE,SAAS,CAAC,oBAAoB,EAAE,CAAA;IAC5C,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAA;CAC5C,CAAA;AAED,wBAAsB,4BAA4B,CAChD,YAAY,EAAE,MAAM,EACpB,QAAQ,CAAC,EAAE,oBAAoB,GAC9B,OAAO,CAAC,wBAAwB,CAAC,CAgBnC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import "server-only";
|
|
2
|
+
import { listCategories } from "../categories";
|
|
3
|
+
import { listCollections } from "../collections";
|
|
4
|
+
export async function loadCategoryPillsSectionData(_countryCode, _options) {
|
|
5
|
+
const [categoriesResult, collectionsResult] = await Promise.all([
|
|
6
|
+
listCategories({
|
|
7
|
+
limit: 100,
|
|
8
|
+
fields: "id,handle,name,metadata,parent_category_id,*parent_category,*parent_category.parent_category",
|
|
9
|
+
}).catch(() => []),
|
|
10
|
+
listCollections({ fields: "id, handle, title, metadata" }).catch(() => ({
|
|
11
|
+
collections: [],
|
|
12
|
+
})),
|
|
13
|
+
]);
|
|
14
|
+
return {
|
|
15
|
+
categories: (categoriesResult ?? []),
|
|
16
|
+
collections: (collectionsResult.collections ??
|
|
17
|
+
[]),
|
|
18
|
+
};
|
|
19
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import "server-only";
|
|
2
|
+
import { HttpTypes } from "@medusajs/types";
|
|
3
|
+
import { getHomeSectionsCopyFromPageInput } from "../dynamic-config";
|
|
4
|
+
import { getRegion } from "../regions";
|
|
5
|
+
import type { SectionLoaderOptions } from "./shared";
|
|
6
|
+
export type CelebrityTrustSectionData = {
|
|
7
|
+
region: NonNullable<Awaited<ReturnType<typeof getRegion>>>;
|
|
8
|
+
celebrityProduct: HttpTypes.StoreProduct | null;
|
|
9
|
+
copy: ReturnType<typeof getHomeSectionsCopyFromPageInput>["celebrityTrust"];
|
|
10
|
+
};
|
|
11
|
+
export declare function loadCelebrityTrustSectionData(countryCode: string, options?: SectionLoaderOptions): Promise<CelebrityTrustSectionData | null>;
|
|
12
|
+
//# sourceMappingURL=celebrity-trust.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"celebrity-trust.d.ts","sourceRoot":"","sources":["../../../../src/server/home-sections/celebrity-trust.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAA;AAEpB,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EAAE,gCAAgC,EAAE,MAAM,mBAAmB,CAAA;AAEpE,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AACtC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAA;AAEpD,MAAM,MAAM,yBAAyB,GAAG;IACtC,MAAM,EAAE,WAAW,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC,CAAC,CAAA;IAC1D,gBAAgB,EAAE,SAAS,CAAC,YAAY,GAAG,IAAI,CAAA;IAC/C,IAAI,EAAE,UAAU,CAAC,OAAO,gCAAgC,CAAC,CAAC,gBAAgB,CAAC,CAAA;CAC5E,CAAA;AAED,wBAAsB,6BAA6B,CACjD,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,oBAAoB,GAC7B,OAAO,CAAC,yBAAyB,GAAG,IAAI,CAAC,CAwB3C"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import "server-only";
|
|
2
|
+
import { getHomeSectionsCopyFromPageInput } from "../dynamic-config";
|
|
3
|
+
import { getProductsByTag, listProductsWithSort } from "../products";
|
|
4
|
+
import { getRegion } from "../regions";
|
|
5
|
+
export async function loadCelebrityTrustSectionData(countryCode, options) {
|
|
6
|
+
const region = await getRegion(countryCode);
|
|
7
|
+
if (!region)
|
|
8
|
+
return null;
|
|
9
|
+
const pageInput = options?.pageInput ?? null;
|
|
10
|
+
const [bestsellers, newArrivalsResult] = await Promise.all([
|
|
11
|
+
getProductsByTag({ tagValue: "bestseller", limit: 10, countryCode }).catch(() => []),
|
|
12
|
+
listProductsWithSort({
|
|
13
|
+
page: 1,
|
|
14
|
+
queryParams: { limit: 12 },
|
|
15
|
+
sortBy: "created_at",
|
|
16
|
+
countryCode,
|
|
17
|
+
}).catch(() => ({ response: { products: [] } })),
|
|
18
|
+
]);
|
|
19
|
+
const newArrivals = newArrivalsResult
|
|
20
|
+
.response?.products ?? [];
|
|
21
|
+
const bestsellerList = (bestsellers ?? []);
|
|
22
|
+
return {
|
|
23
|
+
region,
|
|
24
|
+
celebrityProduct: bestsellerList[0] ?? newArrivals[0] ?? null,
|
|
25
|
+
copy: getHomeSectionsCopyFromPageInput(pageInput).celebrityTrust,
|
|
26
|
+
};
|
|
27
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import "server-only";
|
|
2
|
+
import { getHomeSectionsCopyFromPageInput, getTrustFeaturesFromPageInput } from "../dynamic-config";
|
|
3
|
+
import type { SectionLoaderOptions } from "./shared";
|
|
4
|
+
export type FeaturesSectionData = {
|
|
5
|
+
trustFeatures: ReturnType<typeof getTrustFeaturesFromPageInput>;
|
|
6
|
+
copy: ReturnType<typeof getHomeSectionsCopyFromPageInput>["features"];
|
|
7
|
+
};
|
|
8
|
+
export declare function loadFeaturesSectionData(_countryCode: string, options?: SectionLoaderOptions): Promise<FeaturesSectionData>;
|
|
9
|
+
//# sourceMappingURL=features.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"features.d.ts","sourceRoot":"","sources":["../../../../src/server/home-sections/features.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAA;AAEpB,OAAO,EACL,gCAAgC,EAChC,6BAA6B,EAC9B,MAAM,mBAAmB,CAAA;AAC1B,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAA;AAEpD,MAAM,MAAM,mBAAmB,GAAG;IAChC,aAAa,EAAE,UAAU,CAAC,OAAO,6BAA6B,CAAC,CAAA;IAC/D,IAAI,EAAE,UAAU,CAAC,OAAO,gCAAgC,CAAC,CAAC,UAAU,CAAC,CAAA;CACtE,CAAA;AAED,wBAAsB,uBAAuB,CAC3C,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,oBAAoB,GAC7B,OAAO,CAAC,mBAAmB,CAAC,CAM9B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import "server-only";
|
|
2
|
+
import { getHomeSectionsCopyFromPageInput, getTrustFeaturesFromPageInput, } from "../dynamic-config";
|
|
3
|
+
export async function loadFeaturesSectionData(_countryCode, options) {
|
|
4
|
+
const pageInput = options?.pageInput ?? null;
|
|
5
|
+
return {
|
|
6
|
+
trustFeatures: getTrustFeaturesFromPageInput(pageInput),
|
|
7
|
+
copy: getHomeSectionsCopyFromPageInput(pageInput).features,
|
|
8
|
+
};
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import "server-only";
|
|
2
|
+
import { type HomepageBanner } from "../dynamic-config";
|
|
3
|
+
import type { SectionLoaderOptions } from "./shared";
|
|
4
|
+
export type HeroSectionData = {
|
|
5
|
+
homeBanners: HomepageBanner[] | null;
|
|
6
|
+
appBanners: HomepageBanner[] | null;
|
|
7
|
+
};
|
|
8
|
+
export declare function loadHeroSectionData(_countryCode: string, options?: SectionLoaderOptions): Promise<HeroSectionData>;
|
|
9
|
+
//# sourceMappingURL=hero.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hero.d.ts","sourceRoot":"","sources":["../../../../src/server/home-sections/hero.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAA;AAEpB,OAAO,EAGL,KAAK,cAAc,EACpB,MAAM,mBAAmB,CAAA;AAC1B,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAA;AAEpD,MAAM,MAAM,eAAe,GAAG;IAC5B,WAAW,EAAE,cAAc,EAAE,GAAG,IAAI,CAAA;IACpC,UAAU,EAAE,cAAc,EAAE,GAAG,IAAI,CAAA;CACpC,CAAA;AAED,wBAAsB,mBAAmB,CACvC,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,oBAAoB,GAC7B,OAAO,CAAC,eAAe,CAAC,CAM1B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import "server-only";
|
|
2
|
+
import { getAppBannersFromPageInput, getHomeBannersFromPageInput, } from "../dynamic-config";
|
|
3
|
+
export async function loadHeroSectionData(_countryCode, options) {
|
|
4
|
+
const pageInput = options?.pageInput ?? null;
|
|
5
|
+
return {
|
|
6
|
+
homeBanners: getHomeBannersFromPageInput(pageInput),
|
|
7
|
+
appBanners: getAppBannersFromPageInput(pageInput),
|
|
8
|
+
};
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import "server-only";
|
|
2
|
+
import { getHomeSectionsCopyFromPageInput, getInstagramPostsFromPageInput } from "../dynamic-config";
|
|
3
|
+
import type { SectionLoaderOptions } from "./shared";
|
|
4
|
+
export type InstagramPostsSectionData = {
|
|
5
|
+
instagramPosts: ReturnType<typeof getInstagramPostsFromPageInput>;
|
|
6
|
+
copy: ReturnType<typeof getHomeSectionsCopyFromPageInput>["instagramPosts"];
|
|
7
|
+
};
|
|
8
|
+
export declare function loadInstagramPostsSectionData(_countryCode: string, options?: SectionLoaderOptions): Promise<InstagramPostsSectionData>;
|
|
9
|
+
//# sourceMappingURL=instagram-posts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"instagram-posts.d.ts","sourceRoot":"","sources":["../../../../src/server/home-sections/instagram-posts.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAA;AAEpB,OAAO,EACL,gCAAgC,EAChC,8BAA8B,EAC/B,MAAM,mBAAmB,CAAA;AAC1B,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAA;AAEpD,MAAM,MAAM,yBAAyB,GAAG;IACtC,cAAc,EAAE,UAAU,CAAC,OAAO,8BAA8B,CAAC,CAAA;IACjE,IAAI,EAAE,UAAU,CAAC,OAAO,gCAAgC,CAAC,CAAC,gBAAgB,CAAC,CAAA;CAC5E,CAAA;AAED,wBAAsB,6BAA6B,CACjD,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,oBAAoB,GAC7B,OAAO,CAAC,yBAAyB,CAAC,CAMpC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import "server-only";
|
|
2
|
+
import { getHomeSectionsCopyFromPageInput, getInstagramPostsFromPageInput, } from "../dynamic-config";
|
|
3
|
+
export async function loadInstagramPostsSectionData(_countryCode, options) {
|
|
4
|
+
const pageInput = options?.pageInput ?? null;
|
|
5
|
+
return {
|
|
6
|
+
instagramPosts: getInstagramPostsFromPageInput(pageInput),
|
|
7
|
+
copy: getHomeSectionsCopyFromPageInput(pageInput).instagramPosts,
|
|
8
|
+
};
|
|
9
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import "server-only";
|
|
2
|
+
import { HttpTypes } from "@medusajs/types";
|
|
3
|
+
import { getHomeSectionsCopyFromPageInput } from "../dynamic-config";
|
|
4
|
+
import { requireRegion, type SectionLoaderOptions } from "./shared";
|
|
5
|
+
export type LovedByMomsSectionData = {
|
|
6
|
+
region: NonNullable<Awaited<ReturnType<typeof requireRegion>>>;
|
|
7
|
+
bestsellers: HttpTypes.StoreProduct[];
|
|
8
|
+
ratings: unknown[];
|
|
9
|
+
copy: ReturnType<typeof getHomeSectionsCopyFromPageInput>["lovedByMoms"];
|
|
10
|
+
};
|
|
11
|
+
export declare function loadLovedByMomsSectionData(countryCode: string, options?: SectionLoaderOptions): Promise<LovedByMomsSectionData | null>;
|
|
12
|
+
//# sourceMappingURL=loved-by-moms.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"loved-by-moms.d.ts","sourceRoot":"","sources":["../../../../src/server/home-sections/loved-by-moms.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAA;AAEpB,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAE3C,OAAO,EAAE,gCAAgC,EAAE,MAAM,mBAAmB,CAAA;AAEpE,OAAO,EAAE,aAAa,EAAE,KAAK,oBAAoB,EAAE,MAAM,UAAU,CAAA;AAEnE,MAAM,MAAM,sBAAsB,GAAG;IACnC,MAAM,EAAE,WAAW,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC,CAAC,CAAA;IAC9D,WAAW,EAAE,SAAS,CAAC,YAAY,EAAE,CAAA;IACrC,OAAO,EAAE,OAAO,EAAE,CAAA;IAClB,IAAI,EAAE,UAAU,CAAC,OAAO,gCAAgC,CAAC,CAAC,aAAa,CAAC,CAAA;CACzE,CAAA;AAED,wBAAsB,0BAA0B,CAC9C,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,oBAAoB,GAC7B,OAAO,CAAC,sBAAsB,GAAG,IAAI,CAAC,CAexC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import "server-only";
|
|
2
|
+
import { fetchRatings } from "medusa-reviews-logic/server";
|
|
3
|
+
import { getHomeSectionsCopyFromPageInput } from "../dynamic-config";
|
|
4
|
+
import { getProductsByTag } from "../products";
|
|
5
|
+
import { requireRegion } from "./shared";
|
|
6
|
+
export async function loadLovedByMomsSectionData(countryCode, options) {
|
|
7
|
+
const region = await requireRegion(countryCode);
|
|
8
|
+
if (!region)
|
|
9
|
+
return null;
|
|
10
|
+
const [bestsellers, ratings] = await Promise.all([
|
|
11
|
+
getProductsByTag({ tagValue: "bestseller", limit: 10, countryCode }).catch(() => []),
|
|
12
|
+
fetchRatings(),
|
|
13
|
+
]);
|
|
14
|
+
return {
|
|
15
|
+
region,
|
|
16
|
+
bestsellers: (bestsellers ?? []),
|
|
17
|
+
ratings: ratings ?? [],
|
|
18
|
+
copy: getHomeSectionsCopyFromPageInput(options?.pageInput ?? null).lovedByMoms,
|
|
19
|
+
};
|
|
20
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import "server-only";
|
|
2
|
+
import { HttpTypes } from "@medusajs/types";
|
|
3
|
+
import { getHomeSectionsCopyFromPageInput } from "../dynamic-config";
|
|
4
|
+
import { requireRegion, type SectionLoaderOptions } from "./shared";
|
|
5
|
+
export type LuxeFavouritesSectionData = {
|
|
6
|
+
region: NonNullable<Awaited<ReturnType<typeof requireRegion>>>;
|
|
7
|
+
luxeFavourites: HttpTypes.StoreProduct[];
|
|
8
|
+
copy: ReturnType<typeof getHomeSectionsCopyFromPageInput>["luxeFavourites"];
|
|
9
|
+
};
|
|
10
|
+
export declare function loadLuxeFavouritesSectionData(countryCode: string, options?: SectionLoaderOptions): Promise<LuxeFavouritesSectionData | null>;
|
|
11
|
+
//# sourceMappingURL=luxe-favourites.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"luxe-favourites.d.ts","sourceRoot":"","sources":["../../../../src/server/home-sections/luxe-favourites.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAA;AAEpB,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EAAE,gCAAgC,EAAE,MAAM,mBAAmB,CAAA;AAEpE,OAAO,EAAE,aAAa,EAAE,KAAK,oBAAoB,EAAE,MAAM,UAAU,CAAA;AAEnE,MAAM,MAAM,yBAAyB,GAAG;IACtC,MAAM,EAAE,WAAW,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC,CAAC,CAAA;IAC9D,cAAc,EAAE,SAAS,CAAC,YAAY,EAAE,CAAA;IACxC,IAAI,EAAE,UAAU,CAAC,OAAO,gCAAgC,CAAC,CAAC,gBAAgB,CAAC,CAAA;CAC5E,CAAA;AAED,wBAAsB,6BAA6B,CACjD,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,oBAAoB,GAC7B,OAAO,CAAC,yBAAyB,GAAG,IAAI,CAAC,CAa3C"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import "server-only";
|
|
2
|
+
import { getHomeSectionsCopyFromPageInput } from "../dynamic-config";
|
|
3
|
+
import { getProductsByTag } from "../products";
|
|
4
|
+
import { requireRegion } from "./shared";
|
|
5
|
+
export async function loadLuxeFavouritesSectionData(countryCode, options) {
|
|
6
|
+
const region = await requireRegion(countryCode);
|
|
7
|
+
if (!region)
|
|
8
|
+
return null;
|
|
9
|
+
const bestsellers = (await getProductsByTag({
|
|
10
|
+
tagValue: "bestseller",
|
|
11
|
+
limit: 10,
|
|
12
|
+
countryCode,
|
|
13
|
+
}).catch(() => []));
|
|
14
|
+
return {
|
|
15
|
+
region,
|
|
16
|
+
luxeFavourites: bestsellers.slice(0, 4),
|
|
17
|
+
copy: getHomeSectionsCopyFromPageInput(options?.pageInput ?? null).luxeFavourites,
|
|
18
|
+
};
|
|
19
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import "server-only";
|
|
2
|
+
import { type NewArrivalsSectionData } from "./new-arrivals";
|
|
3
|
+
import type { SectionLoaderOptions } from "./shared";
|
|
4
|
+
export type NewArrivalsClassicSectionData = NewArrivalsSectionData & {
|
|
5
|
+
copy: NewArrivalsSectionData["copy"];
|
|
6
|
+
};
|
|
7
|
+
export declare function loadNewArrivalsClassicSectionData(countryCode: string, options?: SectionLoaderOptions): Promise<NewArrivalsClassicSectionData | null>;
|
|
8
|
+
//# sourceMappingURL=new-arrivals-classic.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"new-arrivals-classic.d.ts","sourceRoot":"","sources":["../../../../src/server/home-sections/new-arrivals-classic.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAA;AAEpB,OAAO,EAA8B,KAAK,sBAAsB,EAAE,MAAM,gBAAgB,CAAA;AAIxF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAA;AAEpD,MAAM,MAAM,6BAA6B,GAAG,sBAAsB,GAAG;IACnE,IAAI,EAAE,sBAAsB,CAAC,MAAM,CAAC,CAAA;CACrC,CAAA;AAED,wBAAsB,iCAAiC,CACrD,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,oBAAoB,GAC7B,OAAO,CAAC,6BAA6B,GAAG,IAAI,CAAC,CAK/C"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import "server-only";
|
|
2
|
+
import { loadNewArrivalsSectionData } from "./new-arrivals";
|
|
3
|
+
import { getHomeSectionsCopyFromPageInput, } from "../dynamic-config";
|
|
4
|
+
export async function loadNewArrivalsClassicSectionData(countryCode, options) {
|
|
5
|
+
const base = await loadNewArrivalsSectionData(countryCode, options);
|
|
6
|
+
if (!base)
|
|
7
|
+
return null;
|
|
8
|
+
const sectionsCopy = getHomeSectionsCopyFromPageInput(options?.pageInput ?? null);
|
|
9
|
+
return { ...base, copy: sectionsCopy.newArrivalsClassic };
|
|
10
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import "server-only";
|
|
2
|
+
import { HttpTypes } from "@medusajs/types";
|
|
3
|
+
import { type SectionCopy } from "../dynamic-config";
|
|
4
|
+
import { requireRegion, type SectionLoaderOptions } from "./shared";
|
|
5
|
+
export type NewArrivalsSectionData = {
|
|
6
|
+
region: NonNullable<Awaited<ReturnType<typeof requireRegion>>>;
|
|
7
|
+
products: HttpTypes.StoreProduct[];
|
|
8
|
+
ratings: unknown[];
|
|
9
|
+
copy: SectionCopy;
|
|
10
|
+
};
|
|
11
|
+
export declare function loadNewArrivalsSectionData(countryCode: string, options?: SectionLoaderOptions): Promise<NewArrivalsSectionData | null>;
|
|
12
|
+
//# sourceMappingURL=new-arrivals.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"new-arrivals.d.ts","sourceRoot":"","sources":["../../../../src/server/home-sections/new-arrivals.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAA;AAEpB,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAE3C,OAAO,EAEL,KAAK,WAAW,EACjB,MAAM,mBAAmB,CAAA;AAE1B,OAAO,EACL,aAAa,EACb,KAAK,oBAAoB,EAC1B,MAAM,UAAU,CAAA;AAEjB,MAAM,MAAM,sBAAsB,GAAG;IACnC,MAAM,EAAE,WAAW,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC,CAAC,CAAA;IAC9D,QAAQ,EAAE,SAAS,CAAC,YAAY,EAAE,CAAA;IAClC,OAAO,EAAE,OAAO,EAAE,CAAA;IAClB,IAAI,EAAE,WAAW,CAAA;CAClB,CAAA;AAED,wBAAsB,0BAA0B,CAC9C,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,oBAAoB,GAC7B,OAAO,CAAC,sBAAsB,GAAG,IAAI,CAAC,CAsBxC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import "server-only";
|
|
2
|
+
import { fetchRatings } from "medusa-reviews-logic/server";
|
|
3
|
+
import { getHomeSectionsCopyFromPageInput, } from "../dynamic-config";
|
|
4
|
+
import { listProductsWithSort } from "../products";
|
|
5
|
+
import { requireRegion, } from "./shared";
|
|
6
|
+
export async function loadNewArrivalsSectionData(countryCode, options) {
|
|
7
|
+
const region = await requireRegion(countryCode);
|
|
8
|
+
if (!region)
|
|
9
|
+
return null;
|
|
10
|
+
const pageInput = options?.pageInput ?? null;
|
|
11
|
+
const [newArrivalsResult, ratings] = await Promise.all([
|
|
12
|
+
listProductsWithSort({
|
|
13
|
+
page: 1,
|
|
14
|
+
queryParams: { limit: 12 },
|
|
15
|
+
sortBy: "created_at",
|
|
16
|
+
countryCode,
|
|
17
|
+
}).catch(() => ({ response: { products: [] } })),
|
|
18
|
+
fetchRatings(),
|
|
19
|
+
]);
|
|
20
|
+
const sectionsCopy = getHomeSectionsCopyFromPageInput(pageInput);
|
|
21
|
+
return {
|
|
22
|
+
region,
|
|
23
|
+
products: newArrivalsResult
|
|
24
|
+
.response?.products ?? [],
|
|
25
|
+
ratings: ratings ?? [],
|
|
26
|
+
copy: sectionsCopy.newArrivals,
|
|
27
|
+
};
|
|
28
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import "server-only";
|
|
2
|
+
import type { SectionLoaderOptions } from "./shared";
|
|
3
|
+
export type PromoAnnouncementsSectionData = {
|
|
4
|
+
messages: string[];
|
|
5
|
+
};
|
|
6
|
+
export declare function loadPromoAnnouncementsSectionData(_countryCode: string, options?: SectionLoaderOptions): Promise<PromoAnnouncementsSectionData>;
|
|
7
|
+
//# sourceMappingURL=promo-announcements.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"promo-announcements.d.ts","sourceRoot":"","sources":["../../../../src/server/home-sections/promo-announcements.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAA;AAGpB,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAA;AAEpD,MAAM,MAAM,6BAA6B,GAAG;IAC1C,QAAQ,EAAE,MAAM,EAAE,CAAA;CACnB,CAAA;AAED,wBAAsB,iCAAiC,CACrD,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,oBAAoB,GAC7B,OAAO,CAAC,6BAA6B,CAAC,CAIxC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import "server-only";
|
|
2
|
+
import { getAnnouncementMessagesFromPageInput } from "../dynamic-config";
|
|
3
|
+
export async function loadPromoAnnouncementsSectionData(_countryCode, options) {
|
|
4
|
+
return {
|
|
5
|
+
messages: getAnnouncementMessagesFromPageInput(options?.pageInput ?? null),
|
|
6
|
+
};
|
|
7
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import "server-only";
|
|
2
|
+
import { getPromoCountdownFromPageInput } from "../dynamic-config";
|
|
3
|
+
import type { SectionLoaderOptions } from "./shared";
|
|
4
|
+
export type PromoCountdownSectionData = Awaited<ReturnType<typeof getPromoCountdownFromPageInput>>;
|
|
5
|
+
export declare function loadPromoCountdownSectionData(_countryCode: string, options?: SectionLoaderOptions): Promise<PromoCountdownSectionData>;
|
|
6
|
+
//# sourceMappingURL=promo-countdown.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"promo-countdown.d.ts","sourceRoot":"","sources":["../../../../src/server/home-sections/promo-countdown.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAA;AAEpB,OAAO,EAAE,8BAA8B,EAAE,MAAM,mBAAmB,CAAA;AAClE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAA;AAEpD,MAAM,MAAM,yBAAyB,GAAG,OAAO,CAC7C,UAAU,CAAC,OAAO,8BAA8B,CAAC,CAClD,CAAA;AAED,wBAAsB,6BAA6B,CACjD,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,oBAAoB,GAC7B,OAAO,CAAC,yBAAyB,CAAC,CAEpC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import "server-only";
|
|
2
|
+
import { HttpTypes } from "@medusajs/types";
|
|
3
|
+
import type { HomepageConfig } from "../homepage-config.types";
|
|
4
|
+
export type SectionLoaderOptions = {
|
|
5
|
+
pageInput?: HomepageConfig | null;
|
|
6
|
+
};
|
|
7
|
+
export declare function requireRegion(countryCode: string): Promise<HttpTypes.StoreRegion | null | undefined>;
|
|
8
|
+
export declare function productsForCategoryIds(countryCode: string, categoryIds: string[], limit: number): Promise<HttpTypes.StoreProduct[]>;
|
|
9
|
+
export declare function categoryIdsMatching(categories: HttpTypes.StoreProductCategory[], pattern: RegExp): string[];
|
|
10
|
+
//# sourceMappingURL=shared.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../../src/server/home-sections/shared.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAA;AAEpB,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAG3C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAE9D,MAAM,MAAM,oBAAoB,GAAG;IACjC,SAAS,CAAC,EAAE,cAAc,GAAG,IAAI,CAAA;CAClC,CAAA;AAED,wBAAsB,aAAa,CAAC,WAAW,EAAE,MAAM,qDAEtD;AAED,wBAAsB,sBAAsB,CAC1C,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,MAAM,EAAE,EACrB,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,SAAS,CAAC,YAAY,EAAE,CAAC,CAcnC;AAED,wBAAgB,mBAAmB,CACjC,UAAU,EAAE,SAAS,CAAC,oBAAoB,EAAE,EAC5C,OAAO,EAAE,MAAM,GACd,MAAM,EAAE,CAKV"}
|