@product7/product7-js 0.5.1 → 0.5.2
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
|
@@ -6200,6 +6200,9 @@
|
|
|
6200
6200
|
border-radius: 50%;
|
|
6201
6201
|
border: 1.5px solid #D1D5DB;
|
|
6202
6202
|
flex-shrink: 0;
|
|
6203
|
+
display: flex;
|
|
6204
|
+
align-items: center;
|
|
6205
|
+
justify-content: center;
|
|
6203
6206
|
background: transparent;
|
|
6204
6207
|
transition: all var(--transition-fast);
|
|
6205
6208
|
}
|
|
@@ -6225,8 +6228,6 @@
|
|
|
6225
6228
|
color: #ffffff;
|
|
6226
6229
|
font-size: 11px;
|
|
6227
6230
|
font-weight: 700;
|
|
6228
|
-
line-height: 18px;
|
|
6229
|
-
text-align: center;
|
|
6230
6231
|
border-color: var(--color-primary);
|
|
6231
6232
|
background-color: var(--color-primary);
|
|
6232
6233
|
}
|
|
@@ -13641,7 +13642,12 @@
|
|
|
13641
13642
|
{};
|
|
13642
13643
|
const title = config.title || 'Thanks for your feedback!';
|
|
13643
13644
|
const buttonText = config.button_text || null;
|
|
13644
|
-
const
|
|
13645
|
+
const rawUrl = config.button_url || '';
|
|
13646
|
+
const buttonUrl = rawUrl
|
|
13647
|
+
? /^https?:\/\//i.test(rawUrl)
|
|
13648
|
+
? rawUrl
|
|
13649
|
+
: `https://${rawUrl}`
|
|
13650
|
+
: '#';
|
|
13645
13651
|
|
|
13646
13652
|
if (this._escapeHandler) {
|
|
13647
13653
|
document.removeEventListener('keydown', this._escapeHandler);
|