vue-socials
Version:
Social media share buttons and counts for Vue.js
73 lines (72 loc) • 2.85 kB
TypeScript
/**
* Hey!
*
* SFacebookCount component used for Facebook social network
* @link https://www.facebook.com/
* @example https://graph.facebook.com/?url=https://github.com/
*/
export interface ISFacebookCountSuccessResponse {
engagement?: {
reaction_count: number;
comment_count: number;
share_count: number;
comment_plugin_count: number;
};
og_object?: {
description: string;
id: string;
title: string;
type: string;
updated_time: string;
};
app_links?: unknown;
}
export interface ISFacebookCountErrorResponse {
error: {
message: string;
type: string;
is_transient?: boolean;
code: number;
fbtrace_id: string;
};
}
export declare type TSFacebookCountResult = ISFacebookCountSuccessResponse | ISFacebookCountErrorResponse;
/**
* @link https://developers.facebook.com/docs/graph-api/reference/v9.0/url
*/
export interface ISFacebookCountShareOptions {
id: string;
accessToken: string;
fields?: string[];
scopes?: string[];
}
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {
handleFacebookResponse(data: TSFacebookCountResult): void;
}, import("vue").DefineComponent<{
tag: {
type: (ObjectConstructor | StringConstructor)[];
default: string;
};
shareOptions: {
type: ObjectConstructor;
default: () => ISFacebookCountShareOptions | (new (...args: any[]) => ISFacebookCountShareOptions & object) | (() => ISFacebookCountShareOptions) | ((new (...args: any[]) => ISFacebookCountShareOptions & object) | (() => ISFacebookCountShareOptions))[];
required: true;
};
}, unknown, import("../../mixins/BaseCount/BaseCount").TBaseCountDataOptions<TSFacebookCountResult>, {
ariaLabel(): string;
}, {
handleResult(value: TSFacebookCountResult): void;
handleError(value: string | Error | null): void;
handleLoading(value: boolean): void;
handleCount(count: number | undefined): void;
generateComponent(): import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
[key: string]: any;
}>;
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("error" | "loading" | "load")[], "error" | "loading" | "load", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
tag: string;
shareOptions: Record<string, any>;
} & {}>, {
tag: string;
shareOptions: Record<string, any>;
}>, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{} & {}>, {}>;
export default _default;