-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature/change storyblok types to generated ones (#30)
* change storyblok types to generated ones * commit * add pricing generated types
- Loading branch information
1 parent
2c7334d
commit 15c9289
Showing
31 changed files
with
1,005 additions
and
781 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,5 @@ | ||
import type { IImage } from "@/lib/adapters/prepareImageProps"; | ||
import type { ILinkBlok } from "@/lib/adapters/prepareLinkProps"; | ||
import type { IRichText } from "@/lib/adapters/prepareRichTextProps"; | ||
import type { ISectionContainer } from "@/components/SectionContainer/types"; | ||
|
||
interface IFooter extends ISectionContainer { | ||
links: ILinkBlok[]; | ||
text: IRichText[]; | ||
image: IImage[]; | ||
copywriteText?: string; | ||
} | ||
import type { FooterStoryblok } from "@/generated/extracted-types"; | ||
|
||
export interface IFooterProps { | ||
blok: IFooter; | ||
blok: FooterStoryblok; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,5 @@ | ||
import type { AlignVariant } from "@shared/ui/components/sections/header/types"; | ||
|
||
import type { IImage } from "@/lib/adapters/prepareImageProps"; | ||
import type { ILinkBlok } from "@/lib/adapters/prepareLinkProps"; | ||
import type { ISectionContainer } from "@/components/SectionContainer/types"; | ||
|
||
interface IHeader extends ISectionContainer { | ||
links: ILinkBlok[]; | ||
alignVariant: AlignVariant; | ||
image: IImage[]; | ||
} | ||
import type { HeaderStoryblok } from "@/generated/extracted-types"; | ||
|
||
export interface IHeaderProps { | ||
blok: IHeader; | ||
blok: HeaderStoryblok; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,5 @@ | ||
import type { SbBlokData } from "@storyblok/react/rsc"; | ||
|
||
interface IPageContainer extends SbBlokData { | ||
sections: SbBlokData[]; | ||
header: string; | ||
showCookieBanner: boolean; | ||
} | ||
import type { PageStoryblok } from "@/generated/extracted-types"; | ||
|
||
export interface IPageContainerProps { | ||
blok: IPageContainer; | ||
blok: PageStoryblok; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,5 @@ | ||
import type { BlogStyle } from "@shared/ui/components/sections/blog/types"; | ||
import type { SbBlokData } from "@storyblok/react/rsc"; | ||
|
||
import type { IImage } from "@/lib/adapters/prepareImageProps"; | ||
import type { ILinkBlok } from "@/lib/adapters/prepareLinkProps"; | ||
import type { IRichText } from "@/lib/adapters/prepareRichTextProps"; | ||
import type { ISectionContainer } from "@/components/SectionContainer/types"; | ||
|
||
interface IBlogPost extends SbBlokData { | ||
date: string; | ||
image: IImage[]; | ||
link: ILinkBlok[]; | ||
text: IRichText[]; | ||
} | ||
|
||
interface IBlog extends ISectionContainer { | ||
text: IRichText[]; | ||
posts: IBlogPost[]; | ||
style: BlogStyle; | ||
} | ||
import type { BlogStoryblok } from "@/generated/extracted-types"; | ||
|
||
export interface IBlogProps { | ||
blok: IBlog; | ||
blok: BlogStoryblok; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,5 @@ | ||
import type { DefaultCardStyle } from "@shared/ui/components/sections/cardsGrid/types"; | ||
import type { SbBlokData } from "@storyblok/react/rsc"; | ||
|
||
import type { IImage } from "@/lib/adapters/prepareImageProps"; | ||
import type { ILinkBlok } from "@/lib/adapters/prepareLinkProps"; | ||
import type { ISectionContainer } from "@/components/SectionContainer/types"; | ||
|
||
interface IDefaultCard extends SbBlokData { | ||
title: string; | ||
description: string; | ||
image: IImage[]; | ||
link: ILinkBlok[]; | ||
style: DefaultCardStyle; | ||
} | ||
|
||
interface ICardsGrid extends ISectionContainer { | ||
items: IDefaultCard[]; | ||
columns: string; | ||
} | ||
import type { CardsGridStoryblok } from "@/generated/extracted-types"; | ||
|
||
export interface ICardsGridProps { | ||
blok: ICardsGrid; | ||
blok: CardsGridStoryblok; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,5 @@ | ||
import type { IRichText } from "@/lib/adapters/prepareRichTextProps"; | ||
import type { ISectionContainer } from "@/components/SectionContainer/types"; | ||
|
||
interface ICopy extends ISectionContainer { | ||
columns: IRichText[]; | ||
isReversedOnMobile: boolean; | ||
} | ||
import type { CopyStoryblok } from "@/generated/extracted-types"; | ||
|
||
export interface ICopyProps { | ||
blok: ICopy; | ||
blok: CopyStoryblok; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,5 @@ | ||
import type { IImage } from "@/lib/adapters/prepareImageProps"; | ||
import type { ILinkBlok } from "@/lib/adapters/prepareLinkProps"; | ||
import type { IRichText } from "@/lib/adapters/prepareRichTextProps"; | ||
import type { ISectionContainer } from "@/components/SectionContainer/types"; | ||
|
||
export interface IHero extends ISectionContainer { | ||
title: string; | ||
text: IRichText[]; | ||
image: IImage[]; | ||
links: ILinkBlok[]; | ||
} | ||
import type { HeroStoryblok } from "@/generated/extracted-types"; | ||
|
||
export interface IHeroProps { | ||
blok: IHero; | ||
blok: HeroStoryblok; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,5 @@ | ||
import type { AlignVariant } from "@shared/ui/components/sections/linksList/types"; | ||
|
||
import type { ILinkBlok } from "@/lib/adapters/prepareLinkProps"; | ||
import type { ISectionContainer } from "@/components/SectionContainer/types"; | ||
|
||
interface ILinksLink extends ISectionContainer { | ||
alignVariant: AlignVariant; | ||
links: ILinkBlok[]; | ||
} | ||
import type { LinksListStoryblok } from "@/generated/extracted-types"; | ||
|
||
export interface ILinksLinkProps { | ||
blok: ILinksLink; | ||
blok: LinksListStoryblok; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,5 @@ | ||
import type { AlignVariant } from "@shared/ui/components/sections/logos/types"; | ||
|
||
import type { IImage } from "@/lib/adapters/prepareImageProps"; | ||
import type { ILinkBlok } from "@/lib/adapters/prepareLinkProps"; | ||
import type { ISectionContainer } from "@/components/SectionContainer/types"; | ||
|
||
interface ILogoItem { | ||
image: IImage[]; | ||
link: ILinkBlok[]; | ||
type: "logo" | "clickableLogo"; | ||
} | ||
|
||
export interface ILogos extends ISectionContainer { | ||
items: ILogoItem[]; | ||
alignVariant: AlignVariant; | ||
} | ||
import type { LogosStoryblok } from "@/generated/extracted-types"; | ||
|
||
export interface ILogosProps { | ||
blok: ILogos; | ||
blok: LogosStoryblok; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,5 @@ | ||
import type { IImage } from "@/lib/adapters/prepareImageProps"; | ||
import type { ILinkBlok } from "@/lib/adapters/prepareLinkProps"; | ||
import type { ISectionContainer } from "@/components/SectionContainer/types"; | ||
|
||
export interface IPricingTier { | ||
name: string; | ||
icon: IImage[]; | ||
price?: string; | ||
description: string; | ||
features: { text: string }[]; | ||
link: ILinkBlok[]; | ||
popular?: boolean; | ||
} | ||
|
||
export interface IPricing extends ISectionContainer { | ||
tiers: IPricingTier[]; | ||
extraServiceEnabled?: boolean; | ||
yearlyDiscountPercentage: string; | ||
extraService?: { | ||
text: string; | ||
cost: string; | ||
}[]; | ||
} | ||
import type { PricingStoryblok } from "@/generated/extracted-types"; | ||
|
||
export interface IPricingProps { | ||
blok: IPricing; | ||
blok: PricingStoryblok; | ||
} |
Oops, something went wrong.