SocialItem
Interface
interface ISocialItem {
key?: string;
icon: string; // fluent ui icon name
count?: number;
text?: ILocales | string;
onClickIcon?: onClickActions;
onClick?: onClickActions;
visible?: boolean;
// propertyName is the name of the social actions or stats and it is necessary to indicate it in order to apply the social settings configuration.
propertyName?: string; // bookmarks | favorites | likes | likers | views | viewers | tags | share | feedback | follow | open | openLocation | download | comments
}
SocialStats
Interface
interface ISocialStats {
like: ISocialStatItem;
favorite: ISocialStatItem;
bookmark: ISocialStatItem;
view: ISocialStatItem;
hidden: ISocialStatItem;
comment: ISocialStatItem;
tag: ISocialStatItem;
draft: ISocialStatItem;
highlight: ISocialStatItem;
cache: ISocialStatItem;
follow: ISocialStatItem;
settings: ISocialSettings;
}
Enum
enum SocialStats {
Views = "Views",
Likes = "Likes",
Comments = "Comments",
Tags = "Tags",
}
SocialStatItem
Interface
interface ISocialStatItem {
status: boolean;
count: number;
}
SocialActions
Enum
enum SocialActions {
Bookmark = "Bookmark",
Favorite = "Favorite",
Share = "Share",
Feedback = "Feedback",
Follow = "Follow",
Tags = "Tags",
}
SocialSettings
Interface
interface ISocialSettings {
enable: boolean;
type?: ContextType;
typeId?: string;
stats: {
enable: boolean;
stats: {
views: boolean;
tags: boolean;
comments: boolean;
likes: boolean;
};
actions: {
viewers: boolean;
tags: boolean;
comments: boolean;
likers: boolean;
};
};
actions: {
enable: boolean;
actions: {
bookmarks: boolean;
favorites: boolean;
likes: boolean;
share: boolean;
feedback: boolean;
follow: boolean;
open: boolean;
openLocation: boolean;
download: boolean;
comments: boolean;
};
};
}
ContextType
Enum
enum ContextType {
Tenant = "Tenant",
Community = "Community",
ContentType = "ContentType",
Content = "Content",
Addon = "Addon",
}
Url
Interface
interface IUrl {
detailUrl: string;
previewUrl: string;
interactivePreviewUrl: string;
downloadUrl: string;
contentPageUrl: string;
siteUrl: string;
}
BaseType
Enum
enum BaseType {
Page = "Page",
Document = "Document",
Application = "Application",
Community = "Community",
Announcement = "Announcement",
}