@treely/strapi-slices 8.0.3 → 8.0.4

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.
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import FontsCustomization from '../../constants/fontCustomizations';
2
3
  export type AnalyticsFunction = ({ type, props, }: {
3
4
  type: 'track' | 'page';
4
5
  props?: Record<string, any>;
@@ -9,6 +10,8 @@ export interface ContextProviderProps {
9
10
  children: React.ReactNode;
10
11
  locale: string;
11
12
  analyticsFunction?: AnalyticsFunction;
13
+ colors?: Record<string, any>;
14
+ fonts?: FontsCustomization;
12
15
  }
13
16
  export declare const ContextProvider: React.FC<ContextProviderProps>;
14
17
  //# sourceMappingURL=ContextProvider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ContextProvider.d.ts","sourceRoot":"","sources":["../../../src/components/ContextProvider/ContextProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwB,MAAM,OAAO,CAAC;AAU7C,MAAM,MAAM,iBAAiB,GAAG,CAAC,EAC/B,IAAI,EACJ,KAAK,GACN,EAAE;IACD,IAAI,EAAE,OAAO,GAAG,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC7B,KAAK,IAAI,CAAC;AAEX,eAAO,MAAM,gBAAgB,8CAE5B,CAAC;AAaF,eAAO,MAAM,WAAW,+CAAmC,CAAC;AAE5D,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;CACvC;AAED,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CA2C1D,CAAC"}
1
+ {"version":3,"file":"ContextProvider.d.ts","sourceRoot":"","sources":["../../../src/components/ContextProvider/ContextProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwB,MAAM,OAAO,CAAC;AAK7C,OAAO,kBAEN,MAAM,oCAAoC,CAAC;AAK5C,MAAM,MAAM,iBAAiB,GAAG,CAAC,EAC/B,IAAI,EACJ,KAAK,GACN,EAAE;IACD,IAAI,EAAE,OAAO,GAAG,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC7B,KAAK,IAAI,CAAC;AAEX,eAAO,MAAM,gBAAgB,8CAE5B,CAAC;AAaF,eAAO,MAAM,WAAW,+CAAmC,CAAC;AAE5D,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC7B,KAAK,CAAC,EAAE,kBAAkB,CAAC;CAC5B;AAED,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CA6C1D,CAAC"}
@@ -5,6 +5,7 @@ import PortfolioProject from '../../models/PortfolioProject';
5
5
  import StrapiCustomerStory from '../../models/strapi/StrapiCustomerStory';
6
6
  import Locale from '../../models/Locale';
7
7
  import { AnalyticsFunction } from '../ContextProvider/ContextProvider';
8
+ import FontsCustomization from '../../constants/fontCustomizations';
8
9
  export interface CustomSliceProps {
9
10
  slice: any;
10
11
  id: string;
@@ -15,8 +16,10 @@ export interface SliceRendererProps {
15
16
  projects: PortfolioProject[];
16
17
  customerStories: IStrapiData<StrapiCustomerStory>[];
17
18
  locale?: Locale;
19
+ colors?: Record<string, any>;
20
+ fonts?: FontsCustomization;
18
21
  CustomSlice?: ({ slice, id }: CustomSliceProps) => React.JSX.Element;
19
22
  analyticsFunction?: AnalyticsFunction;
20
23
  }
21
- export declare const SliceRenderer: ({ slices, blogPosts, projects, customerStories, locale, CustomSlice, analyticsFunction, }: SliceRendererProps) => React.JSX.Element;
24
+ export declare const SliceRenderer: ({ slices, blogPosts, projects, customerStories, locale, colors, fonts, CustomSlice, analyticsFunction, }: SliceRendererProps) => React.JSX.Element;
22
25
  //# sourceMappingURL=SliceRenderer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SliceRenderer.d.ts","sourceRoot":"","sources":["../../../src/components/SliceRenderer/SliceRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAoB1B,OAAO,cAAc,MAAM,oCAAoC,CAAC;AAOhE,OAAO,WAAW,MAAM,iCAAiC,CAAC;AAO1D,OAAO,gBAAgB,MAAM,+BAA+B,CAAC;AAG7D,OAAO,mBAAmB,MAAM,yCAAyC,CAAC;AAG1E,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAKzC,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAEvE,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,GAAG,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,GAAG,CAAC;IACZ,SAAS,EAAE,WAAW,CAAC,cAAc,CAAC,EAAE,CAAC;IACzC,QAAQ,EAAE,gBAAgB,EAAE,CAAC;IAC7B,eAAe,EAAE,WAAW,CAAC,mBAAmB,CAAC,EAAE,CAAC;IACpD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,gBAAgB,KAAK,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC;IACrE,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;CACvC;AAED,eAAO,MAAM,aAAa,GAAI,2FAQ3B,kBAAkB,KAAG,KAAK,CAAC,GAAG,CAAC,OAgRjC,CAAC"}
1
+ {"version":3,"file":"SliceRenderer.d.ts","sourceRoot":"","sources":["../../../src/components/SliceRenderer/SliceRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAoB1B,OAAO,cAAc,MAAM,oCAAoC,CAAC;AAOhE,OAAO,WAAW,MAAM,iCAAiC,CAAC;AAO1D,OAAO,gBAAgB,MAAM,+BAA+B,CAAC;AAG7D,OAAO,mBAAmB,MAAM,yCAAyC,CAAC;AAG1E,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAKzC,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AACvE,OAAO,kBAAkB,MAAM,oCAAoC,CAAC;AAEpE,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,GAAG,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,GAAG,CAAC;IACZ,SAAS,EAAE,WAAW,CAAC,cAAc,CAAC,EAAE,CAAC;IACzC,QAAQ,EAAE,gBAAgB,EAAE,CAAC;IAC7B,eAAe,EAAE,WAAW,CAAC,mBAAmB,CAAC,EAAE,CAAC;IACpD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC7B,KAAK,CAAC,EAAE,kBAAkB,CAAC;IAC3B,WAAW,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,gBAAgB,KAAK,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC;IACrE,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;CACvC;AAED,eAAO,MAAM,aAAa,GAAI,0GAU3B,kBAAkB,KAAG,KAAK,CAAC,GAAG,CAAC,OAqRjC,CAAC"}
package/dist/index.cjs CHANGED
@@ -1436,7 +1436,9 @@ var IntlContext = (0, import_react6.createContext)(intlFactory("en"));
1436
1436
  var ContextProvider = ({
1437
1437
  children,
1438
1438
  locale,
1439
- analyticsFunction
1439
+ analyticsFunction,
1440
+ colors: colors2,
1441
+ fonts
1440
1442
  }) => {
1441
1443
  const fetcher = async (resource, init) => {
1442
1444
  const response = await strapiClient_default.get(`${resource}`, {
@@ -1464,7 +1466,7 @@ var ContextProvider = ({
1464
1466
  },
1465
1467
  children: [
1466
1468
  /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_react7.Global, { styles: { GLOBAL_STYLE } }),
1467
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_boemly5.BoemlyThemeProvider, { fonts: FONT_CUSTOMIZATIONS, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(IntlContext.Provider, { value: intlFactory(locale), children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(AnalyticsContext.Provider, { value: analyticsFunction, children }) }) })
1469
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_boemly5.BoemlyThemeProvider, { fonts: fonts || FONT_CUSTOMIZATIONS, colors: colors2, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(IntlContext.Provider, { value: intlFactory(locale), children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(AnalyticsContext.Provider, { value: analyticsFunction, children }) }) })
1468
1470
  ]
1469
1471
  }
1470
1472
  ) });
@@ -8664,273 +8666,284 @@ var SliceRenderer = ({
8664
8666
  projects,
8665
8667
  customerStories,
8666
8668
  locale = "en",
8669
+ colors: colors2,
8670
+ fonts,
8667
8671
  CustomSlice,
8668
8672
  analyticsFunction
8669
- }) => /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(ContextProvider, { locale, analyticsFunction, children: slices.map((slice) => {
8670
- switch (slice.__component) {
8671
- case "sections.hero":
8672
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Hero_default, { slice }, `${slice.__component}-${slice.id}`);
8673
- case "sections.map-hero":
8674
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(MapHero_default, { slice }, `${slice.__component}-${slice.id}`);
8675
- case "sections.rich-text":
8676
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
8677
- RichTextSection_default,
8678
- {
8679
- slice
8680
- },
8681
- `${slice.__component}-${slice.id}`
8682
- );
8683
- case "sections.left-text-right-card":
8684
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
8685
- LeftTextRightCard_default,
8686
- {
8687
- slice
8688
- },
8689
- `${slice.__component}-${slice.id}`
8690
- );
8691
- case "sections.text-with-card":
8692
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
8693
- TextWithCard_default,
8694
- {
8695
- slice,
8696
- projects
8697
- },
8698
- `${slice.__component}-${slice.id}`
8699
- );
8700
- case "sections.logo-grid-with-text":
8701
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
8702
- LogoGridWithText_default,
8703
- {
8704
- slice
8705
- },
8706
- `${slice.__component}-${slice.id}`
8707
- );
8708
- case "sections.quote-cards":
8709
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
8710
- QuoteCards_default,
8711
- {
8712
- slice
8713
- },
8714
- `${slice.__component}-${slice.id}`
8715
- );
8716
- case "sections.q-and-a":
8717
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(QAndA_default, { slice }, `${slice.__component}-${slice.id}`);
8718
- case "sections.image-grid":
8719
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(ImageGrid_default, { slice }, `${slice.__component}-${slice.id}`);
8720
- case "sections.full-width-image":
8721
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
8722
- FullWidthImage_default,
8723
- {
8724
- slice
8725
- },
8726
- `${slice.__component}-${slice.id}`
8727
- );
8728
- case "sections.text-with-text-cards":
8729
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
8730
- TextWithTextCards_default,
8731
- {
8732
- slice
8733
- },
8734
- `${slice.__component}-${slice.id}`
8735
- );
8736
- case "sections.text-card-grid":
8737
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
8738
- TextCardGrid_default,
8739
- {
8740
- slice
8741
- },
8742
- `${slice.__component}-${slice.id}`
8743
- );
8744
- case "sections.icon-grid":
8745
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(IconGrid_default, { slice }, `${slice.__component}-${slice.id}`);
8746
- case "sections.image-text-sequence":
8747
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
8748
- ImageTextSequence_default,
8749
- {
8750
- slice
8751
- },
8752
- `${slice.__component}-${slice.id}`
8753
- );
8754
- case "sections.steps":
8755
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Steps_default, { slice }, `${slice.__component}-${slice.id}`);
8756
- case "sections.text-carousel":
8757
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
8758
- TextCarousel_default,
8759
- {
8760
- slice
8761
- },
8762
- `${slice.__component}-${slice.id}`
8763
- );
8764
- case "sections.link-cards-grid":
8765
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
8766
- LinkCardsGrid_default,
8767
- {
8768
- slice
8769
- },
8770
- `${slice.__component}-${slice.id}`
8771
- );
8772
- case "sections.small-hero":
8773
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
8774
- SmallHero_default,
8775
- {
8776
- slice,
8777
- theme: "dark"
8778
- },
8779
- `${slice.__component}-${slice.id}`
8780
- );
8781
- case "sections.small-hero-light":
8782
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
8783
- SmallHero_default,
8784
- {
8785
- slice,
8786
- theme: "light"
8787
- },
8788
- `${slice.__component}-${slice.id}`
8789
- );
8790
- case "sections.project-facts":
8791
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
8792
- ProjectFacts_default,
8793
- {
8794
- slice,
8795
- project: projects.find((p) => p.id === slice.projectId)
8796
- },
8797
- `${slice.__component}-${slice.id}`
8798
- );
8799
- case "sections.projects-grid":
8800
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
8801
- ProjectsGrid_default,
8802
- {
8803
- slice,
8804
- projects
8805
- },
8806
- `${slice.__component}-${slice.id}`
8807
- );
8808
- case "sections.projects-map":
8809
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
8810
- ProjectsMap_default,
8811
- {
8812
- slice
8813
- },
8814
- `${slice.__component}-${slice.id}`
8815
- );
8816
- case "sections.video":
8817
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Video_default, { slice }, `${slice.__component}-${slice.id}`);
8818
- case "sections.full-width-highlight-quote":
8819
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
8820
- FullWidthHighlightQuote_default,
8821
- {
8822
- slice
8823
- },
8824
- `${slice.__component}-${slice.id}`
8825
- );
8826
- case "sections.full-width-image-slider":
8827
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
8828
- FullWidthImageSlider_default,
8829
- {
8830
- slice
8831
- },
8832
- `${slice.__component}-${slice.id}`
8833
- );
8834
- case "sections.side-by-side-images":
8835
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
8836
- SideBySideImages_default,
8837
- {
8838
- slice
8839
- },
8840
- `${slice.__component}-${slice.id}`
8841
- );
8842
- case "sections.cta-only":
8843
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(CtaOnly_default, { slice }, `${slice.__component}-${slice.id}`);
8844
- case "sections.cta":
8845
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Cta_default, { slice }, `${slice.__component}-${slice.id}`);
8846
- case "sections.shop-checkout":
8847
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
8848
- ShopCheckout_default,
8849
- {
8850
- slice
8851
- },
8852
- `${slice.__component}-${slice.id}`
8853
- );
8854
- case "sections.facts":
8855
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Facts_default, { slice }, `${slice.__component}-${slice.id}`);
8856
- case "sections.blog-cards":
8857
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
8858
- BlogCards_default,
8859
- {
8860
- slice,
8861
- blogPosts
8862
- },
8863
- `${slice.__component}-${slice.id}`
8864
- );
8865
- case "sections.blog":
8866
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
8867
- Blog_default,
8868
- {
8869
- slice: {
8870
- ...slice,
8871
- blog_posts: slice.blog_posts.data
8872
- },
8873
- blogPosts
8874
- },
8875
- `${slice.__component}-${slice.id}`
8876
- );
8877
- case "sections.glossary":
8878
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
8879
- Glossary_default,
8880
- {
8881
- slice: {
8882
- ...slice,
8883
- glossary_items: slice.glossary_items.data
8673
+ }) => /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
8674
+ ContextProvider,
8675
+ {
8676
+ locale,
8677
+ analyticsFunction,
8678
+ colors: colors2,
8679
+ fonts,
8680
+ children: slices.map((slice) => {
8681
+ switch (slice.__component) {
8682
+ case "sections.hero":
8683
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Hero_default, { slice }, `${slice.__component}-${slice.id}`);
8684
+ case "sections.map-hero":
8685
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(MapHero_default, { slice }, `${slice.__component}-${slice.id}`);
8686
+ case "sections.rich-text":
8687
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
8688
+ RichTextSection_default,
8689
+ {
8690
+ slice
8691
+ },
8692
+ `${slice.__component}-${slice.id}`
8693
+ );
8694
+ case "sections.left-text-right-card":
8695
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
8696
+ LeftTextRightCard_default,
8697
+ {
8698
+ slice
8699
+ },
8700
+ `${slice.__component}-${slice.id}`
8701
+ );
8702
+ case "sections.text-with-card":
8703
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
8704
+ TextWithCard_default,
8705
+ {
8706
+ slice,
8707
+ projects
8708
+ },
8709
+ `${slice.__component}-${slice.id}`
8710
+ );
8711
+ case "sections.logo-grid-with-text":
8712
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
8713
+ LogoGridWithText_default,
8714
+ {
8715
+ slice
8716
+ },
8717
+ `${slice.__component}-${slice.id}`
8718
+ );
8719
+ case "sections.quote-cards":
8720
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
8721
+ QuoteCards_default,
8722
+ {
8723
+ slice
8724
+ },
8725
+ `${slice.__component}-${slice.id}`
8726
+ );
8727
+ case "sections.q-and-a":
8728
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(QAndA_default, { slice }, `${slice.__component}-${slice.id}`);
8729
+ case "sections.image-grid":
8730
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(ImageGrid_default, { slice }, `${slice.__component}-${slice.id}`);
8731
+ case "sections.full-width-image":
8732
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
8733
+ FullWidthImage_default,
8734
+ {
8735
+ slice
8736
+ },
8737
+ `${slice.__component}-${slice.id}`
8738
+ );
8739
+ case "sections.text-with-text-cards":
8740
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
8741
+ TextWithTextCards_default,
8742
+ {
8743
+ slice
8744
+ },
8745
+ `${slice.__component}-${slice.id}`
8746
+ );
8747
+ case "sections.text-card-grid":
8748
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
8749
+ TextCardGrid_default,
8750
+ {
8751
+ slice
8752
+ },
8753
+ `${slice.__component}-${slice.id}`
8754
+ );
8755
+ case "sections.icon-grid":
8756
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(IconGrid_default, { slice }, `${slice.__component}-${slice.id}`);
8757
+ case "sections.image-text-sequence":
8758
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
8759
+ ImageTextSequence_default,
8760
+ {
8761
+ slice
8762
+ },
8763
+ `${slice.__component}-${slice.id}`
8764
+ );
8765
+ case "sections.steps":
8766
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Steps_default, { slice }, `${slice.__component}-${slice.id}`);
8767
+ case "sections.text-carousel":
8768
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
8769
+ TextCarousel_default,
8770
+ {
8771
+ slice
8772
+ },
8773
+ `${slice.__component}-${slice.id}`
8774
+ );
8775
+ case "sections.link-cards-grid":
8776
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
8777
+ LinkCardsGrid_default,
8778
+ {
8779
+ slice
8780
+ },
8781
+ `${slice.__component}-${slice.id}`
8782
+ );
8783
+ case "sections.small-hero":
8784
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
8785
+ SmallHero_default,
8786
+ {
8787
+ slice,
8788
+ theme: "dark"
8789
+ },
8790
+ `${slice.__component}-${slice.id}`
8791
+ );
8792
+ case "sections.small-hero-light":
8793
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
8794
+ SmallHero_default,
8795
+ {
8796
+ slice,
8797
+ theme: "light"
8798
+ },
8799
+ `${slice.__component}-${slice.id}`
8800
+ );
8801
+ case "sections.project-facts":
8802
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
8803
+ ProjectFacts_default,
8804
+ {
8805
+ slice,
8806
+ project: projects.find((p) => p.id === slice.projectId)
8807
+ },
8808
+ `${slice.__component}-${slice.id}`
8809
+ );
8810
+ case "sections.projects-grid":
8811
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
8812
+ ProjectsGrid_default,
8813
+ {
8814
+ slice,
8815
+ projects
8816
+ },
8817
+ `${slice.__component}-${slice.id}`
8818
+ );
8819
+ case "sections.projects-map":
8820
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
8821
+ ProjectsMap_default,
8822
+ {
8823
+ slice
8824
+ },
8825
+ `${slice.__component}-${slice.id}`
8826
+ );
8827
+ case "sections.video":
8828
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Video_default, { slice }, `${slice.__component}-${slice.id}`);
8829
+ case "sections.full-width-highlight-quote":
8830
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
8831
+ FullWidthHighlightQuote_default,
8832
+ {
8833
+ slice
8834
+ },
8835
+ `${slice.__component}-${slice.id}`
8836
+ );
8837
+ case "sections.full-width-image-slider":
8838
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
8839
+ FullWidthImageSlider_default,
8840
+ {
8841
+ slice
8842
+ },
8843
+ `${slice.__component}-${slice.id}`
8844
+ );
8845
+ case "sections.side-by-side-images":
8846
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
8847
+ SideBySideImages_default,
8848
+ {
8849
+ slice
8850
+ },
8851
+ `${slice.__component}-${slice.id}`
8852
+ );
8853
+ case "sections.cta-only":
8854
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(CtaOnly_default, { slice }, `${slice.__component}-${slice.id}`);
8855
+ case "sections.cta":
8856
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Cta_default, { slice }, `${slice.__component}-${slice.id}`);
8857
+ case "sections.shop-checkout":
8858
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
8859
+ ShopCheckout_default,
8860
+ {
8861
+ slice
8862
+ },
8863
+ `${slice.__component}-${slice.id}`
8864
+ );
8865
+ case "sections.facts":
8866
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Facts_default, { slice }, `${slice.__component}-${slice.id}`);
8867
+ case "sections.blog-cards":
8868
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
8869
+ BlogCards_default,
8870
+ {
8871
+ slice,
8872
+ blogPosts
8873
+ },
8874
+ `${slice.__component}-${slice.id}`
8875
+ );
8876
+ case "sections.blog":
8877
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
8878
+ Blog_default,
8879
+ {
8880
+ slice: {
8881
+ ...slice,
8882
+ blog_posts: slice.blog_posts.data
8883
+ },
8884
+ blogPosts
8885
+ },
8886
+ `${slice.__component}-${slice.id}`
8887
+ );
8888
+ case "sections.glossary":
8889
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
8890
+ Glossary_default,
8891
+ {
8892
+ slice: {
8893
+ ...slice,
8894
+ glossary_items: slice.glossary_items.data
8895
+ }
8896
+ },
8897
+ `${slice.__component}-${slice.id}`
8898
+ );
8899
+ case "sections.customer-stories":
8900
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
8901
+ CustomerStories_default,
8902
+ {
8903
+ slice: {
8904
+ ...slice,
8905
+ customer_stories: slice.customer_stories.data
8906
+ },
8907
+ customerStories
8908
+ },
8909
+ `${slice.__component}-${slice.id}`
8910
+ );
8911
+ case "sections.comparison":
8912
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
8913
+ Comparison_default,
8914
+ {
8915
+ slice
8916
+ },
8917
+ `${slice.__component}-${slice.id}`
8918
+ );
8919
+ case "sections.timeline":
8920
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Timeline_default, { slice }, `${slice.__component}-${slice.id}`);
8921
+ case "sections.carousel-marquee-banner":
8922
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
8923
+ CarouselMarqueeBanner_default,
8924
+ {
8925
+ slice
8926
+ },
8927
+ `${slice.__component}-${slice.id}`
8928
+ );
8929
+ case "sections.events":
8930
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Events_default, { slice }, `${slice.__component}-${slice.id}`);
8931
+ case "sections.redirect":
8932
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Redirect_default, { slice }, `${slice.__component}-${slice.id}`);
8933
+ default:
8934
+ if (CustomSlice) {
8935
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
8936
+ CustomSlice,
8937
+ {
8938
+ id: slice.__component,
8939
+ slice
8940
+ },
8941
+ `${slice.__component}-${slice.id}`
8942
+ );
8884
8943
  }
8885
- },
8886
- `${slice.__component}-${slice.id}`
8887
- );
8888
- case "sections.customer-stories":
8889
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
8890
- CustomerStories_default,
8891
- {
8892
- slice: {
8893
- ...slice,
8894
- customer_stories: slice.customer_stories.data
8895
- },
8896
- customerStories
8897
- },
8898
- `${slice.__component}-${slice.id}`
8899
- );
8900
- case "sections.comparison":
8901
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
8902
- Comparison_default,
8903
- {
8904
- slice
8905
- },
8906
- `${slice.__component}-${slice.id}`
8907
- );
8908
- case "sections.timeline":
8909
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Timeline_default, { slice }, `${slice.__component}-${slice.id}`);
8910
- case "sections.carousel-marquee-banner":
8911
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
8912
- CarouselMarqueeBanner_default,
8913
- {
8914
- slice
8915
- },
8916
- `${slice.__component}-${slice.id}`
8917
- );
8918
- case "sections.events":
8919
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Events_default, { slice }, `${slice.__component}-${slice.id}`);
8920
- case "sections.redirect":
8921
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Redirect_default, { slice }, `${slice.__component}-${slice.id}`);
8922
- default:
8923
- if (CustomSlice) {
8924
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
8925
- CustomSlice,
8926
- {
8927
- id: slice.__component,
8928
- slice
8929
- },
8930
- `${slice.__component}-${slice.id}`
8931
- );
8944
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { children: "Slice component not supported" }, `${slice.__component}-${slice.id}`);
8932
8945
  }
8933
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { children: "Slice component not supported" }, `${slice.__component}-${slice.id}`);
8946
+ })
8934
8947
  }
8935
- }) });
8948
+ );
8936
8949
  //# sourceMappingURL=index.cjs.map