@product7/product7-js 0.1.9 → 0.2.1
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 +10 -21
- package/dist/product7-js.js.map +1 -1
- package/dist/product7-js.min.js +1 -1
- package/dist/product7-js.min.js.map +1 -1
- package/package.json +1 -1
- package/src/core/BaseAPIService.js +1 -7
- package/src/core/Product7.js +1 -6
- package/src/styles/messenger-views.js +5 -5
- package/src/styles/survey.js +3 -3
package/dist/product7-js.js
CHANGED
|
@@ -1024,13 +1024,7 @@
|
|
|
1024
1024
|
if (!env || env === 'production') {
|
|
1025
1025
|
const hostname =
|
|
1026
1026
|
(typeof window !== 'undefined' && window.location?.hostname) || '';
|
|
1027
|
-
|
|
1028
|
-
hostname === 'localhost' ||
|
|
1029
|
-
hostname === '127.0.0.1' ||
|
|
1030
|
-
/^192\.168\./.test(hostname) ||
|
|
1031
|
-
/^10\./.test(hostname) ||
|
|
1032
|
-
/^172\.(1[6-9]|2\d|3[01])\./.test(hostname);
|
|
1033
|
-
if (hostname.includes('staging') || isLocal) {
|
|
1027
|
+
if (hostname.includes('staging')) {
|
|
1034
1028
|
env = 'staging';
|
|
1035
1029
|
}
|
|
1036
1030
|
}
|
|
@@ -5327,8 +5321,8 @@
|
|
|
5327
5321
|
|
|
5328
5322
|
.messenger-help-collection-icon {
|
|
5329
5323
|
flex-shrink: 0;
|
|
5330
|
-
width: 2.
|
|
5331
|
-
height: 2.
|
|
5324
|
+
width: 2.25rem;
|
|
5325
|
+
height: 2.25rem;
|
|
5332
5326
|
display: flex;
|
|
5333
5327
|
align-items: center;
|
|
5334
5328
|
justify-content: center;
|
|
@@ -5336,14 +5330,14 @@
|
|
|
5336
5330
|
}
|
|
5337
5331
|
|
|
5338
5332
|
.messenger-help-collection-icon svg {
|
|
5339
|
-
width:
|
|
5340
|
-
height:
|
|
5333
|
+
width: 1.5rem;
|
|
5334
|
+
height: 1.5rem;
|
|
5341
5335
|
display: block;
|
|
5342
5336
|
flex-shrink: 0;
|
|
5343
5337
|
}
|
|
5344
5338
|
|
|
5345
5339
|
.messenger-help-collection-icon iconify-icon {
|
|
5346
|
-
font-size:
|
|
5340
|
+
font-size: 1.5rem;
|
|
5347
5341
|
width: 1em;
|
|
5348
5342
|
height: 1em;
|
|
5349
5343
|
display: block;
|
|
@@ -5959,7 +5953,7 @@
|
|
|
5959
5953
|
|
|
5960
5954
|
.feedback-survey-stars {
|
|
5961
5955
|
display: flex;
|
|
5962
|
-
gap: var(--spacing-
|
|
5956
|
+
gap: var(--spacing-4);
|
|
5963
5957
|
justify-content: center;
|
|
5964
5958
|
}
|
|
5965
5959
|
|
|
@@ -5967,9 +5961,9 @@
|
|
|
5967
5961
|
background: none;
|
|
5968
5962
|
border: none;
|
|
5969
5963
|
cursor: pointer;
|
|
5970
|
-
font-size:
|
|
5964
|
+
font-size: 2.75rem;
|
|
5971
5965
|
color: var(--color-neutral-300);
|
|
5972
|
-
padding: 0
|
|
5966
|
+
padding: 0;
|
|
5973
5967
|
line-height: 1;
|
|
5974
5968
|
transition: color var(--transition-fast), transform var(--transition-fast);
|
|
5975
5969
|
}
|
|
@@ -13917,12 +13911,7 @@
|
|
|
13917
13911
|
|
|
13918
13912
|
const hostname = window.location.hostname.toLowerCase();
|
|
13919
13913
|
|
|
13920
|
-
if (
|
|
13921
|
-
hostname.includes('staging') ||
|
|
13922
|
-
hostname.includes('localhost') ||
|
|
13923
|
-
hostname.includes('127.0.0.1') ||
|
|
13924
|
-
hostname.includes('.local')
|
|
13925
|
-
) {
|
|
13914
|
+
if (hostname.includes('staging')) {
|
|
13926
13915
|
return 'staging';
|
|
13927
13916
|
}
|
|
13928
13917
|
|