ally-widget 1.0.2 → 1.0.3
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/ally-widget.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Ally Widget v1.0.
|
|
2
|
+
* Ally Widget v1.0.3
|
|
3
3
|
* Released under the MIT License
|
|
4
4
|
*/
|
|
5
5
|
'use strict';
|
|
@@ -1398,7 +1398,7 @@ const featureMethods = {
|
|
|
1398
1398
|
severity = 'moderate';
|
|
1399
1399
|
}
|
|
1400
1400
|
|
|
1401
|
-
if (displayCount <= 0) {
|
|
1401
|
+
if (displayCount <= 0 || this.options?.showViolationBubble === false) {
|
|
1402
1402
|
bubble.textContent = '';
|
|
1403
1403
|
bubble.hidden = true;
|
|
1404
1404
|
bubble.removeAttribute('data-severity');
|
|
@@ -4019,6 +4019,7 @@ const uiMethods = {
|
|
|
4019
4019
|
* offset: [20, 20] // [horizontal, vertical] px from edge
|
|
4020
4020
|
* size: '52px' // toggle button size (px / em / rem / %)
|
|
4021
4021
|
* keyboardShortcut: true // Alt+A to toggle (set false to disable)
|
|
4022
|
+
* showViolationBubble: true // red badge on toggle button (set false to hide)
|
|
4022
4023
|
*
|
|
4023
4024
|
* // ── Language ─────────────────────────────────────────────────────────────
|
|
4024
4025
|
* lang: 'en' | 'ne'
|
package/dist/ally-widget.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Ally Widget v1.0.
|
|
2
|
+
* Ally Widget v1.0.3
|
|
3
3
|
* Released under the MIT License
|
|
4
4
|
*/
|
|
5
5
|
const WIDGET_THEME = {
|
|
@@ -1396,7 +1396,7 @@ const featureMethods = {
|
|
|
1396
1396
|
severity = 'moderate';
|
|
1397
1397
|
}
|
|
1398
1398
|
|
|
1399
|
-
if (displayCount <= 0) {
|
|
1399
|
+
if (displayCount <= 0 || this.options?.showViolationBubble === false) {
|
|
1400
1400
|
bubble.textContent = '';
|
|
1401
1401
|
bubble.hidden = true;
|
|
1402
1402
|
bubble.removeAttribute('data-severity');
|
|
@@ -4017,6 +4017,7 @@ const uiMethods = {
|
|
|
4017
4017
|
* offset: [20, 20] // [horizontal, vertical] px from edge
|
|
4018
4018
|
* size: '52px' // toggle button size (px / em / rem / %)
|
|
4019
4019
|
* keyboardShortcut: true // Alt+A to toggle (set false to disable)
|
|
4020
|
+
* showViolationBubble: true // red badge on toggle button (set false to hide)
|
|
4020
4021
|
*
|
|
4021
4022
|
* // ── Language ─────────────────────────────────────────────────────────────
|
|
4022
4023
|
* lang: 'en' | 'ne'
|
package/dist/ally-widget.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Ally Widget v1.0.
|
|
2
|
+
* Ally Widget v1.0.3
|
|
3
3
|
* Released under the MIT License
|
|
4
4
|
*/
|
|
5
5
|
var AllyWidget = (function () {
|
|
@@ -1399,7 +1399,7 @@ var AllyWidget = (function () {
|
|
|
1399
1399
|
severity = 'moderate';
|
|
1400
1400
|
}
|
|
1401
1401
|
|
|
1402
|
-
if (displayCount <= 0) {
|
|
1402
|
+
if (displayCount <= 0 || this.options?.showViolationBubble === false) {
|
|
1403
1403
|
bubble.textContent = '';
|
|
1404
1404
|
bubble.hidden = true;
|
|
1405
1405
|
bubble.removeAttribute('data-severity');
|
|
@@ -4020,6 +4020,7 @@ var AllyWidget = (function () {
|
|
|
4020
4020
|
* offset: [20, 20] // [horizontal, vertical] px from edge
|
|
4021
4021
|
* size: '52px' // toggle button size (px / em / rem / %)
|
|
4022
4022
|
* keyboardShortcut: true // Alt+A to toggle (set false to disable)
|
|
4023
|
+
* showViolationBubble: true // red badge on toggle button (set false to hide)
|
|
4023
4024
|
*
|
|
4024
4025
|
* // ── Language ─────────────────────────────────────────────────────────────
|
|
4025
4026
|
* lang: 'en' | 'ne'
|