Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

announcekit-react

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

announcekit-react - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

2

package.json
{
"name": "announcekit-react",
"version": "1.1.0",
"version": "1.2.0",
"description": "Use AnnounceKit widgets in your React App",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -7,4 +7,6 @@ ![](https://announcekit.app/images/logo@2x.png)

[Live demo](https://announcekit.app/widgets)
[Live demo](https://codesandbox.io/s/announcekit-react-demo-gfrt1)
[Documentation](https://announcekit.app/docs/reactjs)
## Installation

@@ -19,21 +21,28 @@

```js
import React from 'react';
import AnnouncekitWidget from 'announcekit-react';
import React from "react";
import AnnounceKit from "announcekit-react";
class App extends React.Component {
render() {
return (
<div>
<nav>
class App extends React.Component {
render() {
return (
<div>
<nav>
<ul>
<li>Home</li>
<li>Product</li>
<li>News <AnnouncekitWidget widget="https://announcekit.app/widget/eL8Lm" /></li>
<ul>
</nav>
</div>
)
}
<li>
News <AnnounceKit widget="https://announcekit.app/widget/eL8Lm" />
</li>
<li>
<a className="click-trigger" href="#">
Click here
</a>
<AnnounceKit catchClick=".click-trigger" widget="https://announcekit.app/widget/eL8Lm" />
</li>
</ul>
</nav>
</div>
);
}
}
```

@@ -49,6 +58,6 @@

- `floatWidget` - Set true if the widget is a Float widget.
- `widgetInit` - Called after the widget has been successfully loaded.
- `widgetOpen` - Called when the widget is opened.
- `widgetClose` - Called when the widget is closed.
- `widgetResize` - Called when the widget is resized.
- `widgetUnread` - Called when unread post count of widget has been updated.
- `userData` - User properties (for user tracking)
- `onWidgetOpen` - Called when the widget is opened.
- `onWidgetClose` - Called when the widget is closed.
- `onWidgetResize` - Called when the widget is resized.
- `onWidgetUnread` - Called when unread post count of widget has been updated.

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc