hypercrm 1.0.6 → 1.0.7

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.
Files changed (2) hide show
  1. package/assets/widget.js +8 -0
  2. package/package.json +1 -1
package/assets/widget.js CHANGED
@@ -130,11 +130,17 @@
130
130
  justify-content: center;
131
131
  }
132
132
 
133
+ #hypercrm-toggle-inner.hypercrm-custom-icon {
134
+ background: #ffffff;
135
+ border-radius: 50%;
136
+ }
137
+
133
138
  #hypercrm-toggle-inner img.hypercrm-toggle-avatar {
134
139
  width: 100%;
135
140
  height: 100%;
136
141
  object-fit: cover;
137
142
  border-radius: 50%;
143
+ background: #ffffff;
138
144
  display: block;
139
145
  }
140
146
 
@@ -2448,8 +2454,10 @@
2448
2454
  const { toggleInner } = this.elements;
2449
2455
  if (!toggleInner) return;
2450
2456
  if (iconUrl) {
2457
+ toggleInner.classList.add('hypercrm-custom-icon');
2451
2458
  toggleInner.innerHTML = `<img src="${iconUrl}" alt="Chat" class="hypercrm-toggle-avatar" />`;
2452
2459
  } else {
2460
+ toggleInner.classList.remove('hypercrm-custom-icon');
2453
2461
  toggleInner.innerHTML = this.renderIcon(this.iconUrls?.chat, '', 'hypercrm-icon-img large');
2454
2462
  }
2455
2463
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hypercrm",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "HyperCRM widget loader with optional React component.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",