@product7/product7-js 0.1.4 → 0.1.5
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.
package/dist/product7-js.js
CHANGED
|
@@ -10014,7 +10014,9 @@
|
|
|
10014
10014
|
|
|
10015
10015
|
_updateCollectionsList() {
|
|
10016
10016
|
const container = this.element.querySelector('.messenger-help-collections');
|
|
10017
|
-
const collections = this.state.helpArticles || []
|
|
10017
|
+
const collections = (this.state.helpArticles || []).filter(
|
|
10018
|
+
(c) => (c.articleCount || 0) > 0
|
|
10019
|
+
);
|
|
10018
10020
|
const searchQuery = (this.state.helpSearchQuery || '').toLowerCase();
|
|
10019
10021
|
|
|
10020
10022
|
const filtered = searchQuery
|
|
@@ -10095,7 +10097,7 @@
|
|
|
10095
10097
|
|
|
10096
10098
|
if (icon.startsWith('ph:')) {
|
|
10097
10099
|
return `<span class="messenger-help-collection-icon">
|
|
10098
|
-
<iconify-icon icon="${icon}"
|
|
10100
|
+
<iconify-icon icon="${icon}"></iconify-icon>
|
|
10099
10101
|
</span>`;
|
|
10100
10102
|
}
|
|
10101
10103
|
|
|
@@ -10104,7 +10106,7 @@
|
|
|
10104
10106
|
|
|
10105
10107
|
_defaultCollectionIcon() {
|
|
10106
10108
|
return `<span class="messenger-help-collection-icon">
|
|
10107
|
-
<iconify-icon icon="ph:book-open-duotone"
|
|
10109
|
+
<iconify-icon icon="ph:book-open-duotone"></iconify-icon>
|
|
10108
10110
|
</span>`;
|
|
10109
10111
|
}
|
|
10110
10112
|
|
|
@@ -10236,9 +10238,6 @@
|
|
|
10236
10238
|
${this.options.logoUrl ? `<img src="${this.options.logoUrl}" alt="${this.state.teamName}" />` : ''}
|
|
10237
10239
|
</div>
|
|
10238
10240
|
<div class="messenger-home-avatars">${avatarsHtml}</div>
|
|
10239
|
-
<button class="sdk-close-btn" aria-label="Close">
|
|
10240
|
-
<iconify-icon icon="ph:x-duotone" width="18" height="18"></iconify-icon>
|
|
10241
|
-
</button>
|
|
10242
10241
|
</div>
|
|
10243
10242
|
<div class="messenger-home-welcome">
|
|
10244
10243
|
<span class="messenger-home-greeting">${this.state.greetingMessage}</span>
|
|
@@ -10417,12 +10416,6 @@
|
|
|
10417
10416
|
}
|
|
10418
10417
|
|
|
10419
10418
|
_attachEvents() {
|
|
10420
|
-
this.element
|
|
10421
|
-
.querySelector('.sdk-close-btn')
|
|
10422
|
-
.addEventListener('click', () => {
|
|
10423
|
-
this.state.setOpen(false);
|
|
10424
|
-
});
|
|
10425
|
-
|
|
10426
10419
|
const msgBtn = this.element.querySelector(
|
|
10427
10420
|
'.messenger-home-message-btn:not(.messenger-feedback-btn)'
|
|
10428
10421
|
);
|