fastcomments-typescript
Advanced tools
Comparing version
{ | ||
"name": "fastcomments-typescript", | ||
"version": "1.5.4", | ||
"version": "1.5.5", | ||
"description": "Common FastComments TypeScript Types", | ||
@@ -5,0 +5,0 @@ "author": "winrid", |
@@ -0,1 +1,3 @@ | ||
import {Comment} from "./fast-comments-comment"; | ||
export interface FastCommentsSSO { | ||
@@ -73,3 +75,11 @@ /** The user's data represented as JSON, and then Base64'd. Leave empty for an unauthenticated user. */ | ||
/** Simple SSO Configuration, less secure than "sso". See <a href="https://docs.fastcomments.com/guide-customizations-and-configuration.html#option-two---simple-sso" target="_blank">the documentation</a>. */ | ||
simpleSSO?: FastCommentsSSOSimple | ||
simpleSSO?: FastCommentsSSOSimple, | ||
/** Invoked when library initializes (nothing shown yet). **/ | ||
onInit: () => void, | ||
/** Invoked when library renders content. Happens on any state change. **/ | ||
onRender: () => void, | ||
/** Invoked when replying is successful. **/ | ||
onReplySuccess: (comment: Comment) => void, | ||
/** Invoked when voting is successful. **/ | ||
onVoteSuccess: (comment: Comment, voteId: string, direction: 'up'|'down'|'deleted', status: 'success'|'pending-verification') => void, | ||
} |
@@ -0,2 +1,3 @@ | ||
export { Comment } from './fast-comments-comment' | ||
export { FastCommentsCommentWidgetConfig, FastCommentsSSO } from './fast-comments-comment-widget-config' | ||
export { FastCommentsCommentCountConfig } from './fast-comments-comment-count-config' |
7718
19.96%7
16.67%123
46.43%