Skip to content

Commit

Permalink
feat: use KeyTextField for link text value definition
Browse files Browse the repository at this point in the history
  • Loading branch information
levimykel committed Aug 27, 2024
1 parent 50fc797 commit 1a4c51a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/types/value/contentRelationship.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import type { AnyRegularField, FieldState } from "./types"

import type { GroupField } from "./group"
import type { KeyTextField } from "./keyText"
import type { EmptyLinkField, LinkType } from "./link"
import type { SliceZone } from "./sliceZone"

Expand Down Expand Up @@ -44,5 +45,5 @@ export interface FilledContentRelationshipField<
slug?: string
isBroken?: boolean
data?: DataInterface
text?: string
text?: KeyTextField
}
3 changes: 2 additions & 1 deletion src/types/value/link.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import type { AnyRegularField, FieldState } from "./types"

import type { ContentRelationshipField } from "./contentRelationship"
import type { GroupField } from "./group"
import type { KeyTextField } from "./keyText"
import type { LinkToMediaField } from "./linkToMedia"
import type { SliceZone } from "./sliceZone"

Expand Down Expand Up @@ -33,7 +34,7 @@ export interface FilledLinkToWebField {
link_type: typeof LinkType.Web
url: string
target?: string
text?: string
text?: KeyTextField
}

/**
Expand Down
3 changes: 2 additions & 1 deletion src/types/value/linkToMedia.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import type { FieldState } from "./types"

import type { KeyTextField } from "./keyText"
import type { EmptyLinkField, LinkType } from "./link"

/**
Expand All @@ -24,5 +25,5 @@ export interface FilledLinkToMediaField {
size: string
height?: string | null
width?: string | null
text?: string
text?: KeyTextField
}

0 comments on commit 1a4c51a

Please sign in to comment.