Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
@livechat/chat-widget
Advanced tools
npm install --save @livechat/chat-widget
In order to embed chat widget's preview in your application, you can import preview
function from special entry point (@livechat/chat-widget/preview
) and call it with target
element, like this:
import preview from '@livechat/chat-widget/preview'
const store = preview({
target: document.getElementById('chat-widget-preview'),
})
In return you will get a special store object on which you will be able to call methods in order to manipulate store's data, current shown view, etc. It is a @livechat/chat-store
's instance - for full API you can look into its documentation.
Besides target
you can also pass in state
and props
.
state
- will be passed in to the @livechat/chat-store
as initialState
props
- will be passed to the root Application
component
onClick
- gets called whenever user clicks on minimize button (to maximize) or a minimized widget (to minimize). You can return a promise from your onClick
to delay actual state change until your promise resolves (useful if you need to i.e. resize containing element before changing state).onToggleEnd
- gets called after maximized state gets changedAvailable features:
agentAvatar
emailTranscript
facebookButton
googlePlusButton
rating
twitterButton
store.updateFeature('rating', { enabled: false })
store.updateFeature('facebookButton', {
enabled: true,
path: 'https://www.facebook.com/livechatpany',
})
store.setApplicationState({ mobile: true })
store.updateConfig({
minimizedType: 'bar', // or 'circle'
})
store.updateConfig({
theme: {
Message: {
own: {
Bubble: {
css: {
color: '#fff',
background: '#aa8bd2',
},
},
},
},
MinimizedBar: {
css: {
backgroundColor: '#fff',
color: '#000',
},
Icon: {
color: 'red',
},
},
MinimizedBubble: {
css: {
backgroundColor: '#fff',
},
Icon: {
color: 'red',
},
},
},
})
FAQs
## Installation
The npm package @livechat/chat-widget receives a total of 0 weekly downloads. As such, @livechat/chat-widget popularity was classified as not popular.
We found that @livechat/chat-widget demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 9 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.