@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/index.d.ts CHANGED
@@ -44,6 +44,7 @@ import Locale from './models/Locale';
44
44
  import PageMetadata from './models/PageMetadata';
45
45
  import PageProps from './models/PageProps';
46
46
  import PortfolioProject from './models/PortfolioProject';
47
+ import FontsCustomization from './constants/fontCustomizations';
47
48
  import getAllSlugsFromStrapi from './integrations/strapi/getAllSlugsFromStrapi';
48
49
  import getPortfolioProjects from './integrations/strapi/getPortfolioProjects';
49
50
  import getStrapiCollectionType from './integrations/strapi/getStrapiCollectionType';
@@ -58,5 +59,5 @@ export { PreviewAlert } from './components/PreviewAlert';
58
59
  export { SEOTags } from './components/SEOTags';
59
60
  export { SliceRenderer } from './components/SliceRenderer';
60
61
  export { mergeGlobalAndStrapiBlogPostData, mergeGlobalAndStrapiCustomerStoryData, mergeGlobalAndStrapiPageData, mergeGlobalAndStrapiProjectData, strapiLinkUrl, strapiMediaUrl, getAllSlugsFromStrapi, getPortfolioProjects, getStrapiCollectionType, getStrapiSingleType, };
61
- export type { IStrapi, IStrapiData, IStrapiResponse, StrapiAuthor, StrapiAvatarWithName, StrapiBanner, StrapiBlogPost, StrapiBlogPostProps, StrapiButtonWithVariant, StrapiCategory, StrapiContactArea, StrapiCustomerStory, StrapiCustomerStoryProps, StrapiDefaultHeader, StrapiEvent, StrapiGlobal, StrapiGlossaryItem, StrapiHeroCard, StrapiImage, StrapiImageFormat, StrapiImageWithLink, StrapiLink, StrapiLinkList, StrapiLinkPage, StrapiLinkWithIcon, StrapiLocalization, StrapiMedia, StrapiMetadata, StrapiNavMenu, StrapiPage, StrapiPageProps, StrapiPortfolio, StrapiPortfolioCard, StrapiProject, StrapiProjectCard, StrapiProjectProps, StrapiQuoteCard, StrapiShapesCard, StrapiTextCardWithIcons, StrapiTopBanner, HeaderType, Image, Locale, PageMetadata, PageProps, PortfolioProject, };
62
+ export type { IStrapi, IStrapiData, IStrapiResponse, StrapiAuthor, StrapiAvatarWithName, StrapiBanner, StrapiBlogPost, StrapiBlogPostProps, StrapiButtonWithVariant, StrapiCategory, StrapiContactArea, StrapiCustomerStory, StrapiCustomerStoryProps, StrapiDefaultHeader, StrapiEvent, StrapiGlobal, StrapiGlossaryItem, StrapiHeroCard, StrapiImage, StrapiImageFormat, StrapiImageWithLink, StrapiLink, StrapiLinkList, StrapiLinkPage, StrapiLinkWithIcon, StrapiLocalization, StrapiMedia, StrapiMetadata, StrapiNavMenu, StrapiPage, StrapiPageProps, StrapiPortfolio, StrapiPortfolioCard, StrapiProject, StrapiProjectCard, StrapiProjectProps, StrapiQuoteCard, StrapiShapesCard, StrapiTextCardWithIcons, StrapiTopBanner, HeaderType, Image, Locale, PageMetadata, PageProps, PortfolioProject, FontsCustomization, };
62
63
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,yBAAyB,CAAC;AAC9C,OAAO,WAAW,MAAM,6BAA6B,CAAC;AACtD,OAAO,eAAe,MAAM,iCAAiC,CAAC;AAC9D,OAAO,YAAY,MAAM,8BAA8B,CAAC;AACxD,OAAO,oBAAoB,MAAM,sCAAsC,CAAC;AACxE,OAAO,YAAY,MAAM,8BAA8B,CAAC;AACxD,OAAO,cAAc,MAAM,gCAAgC,CAAC;AAC5D,OAAO,mBAAmB,MAAM,qCAAqC,CAAC;AACtE,OAAO,uBAAuB,MAAM,yCAAyC,CAAC;AAC9E,OAAO,cAAc,MAAM,gCAAgC,CAAC;AAC5D,OAAO,iBAAiB,MAAM,mCAAmC,CAAC;AAClE,OAAO,mBAAmB,MAAM,qCAAqC,CAAC;AACtE,OAAO,wBAAwB,MAAM,0CAA0C,CAAC;AAChF,OAAO,mBAAmB,MAAM,qCAAqC,CAAC;AACtE,OAAO,WAAW,MAAM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AEpD,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAE3D,OAAO,EAEL,gCAAgC,EAChC,qCAAqC,EACrC,4BAA4B,EAC5B,+BAA+B,EAC/B,aAAa,EACb,cAAc,EAGd,qBAAqB,EACrB,oBAAoB,EACpB,uBAAuB,EACvB,mBAAmB,GACpB,CAAC;AAEF,YAAY,EAEV,OAAO,EACP,WAAW,EACX,eAAe,EACf,YAAY,EACZ,oBAAoB,EACpB,YAAY,EACZ,cAAc,EACd,mBAAmB,EACnB,uBAAuB,EACvB,cAAc,EACd,iBAAiB,EACjB,mBAAmB,EACnB,wBAAwB,EACxB,mBAAmB,EACnB,WAAW,EACX,YAAY,EACZ,kBAAkB,EAClB,cAAc,EACd,WAAW,EACX,iBAAiB,EACjB,mBAAmB,EACnB,UAAU,EACV,cAAc,EACd,cAAc,EACd,kBAAkB,EAClB,kBAAkB,EAClB,WAAW,EACX,cAAc,EACd,aAAa,EACb,UAAU,EACV,eAAe,EACf,eAAe,EACf,mBAAmB,EACnB,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,eAAe,EACf,gBAAgB,EAChB,uBAAuB,EACvB,eAAe,EAGf,UAAU,EACV,KAAK,EACL,MAAM,EACN,YAAY,EACZ,SAAS,EACT,gBAAgB,EAGhB,kBAAkB,GACnB,CAAC"}
package/dist/index.js CHANGED
@@ -1395,7 +1395,9 @@ var IntlContext = createContext(intlFactory("en"));
1395
1395
  var ContextProvider = ({
1396
1396
  children,
1397
1397
  locale,
1398
- analyticsFunction
1398
+ analyticsFunction,
1399
+ colors: colors2,
1400
+ fonts
1399
1401
  }) => {
1400
1402
  const fetcher = async (resource, init) => {
1401
1403
  const response = await strapiClient_default.get(`${resource}`, {
@@ -1423,7 +1425,7 @@ var ContextProvider = ({
1423
1425
  },
1424
1426
  children: [
1425
1427
  /* @__PURE__ */ jsx6(Global, { styles: { GLOBAL_STYLE } }),
1426
- /* @__PURE__ */ jsx6(BoemlyThemeProvider, { fonts: FONT_CUSTOMIZATIONS, children: /* @__PURE__ */ jsx6(IntlContext.Provider, { value: intlFactory(locale), children: /* @__PURE__ */ jsx6(AnalyticsContext.Provider, { value: analyticsFunction, children }) }) })
1428
+ /* @__PURE__ */ jsx6(BoemlyThemeProvider, { fonts: fonts || FONT_CUSTOMIZATIONS, colors: colors2, children: /* @__PURE__ */ jsx6(IntlContext.Provider, { value: intlFactory(locale), children: /* @__PURE__ */ jsx6(AnalyticsContext.Provider, { value: analyticsFunction, children }) }) })
1427
1429
  ]
1428
1430
  }
1429
1431
  ) });
@@ -7904,11 +7906,10 @@ import {
7904
7906
  BoemlyTag as BoemlyTag4
7905
7907
  } from "boemly";
7906
7908
  import Image33 from "next/image.js";
7907
- import { IntlContext as IntlContext2 } from "react-intl";
7908
7909
  import { useState as useState10 } from "react";
7909
7910
  import { Fragment as Fragment29, jsx as jsx54, jsxs as jsxs45 } from "react/jsx-runtime";
7910
7911
  var Timeline = ({ slice }) => {
7911
- const { formatMessage } = useContext22(IntlContext2);
7912
+ const { formatMessage } = useContext22(IntlContext);
7912
7913
  const [visibleItems, setVisibleItems] = useState10(3);
7913
7914
  const [mobile] = useMediaQuery8([BREAKPOINT_MD_QUERY]);
7914
7915
  const [isOpen, setIsOpen] = useState10(false);
@@ -8980,275 +8981,286 @@ var SliceRenderer = ({
8980
8981
  projects,
8981
8982
  customerStories,
8982
8983
  locale = "en",
8984
+ colors: colors2,
8985
+ fonts,
8983
8986
  CustomSlice,
8984
8987
  analyticsFunction
8985
- }) => /* @__PURE__ */ jsx58(ContextProvider, { locale, analyticsFunction, children: slices.map((slice) => {
8986
- switch (slice.__component) {
8987
- case "sections.hero":
8988
- return /* @__PURE__ */ jsx58(Hero_default, { slice }, `${slice.__component}-${slice.id}`);
8989
- case "sections.map-hero":
8990
- return /* @__PURE__ */ jsx58(MapHero_default, { slice }, `${slice.__component}-${slice.id}`);
8991
- case "sections.rich-text":
8992
- return /* @__PURE__ */ jsx58(
8993
- RichTextSection_default,
8994
- {
8995
- slice
8996
- },
8997
- `${slice.__component}-${slice.id}`
8998
- );
8999
- case "sections.left-text-right-card":
9000
- return /* @__PURE__ */ jsx58(
9001
- LeftTextRightCard_default,
9002
- {
9003
- slice
9004
- },
9005
- `${slice.__component}-${slice.id}`
9006
- );
9007
- case "sections.text-with-card":
9008
- return /* @__PURE__ */ jsx58(
9009
- TextWithCard_default,
9010
- {
9011
- slice,
9012
- projects
9013
- },
9014
- `${slice.__component}-${slice.id}`
9015
- );
9016
- case "sections.logo-grid-with-text":
9017
- return /* @__PURE__ */ jsx58(
9018
- LogoGridWithText_default,
9019
- {
9020
- slice
9021
- },
9022
- `${slice.__component}-${slice.id}`
9023
- );
9024
- case "sections.quote-cards":
9025
- return /* @__PURE__ */ jsx58(
9026
- QuoteCards_default,
9027
- {
9028
- slice
9029
- },
9030
- `${slice.__component}-${slice.id}`
9031
- );
9032
- case "sections.q-and-a":
9033
- return /* @__PURE__ */ jsx58(QAndA_default, { slice }, `${slice.__component}-${slice.id}`);
9034
- case "sections.image-grid":
9035
- return /* @__PURE__ */ jsx58(ImageGrid_default, { slice }, `${slice.__component}-${slice.id}`);
9036
- case "sections.full-width-image":
9037
- return /* @__PURE__ */ jsx58(
9038
- FullWidthImage_default,
9039
- {
9040
- slice
9041
- },
9042
- `${slice.__component}-${slice.id}`
9043
- );
9044
- case "sections.text-with-text-cards":
9045
- return /* @__PURE__ */ jsx58(
9046
- TextWithTextCards_default,
9047
- {
9048
- slice
9049
- },
9050
- `${slice.__component}-${slice.id}`
9051
- );
9052
- case "sections.text-card-grid":
9053
- return /* @__PURE__ */ jsx58(
9054
- TextCardGrid_default,
9055
- {
9056
- slice
9057
- },
9058
- `${slice.__component}-${slice.id}`
9059
- );
9060
- case "sections.icon-grid":
9061
- return /* @__PURE__ */ jsx58(IconGrid_default, { slice }, `${slice.__component}-${slice.id}`);
9062
- case "sections.image-text-sequence":
9063
- return /* @__PURE__ */ jsx58(
9064
- ImageTextSequence_default,
9065
- {
9066
- slice
9067
- },
9068
- `${slice.__component}-${slice.id}`
9069
- );
9070
- case "sections.steps":
9071
- return /* @__PURE__ */ jsx58(Steps_default, { slice }, `${slice.__component}-${slice.id}`);
9072
- case "sections.text-carousel":
9073
- return /* @__PURE__ */ jsx58(
9074
- TextCarousel_default,
9075
- {
9076
- slice
9077
- },
9078
- `${slice.__component}-${slice.id}`
9079
- );
9080
- case "sections.link-cards-grid":
9081
- return /* @__PURE__ */ jsx58(
9082
- LinkCardsGrid_default,
9083
- {
9084
- slice
9085
- },
9086
- `${slice.__component}-${slice.id}`
9087
- );
9088
- case "sections.small-hero":
9089
- return /* @__PURE__ */ jsx58(
9090
- SmallHero_default,
9091
- {
9092
- slice,
9093
- theme: "dark"
9094
- },
9095
- `${slice.__component}-${slice.id}`
9096
- );
9097
- case "sections.small-hero-light":
9098
- return /* @__PURE__ */ jsx58(
9099
- SmallHero_default,
9100
- {
9101
- slice,
9102
- theme: "light"
9103
- },
9104
- `${slice.__component}-${slice.id}`
9105
- );
9106
- case "sections.project-facts":
9107
- return /* @__PURE__ */ jsx58(
9108
- ProjectFacts_default,
9109
- {
9110
- slice,
9111
- project: projects.find((p) => p.id === slice.projectId)
9112
- },
9113
- `${slice.__component}-${slice.id}`
9114
- );
9115
- case "sections.projects-grid":
9116
- return /* @__PURE__ */ jsx58(
9117
- ProjectsGrid_default,
9118
- {
9119
- slice,
9120
- projects
9121
- },
9122
- `${slice.__component}-${slice.id}`
9123
- );
9124
- case "sections.projects-map":
9125
- return /* @__PURE__ */ jsx58(
9126
- ProjectsMap_default,
9127
- {
9128
- slice
9129
- },
9130
- `${slice.__component}-${slice.id}`
9131
- );
9132
- case "sections.video":
9133
- return /* @__PURE__ */ jsx58(Video_default, { slice }, `${slice.__component}-${slice.id}`);
9134
- case "sections.full-width-highlight-quote":
9135
- return /* @__PURE__ */ jsx58(
9136
- FullWidthHighlightQuote_default,
9137
- {
9138
- slice
9139
- },
9140
- `${slice.__component}-${slice.id}`
9141
- );
9142
- case "sections.full-width-image-slider":
9143
- return /* @__PURE__ */ jsx58(
9144
- FullWidthImageSlider_default,
9145
- {
9146
- slice
9147
- },
9148
- `${slice.__component}-${slice.id}`
9149
- );
9150
- case "sections.side-by-side-images":
9151
- return /* @__PURE__ */ jsx58(
9152
- SideBySideImages_default,
9153
- {
9154
- slice
9155
- },
9156
- `${slice.__component}-${slice.id}`
9157
- );
9158
- case "sections.cta-only":
9159
- return /* @__PURE__ */ jsx58(CtaOnly_default, { slice }, `${slice.__component}-${slice.id}`);
9160
- case "sections.cta":
9161
- return /* @__PURE__ */ jsx58(Cta_default, { slice }, `${slice.__component}-${slice.id}`);
9162
- case "sections.shop-checkout":
9163
- return /* @__PURE__ */ jsx58(
9164
- ShopCheckout_default,
9165
- {
9166
- slice
9167
- },
9168
- `${slice.__component}-${slice.id}`
9169
- );
9170
- case "sections.facts":
9171
- return /* @__PURE__ */ jsx58(Facts_default, { slice }, `${slice.__component}-${slice.id}`);
9172
- case "sections.blog-cards":
9173
- return /* @__PURE__ */ jsx58(
9174
- BlogCards_default,
9175
- {
9176
- slice,
9177
- blogPosts
9178
- },
9179
- `${slice.__component}-${slice.id}`
9180
- );
9181
- case "sections.blog":
9182
- return /* @__PURE__ */ jsx58(
9183
- Blog_default,
9184
- {
9185
- slice: {
9186
- ...slice,
9187
- blog_posts: slice.blog_posts.data
9188
- },
9189
- blogPosts
9190
- },
9191
- `${slice.__component}-${slice.id}`
9192
- );
9193
- case "sections.glossary":
9194
- return /* @__PURE__ */ jsx58(
9195
- Glossary_default,
9196
- {
9197
- slice: {
9198
- ...slice,
9199
- glossary_items: slice.glossary_items.data
8988
+ }) => /* @__PURE__ */ jsx58(
8989
+ ContextProvider,
8990
+ {
8991
+ locale,
8992
+ analyticsFunction,
8993
+ colors: colors2,
8994
+ fonts,
8995
+ children: slices.map((slice) => {
8996
+ switch (slice.__component) {
8997
+ case "sections.hero":
8998
+ return /* @__PURE__ */ jsx58(Hero_default, { slice }, `${slice.__component}-${slice.id}`);
8999
+ case "sections.map-hero":
9000
+ return /* @__PURE__ */ jsx58(MapHero_default, { slice }, `${slice.__component}-${slice.id}`);
9001
+ case "sections.rich-text":
9002
+ return /* @__PURE__ */ jsx58(
9003
+ RichTextSection_default,
9004
+ {
9005
+ slice
9006
+ },
9007
+ `${slice.__component}-${slice.id}`
9008
+ );
9009
+ case "sections.left-text-right-card":
9010
+ return /* @__PURE__ */ jsx58(
9011
+ LeftTextRightCard_default,
9012
+ {
9013
+ slice
9014
+ },
9015
+ `${slice.__component}-${slice.id}`
9016
+ );
9017
+ case "sections.text-with-card":
9018
+ return /* @__PURE__ */ jsx58(
9019
+ TextWithCard_default,
9020
+ {
9021
+ slice,
9022
+ projects
9023
+ },
9024
+ `${slice.__component}-${slice.id}`
9025
+ );
9026
+ case "sections.logo-grid-with-text":
9027
+ return /* @__PURE__ */ jsx58(
9028
+ LogoGridWithText_default,
9029
+ {
9030
+ slice
9031
+ },
9032
+ `${slice.__component}-${slice.id}`
9033
+ );
9034
+ case "sections.quote-cards":
9035
+ return /* @__PURE__ */ jsx58(
9036
+ QuoteCards_default,
9037
+ {
9038
+ slice
9039
+ },
9040
+ `${slice.__component}-${slice.id}`
9041
+ );
9042
+ case "sections.q-and-a":
9043
+ return /* @__PURE__ */ jsx58(QAndA_default, { slice }, `${slice.__component}-${slice.id}`);
9044
+ case "sections.image-grid":
9045
+ return /* @__PURE__ */ jsx58(ImageGrid_default, { slice }, `${slice.__component}-${slice.id}`);
9046
+ case "sections.full-width-image":
9047
+ return /* @__PURE__ */ jsx58(
9048
+ FullWidthImage_default,
9049
+ {
9050
+ slice
9051
+ },
9052
+ `${slice.__component}-${slice.id}`
9053
+ );
9054
+ case "sections.text-with-text-cards":
9055
+ return /* @__PURE__ */ jsx58(
9056
+ TextWithTextCards_default,
9057
+ {
9058
+ slice
9059
+ },
9060
+ `${slice.__component}-${slice.id}`
9061
+ );
9062
+ case "sections.text-card-grid":
9063
+ return /* @__PURE__ */ jsx58(
9064
+ TextCardGrid_default,
9065
+ {
9066
+ slice
9067
+ },
9068
+ `${slice.__component}-${slice.id}`
9069
+ );
9070
+ case "sections.icon-grid":
9071
+ return /* @__PURE__ */ jsx58(IconGrid_default, { slice }, `${slice.__component}-${slice.id}`);
9072
+ case "sections.image-text-sequence":
9073
+ return /* @__PURE__ */ jsx58(
9074
+ ImageTextSequence_default,
9075
+ {
9076
+ slice
9077
+ },
9078
+ `${slice.__component}-${slice.id}`
9079
+ );
9080
+ case "sections.steps":
9081
+ return /* @__PURE__ */ jsx58(Steps_default, { slice }, `${slice.__component}-${slice.id}`);
9082
+ case "sections.text-carousel":
9083
+ return /* @__PURE__ */ jsx58(
9084
+ TextCarousel_default,
9085
+ {
9086
+ slice
9087
+ },
9088
+ `${slice.__component}-${slice.id}`
9089
+ );
9090
+ case "sections.link-cards-grid":
9091
+ return /* @__PURE__ */ jsx58(
9092
+ LinkCardsGrid_default,
9093
+ {
9094
+ slice
9095
+ },
9096
+ `${slice.__component}-${slice.id}`
9097
+ );
9098
+ case "sections.small-hero":
9099
+ return /* @__PURE__ */ jsx58(
9100
+ SmallHero_default,
9101
+ {
9102
+ slice,
9103
+ theme: "dark"
9104
+ },
9105
+ `${slice.__component}-${slice.id}`
9106
+ );
9107
+ case "sections.small-hero-light":
9108
+ return /* @__PURE__ */ jsx58(
9109
+ SmallHero_default,
9110
+ {
9111
+ slice,
9112
+ theme: "light"
9113
+ },
9114
+ `${slice.__component}-${slice.id}`
9115
+ );
9116
+ case "sections.project-facts":
9117
+ return /* @__PURE__ */ jsx58(
9118
+ ProjectFacts_default,
9119
+ {
9120
+ slice,
9121
+ project: projects.find((p) => p.id === slice.projectId)
9122
+ },
9123
+ `${slice.__component}-${slice.id}`
9124
+ );
9125
+ case "sections.projects-grid":
9126
+ return /* @__PURE__ */ jsx58(
9127
+ ProjectsGrid_default,
9128
+ {
9129
+ slice,
9130
+ projects
9131
+ },
9132
+ `${slice.__component}-${slice.id}`
9133
+ );
9134
+ case "sections.projects-map":
9135
+ return /* @__PURE__ */ jsx58(
9136
+ ProjectsMap_default,
9137
+ {
9138
+ slice
9139
+ },
9140
+ `${slice.__component}-${slice.id}`
9141
+ );
9142
+ case "sections.video":
9143
+ return /* @__PURE__ */ jsx58(Video_default, { slice }, `${slice.__component}-${slice.id}`);
9144
+ case "sections.full-width-highlight-quote":
9145
+ return /* @__PURE__ */ jsx58(
9146
+ FullWidthHighlightQuote_default,
9147
+ {
9148
+ slice
9149
+ },
9150
+ `${slice.__component}-${slice.id}`
9151
+ );
9152
+ case "sections.full-width-image-slider":
9153
+ return /* @__PURE__ */ jsx58(
9154
+ FullWidthImageSlider_default,
9155
+ {
9156
+ slice
9157
+ },
9158
+ `${slice.__component}-${slice.id}`
9159
+ );
9160
+ case "sections.side-by-side-images":
9161
+ return /* @__PURE__ */ jsx58(
9162
+ SideBySideImages_default,
9163
+ {
9164
+ slice
9165
+ },
9166
+ `${slice.__component}-${slice.id}`
9167
+ );
9168
+ case "sections.cta-only":
9169
+ return /* @__PURE__ */ jsx58(CtaOnly_default, { slice }, `${slice.__component}-${slice.id}`);
9170
+ case "sections.cta":
9171
+ return /* @__PURE__ */ jsx58(Cta_default, { slice }, `${slice.__component}-${slice.id}`);
9172
+ case "sections.shop-checkout":
9173
+ return /* @__PURE__ */ jsx58(
9174
+ ShopCheckout_default,
9175
+ {
9176
+ slice
9177
+ },
9178
+ `${slice.__component}-${slice.id}`
9179
+ );
9180
+ case "sections.facts":
9181
+ return /* @__PURE__ */ jsx58(Facts_default, { slice }, `${slice.__component}-${slice.id}`);
9182
+ case "sections.blog-cards":
9183
+ return /* @__PURE__ */ jsx58(
9184
+ BlogCards_default,
9185
+ {
9186
+ slice,
9187
+ blogPosts
9188
+ },
9189
+ `${slice.__component}-${slice.id}`
9190
+ );
9191
+ case "sections.blog":
9192
+ return /* @__PURE__ */ jsx58(
9193
+ Blog_default,
9194
+ {
9195
+ slice: {
9196
+ ...slice,
9197
+ blog_posts: slice.blog_posts.data
9198
+ },
9199
+ blogPosts
9200
+ },
9201
+ `${slice.__component}-${slice.id}`
9202
+ );
9203
+ case "sections.glossary":
9204
+ return /* @__PURE__ */ jsx58(
9205
+ Glossary_default,
9206
+ {
9207
+ slice: {
9208
+ ...slice,
9209
+ glossary_items: slice.glossary_items.data
9210
+ }
9211
+ },
9212
+ `${slice.__component}-${slice.id}`
9213
+ );
9214
+ case "sections.customer-stories":
9215
+ return /* @__PURE__ */ jsx58(
9216
+ CustomerStories_default,
9217
+ {
9218
+ slice: {
9219
+ ...slice,
9220
+ customer_stories: slice.customer_stories.data
9221
+ },
9222
+ customerStories
9223
+ },
9224
+ `${slice.__component}-${slice.id}`
9225
+ );
9226
+ case "sections.comparison":
9227
+ return /* @__PURE__ */ jsx58(
9228
+ Comparison_default,
9229
+ {
9230
+ slice
9231
+ },
9232
+ `${slice.__component}-${slice.id}`
9233
+ );
9234
+ case "sections.timeline":
9235
+ return /* @__PURE__ */ jsx58(Timeline_default, { slice }, `${slice.__component}-${slice.id}`);
9236
+ case "sections.carousel-marquee-banner":
9237
+ return /* @__PURE__ */ jsx58(
9238
+ CarouselMarqueeBanner_default,
9239
+ {
9240
+ slice
9241
+ },
9242
+ `${slice.__component}-${slice.id}`
9243
+ );
9244
+ case "sections.events":
9245
+ return /* @__PURE__ */ jsx58(Events_default, { slice }, `${slice.__component}-${slice.id}`);
9246
+ case "sections.redirect":
9247
+ return /* @__PURE__ */ jsx58(Redirect_default, { slice }, `${slice.__component}-${slice.id}`);
9248
+ default:
9249
+ if (CustomSlice) {
9250
+ return /* @__PURE__ */ jsx58(
9251
+ CustomSlice,
9252
+ {
9253
+ id: slice.__component,
9254
+ slice
9255
+ },
9256
+ `${slice.__component}-${slice.id}`
9257
+ );
9200
9258
  }
9201
- },
9202
- `${slice.__component}-${slice.id}`
9203
- );
9204
- case "sections.customer-stories":
9205
- return /* @__PURE__ */ jsx58(
9206
- CustomerStories_default,
9207
- {
9208
- slice: {
9209
- ...slice,
9210
- customer_stories: slice.customer_stories.data
9211
- },
9212
- customerStories
9213
- },
9214
- `${slice.__component}-${slice.id}`
9215
- );
9216
- case "sections.comparison":
9217
- return /* @__PURE__ */ jsx58(
9218
- Comparison_default,
9219
- {
9220
- slice
9221
- },
9222
- `${slice.__component}-${slice.id}`
9223
- );
9224
- case "sections.timeline":
9225
- return /* @__PURE__ */ jsx58(Timeline_default, { slice }, `${slice.__component}-${slice.id}`);
9226
- case "sections.carousel-marquee-banner":
9227
- return /* @__PURE__ */ jsx58(
9228
- CarouselMarqueeBanner_default,
9229
- {
9230
- slice
9231
- },
9232
- `${slice.__component}-${slice.id}`
9233
- );
9234
- case "sections.events":
9235
- return /* @__PURE__ */ jsx58(Events_default, { slice }, `${slice.__component}-${slice.id}`);
9236
- case "sections.redirect":
9237
- return /* @__PURE__ */ jsx58(Redirect_default, { slice }, `${slice.__component}-${slice.id}`);
9238
- default:
9239
- if (CustomSlice) {
9240
- return /* @__PURE__ */ jsx58(
9241
- CustomSlice,
9242
- {
9243
- id: slice.__component,
9244
- slice
9245
- },
9246
- `${slice.__component}-${slice.id}`
9247
- );
9259
+ return /* @__PURE__ */ jsx58("div", { children: "Slice component not supported" }, `${slice.__component}-${slice.id}`);
9248
9260
  }
9249
- return /* @__PURE__ */ jsx58("div", { children: "Slice component not supported" }, `${slice.__component}-${slice.id}`);
9261
+ })
9250
9262
  }
9251
- }) });
9263
+ );
9252
9264
  export {
9253
9265
  PreviewAlert,
9254
9266
  SEOTags,