@treely/strapi-slices 8.0.2 → 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.
- package/dist/components/ContextProvider/ContextProvider.d.ts +3 -0
- package/dist/components/ContextProvider/ContextProvider.d.ts.map +1 -1
- package/dist/components/SliceRenderer/SliceRenderer.d.ts +4 -1
- package/dist/components/SliceRenderer/SliceRenderer.d.ts.map +1 -1
- package/dist/index.cjs +280 -268
- package/dist/index.cjs.map +3 -3
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +280 -268
- package/dist/index.js.map +3 -3
- package/package.json +1 -1
|
@@ -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;
|
|
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;
|
|
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
|
) });
|
|
@@ -7635,11 +7637,10 @@ var CarouselMarqueeBanner_default = CarouselMarqueeBanner;
|
|
|
7635
7637
|
var import_react51 = require("react");
|
|
7636
7638
|
var import_boemly55 = require("boemly");
|
|
7637
7639
|
var import_image32 = __toESM(require("next/image"), 1);
|
|
7638
|
-
var import_react_intl2 = require("react-intl");
|
|
7639
7640
|
var import_react52 = require("react");
|
|
7640
7641
|
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
7641
7642
|
var Timeline = ({ slice }) => {
|
|
7642
|
-
const { formatMessage } = (0, import_react51.useContext)(
|
|
7643
|
+
const { formatMessage } = (0, import_react51.useContext)(IntlContext);
|
|
7643
7644
|
const [visibleItems, setVisibleItems] = (0, import_react52.useState)(3);
|
|
7644
7645
|
const [mobile] = (0, import_boemly55.useMediaQuery)([BREAKPOINT_MD_QUERY]);
|
|
7645
7646
|
const [isOpen, setIsOpen] = (0, import_react52.useState)(false);
|
|
@@ -8665,273 +8666,284 @@ var SliceRenderer = ({
|
|
|
8665
8666
|
projects,
|
|
8666
8667
|
customerStories,
|
|
8667
8668
|
locale = "en",
|
|
8669
|
+
colors: colors2,
|
|
8670
|
+
fonts,
|
|
8668
8671
|
CustomSlice,
|
|
8669
8672
|
analyticsFunction
|
|
8670
|
-
}) => /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
8671
|
-
|
|
8672
|
-
|
|
8673
|
-
|
|
8674
|
-
|
|
8675
|
-
|
|
8676
|
-
|
|
8677
|
-
|
|
8678
|
-
|
|
8679
|
-
|
|
8680
|
-
slice
|
|
8681
|
-
|
|
8682
|
-
|
|
8683
|
-
|
|
8684
|
-
|
|
8685
|
-
|
|
8686
|
-
|
|
8687
|
-
|
|
8688
|
-
|
|
8689
|
-
|
|
8690
|
-
|
|
8691
|
-
|
|
8692
|
-
|
|
8693
|
-
|
|
8694
|
-
|
|
8695
|
-
|
|
8696
|
-
|
|
8697
|
-
|
|
8698
|
-
|
|
8699
|
-
|
|
8700
|
-
|
|
8701
|
-
|
|
8702
|
-
|
|
8703
|
-
|
|
8704
|
-
|
|
8705
|
-
|
|
8706
|
-
|
|
8707
|
-
|
|
8708
|
-
|
|
8709
|
-
|
|
8710
|
-
|
|
8711
|
-
|
|
8712
|
-
|
|
8713
|
-
|
|
8714
|
-
|
|
8715
|
-
|
|
8716
|
-
|
|
8717
|
-
|
|
8718
|
-
|
|
8719
|
-
|
|
8720
|
-
|
|
8721
|
-
|
|
8722
|
-
|
|
8723
|
-
|
|
8724
|
-
|
|
8725
|
-
slice
|
|
8726
|
-
|
|
8727
|
-
|
|
8728
|
-
|
|
8729
|
-
|
|
8730
|
-
|
|
8731
|
-
|
|
8732
|
-
|
|
8733
|
-
|
|
8734
|
-
|
|
8735
|
-
|
|
8736
|
-
|
|
8737
|
-
|
|
8738
|
-
|
|
8739
|
-
|
|
8740
|
-
|
|
8741
|
-
|
|
8742
|
-
|
|
8743
|
-
|
|
8744
|
-
|
|
8745
|
-
|
|
8746
|
-
|
|
8747
|
-
|
|
8748
|
-
|
|
8749
|
-
|
|
8750
|
-
|
|
8751
|
-
|
|
8752
|
-
|
|
8753
|
-
|
|
8754
|
-
|
|
8755
|
-
|
|
8756
|
-
|
|
8757
|
-
|
|
8758
|
-
|
|
8759
|
-
|
|
8760
|
-
|
|
8761
|
-
|
|
8762
|
-
|
|
8763
|
-
|
|
8764
|
-
|
|
8765
|
-
|
|
8766
|
-
|
|
8767
|
-
|
|
8768
|
-
|
|
8769
|
-
|
|
8770
|
-
|
|
8771
|
-
|
|
8772
|
-
|
|
8773
|
-
|
|
8774
|
-
|
|
8775
|
-
|
|
8776
|
-
|
|
8777
|
-
|
|
8778
|
-
|
|
8779
|
-
|
|
8780
|
-
|
|
8781
|
-
|
|
8782
|
-
|
|
8783
|
-
|
|
8784
|
-
|
|
8785
|
-
|
|
8786
|
-
|
|
8787
|
-
|
|
8788
|
-
|
|
8789
|
-
|
|
8790
|
-
|
|
8791
|
-
|
|
8792
|
-
|
|
8793
|
-
|
|
8794
|
-
|
|
8795
|
-
|
|
8796
|
-
|
|
8797
|
-
|
|
8798
|
-
|
|
8799
|
-
|
|
8800
|
-
|
|
8801
|
-
|
|
8802
|
-
|
|
8803
|
-
|
|
8804
|
-
|
|
8805
|
-
|
|
8806
|
-
|
|
8807
|
-
|
|
8808
|
-
|
|
8809
|
-
|
|
8810
|
-
|
|
8811
|
-
|
|
8812
|
-
|
|
8813
|
-
|
|
8814
|
-
|
|
8815
|
-
|
|
8816
|
-
|
|
8817
|
-
|
|
8818
|
-
|
|
8819
|
-
|
|
8820
|
-
|
|
8821
|
-
|
|
8822
|
-
|
|
8823
|
-
|
|
8824
|
-
|
|
8825
|
-
|
|
8826
|
-
|
|
8827
|
-
|
|
8828
|
-
|
|
8829
|
-
|
|
8830
|
-
|
|
8831
|
-
|
|
8832
|
-
|
|
8833
|
-
|
|
8834
|
-
|
|
8835
|
-
|
|
8836
|
-
|
|
8837
|
-
|
|
8838
|
-
|
|
8839
|
-
|
|
8840
|
-
|
|
8841
|
-
|
|
8842
|
-
|
|
8843
|
-
|
|
8844
|
-
|
|
8845
|
-
|
|
8846
|
-
|
|
8847
|
-
|
|
8848
|
-
|
|
8849
|
-
|
|
8850
|
-
|
|
8851
|
-
slice
|
|
8852
|
-
|
|
8853
|
-
|
|
8854
|
-
|
|
8855
|
-
|
|
8856
|
-
|
|
8857
|
-
|
|
8858
|
-
|
|
8859
|
-
|
|
8860
|
-
|
|
8861
|
-
|
|
8862
|
-
|
|
8863
|
-
|
|
8864
|
-
|
|
8865
|
-
|
|
8866
|
-
|
|
8867
|
-
|
|
8868
|
-
|
|
8869
|
-
|
|
8870
|
-
|
|
8871
|
-
|
|
8872
|
-
|
|
8873
|
-
|
|
8874
|
-
|
|
8875
|
-
|
|
8876
|
-
|
|
8877
|
-
|
|
8878
|
-
|
|
8879
|
-
|
|
8880
|
-
|
|
8881
|
-
|
|
8882
|
-
|
|
8883
|
-
|
|
8884
|
-
|
|
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
|
+
);
|
|
8885
8943
|
}
|
|
8886
|
-
|
|
8887
|
-
`${slice.__component}-${slice.id}`
|
|
8888
|
-
);
|
|
8889
|
-
case "sections.customer-stories":
|
|
8890
|
-
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
8891
|
-
CustomerStories_default,
|
|
8892
|
-
{
|
|
8893
|
-
slice: {
|
|
8894
|
-
...slice,
|
|
8895
|
-
customer_stories: slice.customer_stories.data
|
|
8896
|
-
},
|
|
8897
|
-
customerStories
|
|
8898
|
-
},
|
|
8899
|
-
`${slice.__component}-${slice.id}`
|
|
8900
|
-
);
|
|
8901
|
-
case "sections.comparison":
|
|
8902
|
-
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
8903
|
-
Comparison_default,
|
|
8904
|
-
{
|
|
8905
|
-
slice
|
|
8906
|
-
},
|
|
8907
|
-
`${slice.__component}-${slice.id}`
|
|
8908
|
-
);
|
|
8909
|
-
case "sections.timeline":
|
|
8910
|
-
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Timeline_default, { slice }, `${slice.__component}-${slice.id}`);
|
|
8911
|
-
case "sections.carousel-marquee-banner":
|
|
8912
|
-
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
8913
|
-
CarouselMarqueeBanner_default,
|
|
8914
|
-
{
|
|
8915
|
-
slice
|
|
8916
|
-
},
|
|
8917
|
-
`${slice.__component}-${slice.id}`
|
|
8918
|
-
);
|
|
8919
|
-
case "sections.events":
|
|
8920
|
-
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Events_default, { slice }, `${slice.__component}-${slice.id}`);
|
|
8921
|
-
case "sections.redirect":
|
|
8922
|
-
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Redirect_default, { slice }, `${slice.__component}-${slice.id}`);
|
|
8923
|
-
default:
|
|
8924
|
-
if (CustomSlice) {
|
|
8925
|
-
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
8926
|
-
CustomSlice,
|
|
8927
|
-
{
|
|
8928
|
-
id: slice.__component,
|
|
8929
|
-
slice
|
|
8930
|
-
},
|
|
8931
|
-
`${slice.__component}-${slice.id}`
|
|
8932
|
-
);
|
|
8944
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { children: "Slice component not supported" }, `${slice.__component}-${slice.id}`);
|
|
8933
8945
|
}
|
|
8934
|
-
|
|
8946
|
+
})
|
|
8935
8947
|
}
|
|
8936
|
-
|
|
8948
|
+
);
|
|
8937
8949
|
//# sourceMappingURL=index.cjs.map
|