[APP-2160] Add local PublicationViewExternal types + extend ResolvedExternalLink
This commit is contained in:
committed by
Eric Bailey
parent
feb623520c
commit
ffa58f6cb2
@@ -26,6 +26,7 @@ import {
|
||||
} from '#/lib/strings/url-helpers'
|
||||
import {type ComposerImage} from '#/state/gallery'
|
||||
import {createComposerImage} from '#/state/gallery'
|
||||
import {type PublicationViewExternalSource} from '#/components/Post/Embed/ExternalEmbed/PublicationEmbed/types'
|
||||
import {type Gif} from '#/features/gifPicker/types'
|
||||
import {createGIFDescription} from '../gif-alt-text'
|
||||
|
||||
@@ -40,6 +41,11 @@ type ResolvedExternalLink = {
|
||||
* it exists. Example: a site.standard.document record.
|
||||
*/
|
||||
associatedRecord?: LinkMeta['associatedRecord']
|
||||
// APP-2160 / APP-2155: populated by Cardyb when the URL resolves to a
|
||||
// standard.site publication. Until APP-2155 ships these stay undefined.
|
||||
source?: PublicationViewExternalSource
|
||||
createdAt?: string
|
||||
readingTime?: number
|
||||
}
|
||||
|
||||
type ResolvedPostRecord = {
|
||||
|
||||
Reference in New Issue
Block a user