@papercups-io/chat-widget
Advanced tools
Comparing version 1.0.6 to 1.0.7
@@ -8,4 +8,5 @@ /// <reference types="react" /> | ||
baseUrl?: string; | ||
defaultIsOpen?: boolean; | ||
}; | ||
declare const EmbeddableWidget: ({ accountId, title, subtitle, primaryColor, baseUrl, }: Props) => JSX.Element; | ||
declare const EmbeddableWidget: ({ accountId, title, subtitle, primaryColor, baseUrl, defaultIsOpen, }: Props) => JSX.Element; | ||
export default EmbeddableWidget; |
@@ -831,5 +831,7 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } | ||
primaryColor = _ref.primaryColor, | ||
baseUrl = _ref.baseUrl; | ||
baseUrl = _ref.baseUrl, | ||
_ref$defaultIsOpen = _ref.defaultIsOpen, | ||
defaultIsOpen = _ref$defaultIsOpen === void 0 ? false : _ref$defaultIsOpen; | ||
var _React$useState = React.useState(false), | ||
var _React$useState = React.useState(defaultIsOpen), | ||
isOpen = _React$useState[0], | ||
@@ -836,0 +838,0 @@ setIsOpen = _React$useState[1]; |
@@ -829,5 +829,7 @@ import React from 'react'; | ||
primaryColor = _ref.primaryColor, | ||
baseUrl = _ref.baseUrl; | ||
baseUrl = _ref.baseUrl, | ||
_ref$defaultIsOpen = _ref.defaultIsOpen, | ||
defaultIsOpen = _ref$defaultIsOpen === void 0 ? false : _ref$defaultIsOpen; | ||
var _React$useState = React.useState(false), | ||
var _React$useState = React.useState(defaultIsOpen), | ||
isOpen = _React$useState[0], | ||
@@ -834,0 +836,0 @@ setIsOpen = _React$useState[1]; |
{ | ||
"name": "@papercups-io/chat-widget", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "Papercups chat widget", | ||
@@ -5,0 +5,0 @@ "author": "reichert621", |
@@ -7,2 +7,8 @@ # @papercups-io/chat-widget | ||
## Demo | ||
Available at https://app.papercups.io/demo | ||
![demo](https://user-images.githubusercontent.com/5264279/88118921-e4a37900-cb8c-11ea-825f-86deb8edc518.gif) | ||
## Install | ||
@@ -16,3 +22,3 @@ | ||
First, sign up at https://www.papercups.io/register to get your account token. Your account token is what you will use to pass in as the `accountId` prop below. | ||
First, sign up at https://app.papercups.io/register to get your account token. Your account token is what you will use to pass in as the `accountId` prop below. | ||
@@ -38,3 +44,3 @@ ### Using in HTML | ||
defer | ||
src="https://www.papercups.io/widget.js" | ||
src="https://app.papercups.io/widget.js" | ||
></script> | ||
@@ -41,0 +47,0 @@ ``` |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
77
165339
19
2444
1