announcekit-react
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -75,25 +75,24 @@ "use strict"; | ||
var ann = window["announcekit"]; | ||
ann.on("widget-init", function (widget) { | ||
if (widget === _widget && onWidgetInit) { | ||
onWidgetInit(_widget); | ||
} | ||
}); | ||
ann.on("widget-open", function (widget) { | ||
ann.on("widget-open", function (_a) { | ||
var widget = _a.widget; | ||
if (widget === _widget && onWidgetOpen) { | ||
onWidgetOpen(_widget); | ||
onWidgetOpen({ widget: widget }); | ||
} | ||
}); | ||
ann.on("widget-close", function (widget) { | ||
ann.on("widget-close", function (_a) { | ||
var widget = _a.widget; | ||
if (widget === _widget && onWidgetClose) { | ||
onWidgetClose(_widget); | ||
onWidgetClose({ widget: widget }); | ||
} | ||
}); | ||
ann.on("widget-resize", function (widget) { | ||
ann.on("widget-resize", function (_a) { | ||
var widget = _a.widget, size = _a.size; | ||
if (widget === _widget && onWidgetResize) { | ||
onWidgetResize(_widget); | ||
onWidgetResize({ widget: widget, size: size }); | ||
} | ||
}); | ||
ann.on("widget-unread", function (widget) { | ||
ann.on("widget-unread", function (_a) { | ||
var widget = _a.widget, unread = _a.unread; | ||
if (widget === _widget && onWidgetUnread) { | ||
onWidgetUnread(_widget); | ||
onWidgetUnread({ widget: widget, unread: unread }); | ||
} | ||
@@ -100,0 +99,0 @@ }); |
{ | ||
"name": "announcekit-react", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Use AnnounceKit widgets in your React App", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
13836
252