feat(SW-2541): Adjust for ImageVault custom field return types changes
Approved-by: Bianca Widstam Approved-by: Matilda Landström
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import type { ImageVaultAsset } from "@scandic-hotels/trpc/types/imageVault"
|
||||
import type { ImageVaultAsset } from "@scandic-hotels/common/utils/imageVault"
|
||||
import type { VariantProps } from "class-variance-authority"
|
||||
|
||||
import type { CardProps } from "@/components/TempDesignSystem/Card/card"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { FocalPoint } from "@scandic-hotels/trpc/types/image"
|
||||
import type { FocalPoint } from "@scandic-hotels/common/utils/imageVault"
|
||||
|
||||
interface Dimensions {
|
||||
width: number
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { ImageVaultAsset } from "@scandic-hotels/common/utils/imageVault"
|
||||
import type { TeaserCard } from "@scandic-hotels/trpc/types/blocks"
|
||||
import type { ImageVaultAsset } from "@scandic-hotels/trpc/types/imageVault"
|
||||
import type { VariantProps } from "class-variance-authority"
|
||||
|
||||
import type { CardProps } from "@/components/TempDesignSystem/Card/card"
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
import { EmbedEnum } from "./utils/embeds"
|
||||
import { PageLink, PageLinkWithOriginalUrl } from "./utils/pageLink"
|
||||
import { TypenameInterface } from "./utils/typename"
|
||||
|
||||
import type { ImageContainer } from "./imageContainer"
|
||||
import type { SysAsset } from "./utils/asset"
|
||||
import type { EmbedEnum } from "./utils/embeds"
|
||||
import type { PageLink, PageLinkWithOriginalUrl } from "./utils/pageLink"
|
||||
import type { TypenameInterface } from "./utils/typename"
|
||||
|
||||
interface AccountPage
|
||||
extends TypenameInterface<EmbedEnum.AccountPage>,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { ImageVaultAsset } from "@scandic-hotels/common/utils/imageVault"
|
||||
import type { System } from "@scandic-hotels/trpc/routers/contentstack/schemas/system"
|
||||
import type { ImageVaultAssetResponse } from "@scandic-hotels/trpc/types/imageVault"
|
||||
|
||||
import type { EmbedEnum } from "./utils/embeds"
|
||||
import type { TypenameInterface } from "./utils/typename"
|
||||
@@ -7,6 +7,6 @@ import type { TypenameInterface } from "./utils/typename"
|
||||
export interface ImageContainer
|
||||
extends TypenameInterface<EmbedEnum.ImageContainer>,
|
||||
System {
|
||||
image_left?: ImageVaultAssetResponse
|
||||
image_right?: ImageVaultAssetResponse
|
||||
image_left?: ImageVaultAsset
|
||||
image_right?: ImageVaultAsset
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@ import type { Lang } from "@scandic-hotels/common/constants/language"
|
||||
import type {
|
||||
ImageVaultAsset,
|
||||
ImageVaultAssetResponse,
|
||||
} from "@scandic-hotels/trpc/types/imageVault"
|
||||
} from "@scandic-hotels/common/utils/imageVault"
|
||||
import type {
|
||||
EmbedTypesEnum,
|
||||
RTEItemType,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { Lang } from "@scandic-hotels/common/constants/language"
|
||||
import type { ImageVaultAsset } from "@scandic-hotels/trpc/types/imageVault"
|
||||
import type { ImageVaultAsset } from "@scandic-hotels/common/utils/imageVault"
|
||||
|
||||
import type { EmbedTypesEnum, RTEItemType, RTEItemTypeEnum } from "./enums"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user