feat: remove temppage
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import type { Edges } from "../utils/edges"
|
||||
import type { TempPageLink } from "../utils/tempPageLink"
|
||||
import type { PageLink } from "../utils/pageLink"
|
||||
import { Typename } from "../utils/typename"
|
||||
import type { Typename } from "../utils/typename"
|
||||
|
||||
enum ListItemStyleEnum {
|
||||
checkmark = "checkmark",
|
||||
@@ -36,7 +35,7 @@ type InternalLinkListItem = Typename<
|
||||
link_text?: string
|
||||
list_item_style: ListItemStyle
|
||||
subtitle?: string
|
||||
pageConnection: Edges<TempPageLink | PageLink>
|
||||
pageConnection: Edges<PageLink>
|
||||
}
|
||||
},
|
||||
BlockListItemsEnum.CurrentBlocksPageBlocksListBlockListItemsListItemInternalLink
|
||||
|
||||
@@ -33,11 +33,7 @@ export interface CurrentBlocksPageBreadcrumb extends SharedBreadcrumb {
|
||||
__typename: EmbedEnum.CurrentBlocksPage
|
||||
}
|
||||
|
||||
export interface TempPageBreadcrumb extends SharedBreadcrumb {
|
||||
__typename: EmbedEnum.TempPage
|
||||
}
|
||||
|
||||
export type Breadcrumb = CurrentBlocksPageBreadcrumb | TempPageBreadcrumb
|
||||
export type Breadcrumb = CurrentBlocksPageBreadcrumb
|
||||
|
||||
export type Breadcrumbs = {
|
||||
parentsConnection: Edges<Breadcrumb>
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import type { SysAsset } from "./utils/asset"
|
||||
import type { TempPageLinkType } from "./utils/tempPageLink"
|
||||
import type { PageLinkType } from "./utils/pageLink"
|
||||
|
||||
export type Embeds = TempPageLinkType | PageLinkType | SysAsset
|
||||
export type Embeds = PageLinkType | SysAsset
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import type { Image } from "../image"
|
||||
import type { Edges } from "./utils/edges"
|
||||
import type { Embeds } from "./embeds"
|
||||
import type { TempPageLink } from "./utils/tempPageLink"
|
||||
import type { PageLink } from "./utils/pageLink"
|
||||
import type { RTEDocument } from "../rte/node"
|
||||
|
||||
@@ -13,7 +12,7 @@ export type Puff = {
|
||||
title: string
|
||||
}
|
||||
link_text?: string
|
||||
pageConnection: Edges<TempPageLink | PageLink>
|
||||
pageConnection: Edges<PageLink>
|
||||
system: {
|
||||
uid: string
|
||||
}
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
export enum EmbedEnum {
|
||||
CurrentBlocksPage = "CurrentBlocksPage",
|
||||
SysAsset = "SysAsset",
|
||||
TempPage = "TempPage",
|
||||
}
|
||||
|
||||
export type Embed = keyof typeof EmbedEnum
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
import { Lang } from "@/types/lang"
|
||||
import type { EmbedEnum } from "./embeds"
|
||||
import type { Typename } from "./typename"
|
||||
|
||||
export type TempPageLink = {
|
||||
system: {
|
||||
uid: string
|
||||
locale: Lang
|
||||
}
|
||||
title: string
|
||||
url: string
|
||||
}
|
||||
|
||||
export type TempPageLinkType = Typename<TempPageLink, EmbedEnum.TempPage>
|
||||
Reference in New Issue
Block a user