UNPKG

sharethis-angular

Version:

ShareThis Share Buttons for Angular apps/sites. Empower your online audience to share and amplify your content on social networks such as Facebook, WhatsApp, Linkedin, Twitter and many more. Includes four types of share buttons - Inline Share Buttons, Sti

134 lines (133 loc) 5.68 kB
export declare type SharingNetwork = 'facebook' | 'twitter' | 'email' | 'sms' | 'sharethis' | 'linkedin' | 'messenger' | 'pinterest' | 'reddit' | 'tumblr' | 'digg' | 'whatsapp' | 'iorbix' | 'kakao' | 'kindleit' | 'kooapp' | 'outlook' | 'tencentqq' | 'trello' | 'viber' | 'yummly' | 'vk' | 'weibo' | 'odnoklassniki' | 'xing' | 'print' | 'blogger' | 'flipboard' | 'snapchat' | 'meneame' | 'mailru' | 'livejournal' | 'wechat' | 'buffer' | 'diaspora' | 'douban' | 'evernote' | 'googlebookmarks' | 'gmail' | 'hackernews' | 'instapaper' | 'line' | 'getpocket' | 'qzone' | 'refind' | 'renren' | 'surfingbird' | 'skype' | 'telegram' | 'threema' | 'yahoomail' | 'wordpress' | 'blm'; export declare type FollowNetwork = 'facebook' | 'twitter' | 'instagram' | 'youtube' | 'flipboard' | 'linkedin' | 'blogger' | 'digg' | 'github' | 'medium' | 'messenger' | 'odnoklassniki' | 'patreon' | 'pinterest' | 'quora' | 'reddit' | 'snapchat' | 'soundcloud' | 'spotify' | 'telegram' | 'tumblr' | 'twitch' | 'vk' | 'wechat' | 'weibo' | 'yelp' | 'airbnb' | 'amazon' | 'discord' | 'etsy' | 'houzz' | 'tiktok' | 'tripadvisor' | 'vimeo' | 'zillow'; export declare type Reaction = 'slight_smile' | 'heart_eyes' | 'laughing' | 'astonished' | 'sob' | 'rage'; export declare type InlineShareButtonsConfig = { /** alignment of buttons */ alignment?: 'center' | 'left' | 'right'; /** set the color of buttons */ color?: 'social' | 'white'; /** show/hide buttons */ enabled?: boolean; /** font size for the buttons */ font_size?: number; /** button labels */ labels?: 'cta' | 'counts' | null; /** which language to use */ language?: string; /** which networks to include */ networks: SharingNetwork[]; /** padding within buttons */ padding?: number; /** the corner radius on each button */ radius?: number; show_total?: boolean; /** the size of each button */ size?: number; /** the url to share, defaults to current url */ url?: string; /** the image to share, defaults to og:image or twitter:image */ image?: string; /** the description to share, defaults to og:description or twitter:description */ description?: string; /** the title to share, defaults to og:title or twitter:title */ title?: string; /** the message to include (only for email sharing) */ message?: string; /** the subject to include (only for email sharing) */ subject?: string; /** the username to include (only for email sharing) */ username?: string; }; export declare type InlineReactionButtonsConfig = { /** alignment of buttons */ alignment?: 'center' | 'left' | 'right'; /** show/hide buttons */ enabled?: boolean; /** which language to use */ language?: string; /** hide react counts less than min_count (INTEGER) */ min_count?: number; /** padding within buttons */ padding?: number; /** which reactions to include (see REACTIONS) */ reactions: Reaction[]; /** the size of each button */ size?: number; }; export declare type InlineFollowButtonsConfig = { /** call to action */ action?: string; /** show/hide call to action */ action_enabled?: boolean; /** position of call to action (left, top, right) */ action_pos?: string; /** alignment of buttons */ alignment?: 'center' | 'left' | 'right'; /** set the color of buttons */ color?: 'social' | 'white'; /** show/hide buttons */ enabled?: boolean; /** which networks to include */ networks: FollowNetwork[]; /** padding within buttons */ padding?: number; /** social profile links for buttons */ profiles: { [key in FollowNetwork]?: string; }; /** the corner radius on each button */ radius?: number; /** the size of each button */ size?: number; /** spacing between buttons */ spacing?: number; /** the url to share, defaults to current url */ url?: string; }; export declare type StickyShareButtonsConfig = { /** alignment of buttons */ alignment?: 'center' | 'left' | 'right'; /** set the color of buttons */ color?: 'social' | 'white'; /** show/hide buttons */ enabled?: boolean; /** font size for the buttons */ font_size?: number; /** button labels */ labels?: 'cta' | 'counts' | null; /** which language to use */ language?: string; /** hide react counts less than min_count (INTEGER) */ min_count?: number; /** padding within buttons */ padding?: number; /** the corner radius on each button */ radius?: number; show_total?: boolean; /** show/hide the buttons on mobile (true, false) */ show_mobile?: boolean; /** show/hide the toggle buttons (true, false) */ show_toggle?: boolean; /** the size of each button */ size?: number; /** offset in pixels from the top of the page */ top?: number; /** offset in pixels from the top of the page */ hide_desktop?: boolean; /** which networks to include */ networks: SharingNetwork[]; /** the url to share, defaults to current url */ url?: string; /** the image to share, defaults to og:image or twitter:image */ image?: string; /** the description to share, defaults to og:description or twitter:description */ description?: string; /** the title to share, defaults to og:title or twitter:title */ title?: string; /** the message to include (only for email sharing) */ message?: string; /** the subject to include (only for email sharing) */ subject?: string; /** the username to include (only for email sharing) */ username?: string; };