[APP-2160] Add local PublicationViewExternal types + extend ResolvedExternalLink

This commit is contained in:
vineyardbovines
2026-05-12 12:55:33 -04:00
committed by Eric Bailey
parent feb623520c
commit ffa58f6cb2
2 changed files with 48 additions and 0 deletions
+6
View File
@@ -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 = {