LINK_PROVIDERS
The catalog of recognized link providers, keyed by provider id.
The catalog of recognized link providers, keyed by provider id. Each
entry’s pattern (and optional path) classifies a pasted URL;
matchLinkProvider walks this catalog in declaration order.
Import from @homepages/template-kit.
Signature
Section titled “Signature”const LINK_PROVIDERS: { readonly matterport: { readonly kind: "tour"; readonly label: "Matterport"; readonly pattern: RegExp; readonly strategy: "api"; }; readonly biganto: { readonly kind: "tour"; readonly label: "Biganto"; readonly pattern: RegExp; readonly strategy: "opengraph"; }; readonly youtube: { readonly kind: "video"; readonly label: "YouTube"; readonly pattern: RegExp; readonly strategy: "oembed"; }; readonly vimeo: { readonly kind: "video"; readonly label: "Vimeo"; readonly pattern: RegExp; readonly strategy: "oembed"; }; readonly zillow: { readonly kind: "listing"; readonly label: "Zillow"; readonly pattern: RegExp; readonly strategy: "none"; }; readonly redfin: { readonly kind: "listing"; readonly label: "Redfin"; readonly pattern: RegExp; readonly strategy: "none"; }; readonly dropbox: { readonly kind: "file"; readonly label: "Dropbox"; readonly pattern: RegExp; readonly strategy: "none"; }; readonly drive: { readonly kind: "file"; readonly label: "Google Drive"; readonly pattern: RegExp; readonly strategy: "none"; }; readonly maps: { readonly kind: "map"; readonly label: "Google Maps"; readonly pattern: RegExp; readonly path: RegExp; readonly strategy: "none"; };}See also
Section titled “See also”acceptsLinkcollectionForSlotisLinkAcceptsmatchLinkProvidertourEmbedUrlvideoEmbedUrlCOLLECTIONSCONTENT_SLOT_TYPESDECISION_TYPESLINK_KINDSLINK_STRATEGIESREF_SLOT_TYPESREFERRAL_FIELDSREFERRAL_IMAGE_FIELDSSLOT_TYPESSOURCE_FIELDSVIDEO_SOURCESLinkProviderCollectionFieldCollectionIdKeyCollectionOwnershipContentSlotTypeDecisionTypeLinkKindLinkProviderIdLinkStrategyReferralFieldReferralImageFieldRefSlotTypeSlotTypeSourceFieldContainerSourceFieldDescriptorSourceFieldNameSourceFieldValueTypeVideoSourceWritebackTarget