sfc-utils 1.4.159 → 1.4.161

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.
@@ -16,7 +16,13 @@ function debounce(fn, ms) {
16
16
  };
17
17
  }
18
18
 
19
- function appendLayoutScripts(isEmbedded, isAdRemoved, marketKey, category) {
19
+ function appendLayoutScripts(
20
+ isEmbedded,
21
+ isAdRemoved,
22
+ marketKey,
23
+ category,
24
+ enableBC
25
+ ) {
20
26
  const isApp = appCheck();
21
27
 
22
28
  // React Helmet is actually terrible and runs these scripts twice, so we are including them async ourselves
@@ -121,7 +127,7 @@ function appendLayoutScripts(isEmbedded, isAdRemoved, marketKey, category) {
121
127
 
122
128
  // Wait a beat, then add to body so it doesn't mess with the head (which Helmet seems to want to manage)
123
129
  setTimeout(() => {
124
- if (!isEmbedded && !isApp) {
130
+ if (!isEmbedded && (!isApp || enableBC)) {
125
131
  let blueconicURL = getBlueconic(window.location.origin);
126
132
  let script = document.createElement("script");
127
133
  script.type = "text/javascript";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sfc-utils",
3
- "version": "1.4.159",
3
+ "version": "1.4.161",
4
4
  "author": "ewagstaff <evanjwagstaff@gmail.com>",
5
5
  "dependencies": {
6
6
  "archieml": "^0.4.2",
@@ -1,4 +1,4 @@
1
- @import (less) '../values';
1
+ @import (less) "../values";
2
2
  @import (less) "../variables.less";
3
3
 
4
4
  :root {
@@ -12,11 +12,11 @@
12
12
  display: static;
13
13
  width: @xl;
14
14
  object-fit: cover;
15
- height: calc(@xl*2/3);
15
+ height: calc(@xl*2 / 3);
16
16
  margin: 0 auto;
17
17
 
18
18
  @media @tablet {
19
- height: calc(100vw*2/3);
19
+ height: calc(100vw * 2 / 3);
20
20
  }
21
21
  }
22
22
 
@@ -29,18 +29,18 @@
29
29
 
30
30
  @media @tablet {
31
31
  width: @xl;
32
- height: calc(100vw*2/3);
32
+ height: calc(100vw * 2 / 3);
33
33
  }
34
34
  }
35
35
 
36
36
  .c-img-slideshow-side-by-side {
37
37
  object-fit: cover;
38
38
  width: 100%;
39
- height: calc(50vw * 2/3);
39
+ height: calc(50vw * 2 / 3);
40
40
  padding: @s16;
41
41
 
42
42
  @media (max-width: @lg) {
43
- height: calc(100vw*2/3);
43
+ height: calc(100vw * 2 / 3);
44
44
  }
45
45
  }
46
46
 
@@ -54,14 +54,14 @@
54
54
 
55
55
  @media (max-width: @lg) {
56
56
  height: calc(90vh - 37px);
57
- width: calc(90vh*2/3);
57
+ width: calc(90vh * 2 / 3);
58
58
  min-height: unset;
59
59
  min-width: unset;
60
60
  }
61
61
 
62
62
  @media @mobile {
63
63
  width: 90vw;
64
- height: calc(90vw*3/2);
64
+ height: calc(90vw * 3 / 2);
65
65
  padding: 0;
66
66
  }
67
67
  }
@@ -77,14 +77,18 @@
77
77
  }
78
78
 
79
79
  .c-container-small-visual {
80
- height: calc(var(--img-bottom-padding-fraction)*var(--small-visual-max-width));
80
+ height: calc(
81
+ var(--img-bottom-padding-fraction) * var(--small-visual-max-width)
82
+ );
81
83
  max-width: var(--small-visual-max-width);
82
84
  width: calc(100vw - 32px);
83
85
  margin: auto;
84
86
 
85
87
  @media @mobile {
86
- max-height: calc(var(--img-bottom-padding-fraction)*var(--small-visual-max-width));
87
- height: calc(var(--img-bottom-padding-fraction)*(100vw - 32px));
88
+ max-height: calc(
89
+ var(--img-bottom-padding-fraction) * var(--small-visual-max-width)
90
+ );
91
+ height: calc(var(--img-bottom-padding-fraction) * (100vw - 32px));
88
92
  margin: auto;
89
93
  }
90
94
  }
@@ -146,11 +150,11 @@
146
150
 
147
151
  .c-img-side-by-side {
148
152
  width: 50vw;
149
- height: var(--img-height-viewport);
153
+ // height: var(--img-height-viewport); // Removing the height, because supplying height and width will ALWAYS stretch the image
150
154
 
151
155
  @media (max-width: @lg) {
152
156
  width: 100vw;
153
- max-height: calc(100vw*2/3);
157
+ max-height: calc(100vw * 2 / 3);
154
158
  height: auto;
155
159
  }
156
160
  }
@@ -162,7 +166,7 @@
162
166
 
163
167
  .c-img-side-by-side-portrait {
164
168
  object-fit: cover;
165
- width: calc(90vh * 2/3);
169
+ width: calc(90vh * 2 / 3);
166
170
  height: 100%;
167
171
  min-width: 400px;
168
172
  min-height: 600px;
@@ -198,4 +202,4 @@
198
202
  @media (max-width: @lg) {
199
203
  padding: @s16;
200
204
  }
201
- }
205
+ }