@getwidgets/live-chat-widget 1.0.5 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -20212,9 +20212,17 @@
20212
20212
  };
20213
20213
  const isMobile = windowWidth < 768;
20214
20214
  return /* @__PURE__ */ React.createElement("div", { style: getPositionStyles() }, !isOpen && showNotificationPreview && /* @__PURE__ */ React.createElement(
20215
- "button",
20215
+ "div",
20216
20216
  {
20217
+ role: "button",
20218
+ tabIndex: 0,
20217
20219
  onClick: toggleWidget,
20220
+ onKeyDown: (e) => {
20221
+ if (e.key === "Enter" || e.key === " ") {
20222
+ e.preventDefault();
20223
+ toggleWidget();
20224
+ }
20225
+ },
20218
20226
  className: "rounded-2xl shadow-lg hover:shadow-xl transition-all duration-300 flex flex-col gap-2 p-4 max-w-xs responsive-notification relative",
20219
20227
  style: {
20220
20228
  backgroundColor: headerConfig.background_color || "#111827",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getwidgets/live-chat-widget",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "main": "dist/live-chat-widget.umd.js",
5
5
  "unpkg": "dist/live-chat-widget.umd.js",
6
6
  "type": "module",