feat(SW-213): Created Text Cols component and added to Blocks in Contentstack
This commit is contained in:
@@ -9,6 +9,7 @@ import {
|
||||
contentPageShortcuts,
|
||||
contentPageSidebarDynamicContent,
|
||||
contentPageSidebarTextContent,
|
||||
contentPageTextCols,
|
||||
loyaltyCardBlock,
|
||||
validateContentPageRefsSchema,
|
||||
validateContentPageSchema,
|
||||
@@ -81,4 +82,22 @@ export type CardsGrid = Omit<CardsGridRaw, "cards"> & {
|
||||
}
|
||||
export type CardsRaw = CardsGrid["cards_grid"]["cards"][number]
|
||||
|
||||
export type Block = RteBlockContent | Shortcuts | CardsGrid | DynamicContent
|
||||
type TextColsRaw = z.infer<typeof contentPageTextCols>
|
||||
export interface TextCols extends TextColsRaw {
|
||||
text_cols: {
|
||||
columns: {
|
||||
title: string
|
||||
text: {
|
||||
json: RTEDocument
|
||||
embedded_itemsConnection: EdgesWithTotalCount<Embeds>
|
||||
}
|
||||
}[]
|
||||
}
|
||||
}
|
||||
|
||||
export type Block =
|
||||
| RteBlockContent
|
||||
| Shortcuts
|
||||
| CardsGrid
|
||||
| DynamicContent
|
||||
| TextCols
|
||||
|
||||
Reference in New Issue
Block a user