@peerboard/core
Advanced tools
Comparing version 0.0.16 to 0.0.18
@@ -94,3 +94,5 @@ "use strict"; | ||
if (spaceID === void 0) { spaceID = 0; } | ||
var opts = __assign(__assign({}, defaultOptions), { scrollToTopOnNavigationChanged: true, onPathChanged: function () { return true; } }); | ||
var opts = __assign(__assign({}, defaultOptions), { scrollToTopOnNavigationChanged: true, | ||
// tslint:disable-next-line:no-empty | ||
onPathChanged: function () { } }); | ||
Object.assign(opts, options); | ||
@@ -97,0 +99,0 @@ return exports.loadSdk(options.sdkURL).then(function () { |
@@ -109,3 +109,5 @@ 'use strict'; | ||
if (spaceID === void 0) { spaceID = 0; } | ||
var opts = __assign(__assign({}, defaultOptions), { scrollToTopOnNavigationChanged: true, onPathChanged: function () { return true; } }); | ||
var opts = __assign(__assign({}, defaultOptions), { scrollToTopOnNavigationChanged: true, | ||
// tslint:disable-next-line:no-empty | ||
onPathChanged: function () { } }); | ||
Object.assign(opts, options); | ||
@@ -112,0 +114,0 @@ return loadSdk(options.sdkURL).then(function () { |
@@ -111,3 +111,5 @@ (function (global, factory) { | ||
if (spaceID === void 0) { spaceID = 0; } | ||
var opts = __assign(__assign({}, defaultOptions), { scrollToTopOnNavigationChanged: true, onPathChanged: function () { return true; } }); | ||
var opts = __assign(__assign({}, defaultOptions), { scrollToTopOnNavigationChanged: true, | ||
// tslint:disable-next-line:no-empty | ||
onPathChanged: function () { } }); | ||
Object.assign(opts, options); | ||
@@ -114,0 +116,0 @@ return loadSdk(options.sdkURL).then(function () { |
@@ -14,2 +14,17 @@ export declare enum ExcludeOptions { | ||
} | ||
/** | ||
* User passes JWT Token signed with a secret community token with commenting widget settings | ||
* { | ||
* creds: { | ||
* post_author: { | ||
* external_user_id: string | ||
* user_id: int | ||
* email: string | ||
* } | ||
* } | ||
* } | ||
*/ | ||
export interface WidgetJWTOptions { | ||
widgetToken?: string; | ||
} | ||
export interface TitleOptions { | ||
@@ -32,4 +47,9 @@ onTitleChanged?: (title: string) => void; | ||
} | ||
export interface WidgetOptions extends FunctionOptions, LoginOptions, SdkUrlOptions, TitleOptions, UrlOptions { | ||
export interface PostOptions { | ||
title?: string; | ||
content?: string; | ||
} | ||
export interface WidgetOptions extends FunctionOptions, LoginOptions, SdkUrlOptions, TitleOptions, UrlOptions, WidgetJWTOptions { | ||
postOptions?: PostOptions; | ||
} | ||
interface Options extends FunctionOptions, LoginOptions, SdkUrlOptions, TitleOptions, UrlOptions { | ||
@@ -36,0 +56,0 @@ prefix?: string; |
{ | ||
"name": "@peerboard/core", | ||
"version": "0.0.16", | ||
"version": "0.0.18", | ||
"description": "peerboard.com frontend components", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
50905
489