@surfside/ads-core-mock 0.1.21 → 0.1.23
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/README.md +15 -15
- package/lib/cjs/BuildInfo.js +1 -1
- package/lib/cjs/BuildInfo.js.map +1 -1
- package/lib/cjs/mock/Bidder.js +52 -52
- package/lib/cjs/mock/Configuration.js +251 -251
- package/lib/esm/BuildInfo.js +1 -1
- package/lib/esm/BuildInfo.js.map +1 -1
- package/lib/esm/mock/Bidder.js +52 -52
- package/lib/esm/mock/Configuration.js +251 -251
- package/package.json +36 -36
|
@@ -9,257 +9,257 @@ const ads_core_1 = require("@surfside/ads-core");
|
|
|
9
9
|
/**
|
|
10
10
|
* A mock configuration service that returns a hard-coded configuration. Enables geo and IP targeting by default.
|
|
11
11
|
*/
|
|
12
|
-
const productCardTemplate = (data) => `
|
|
13
|
-
<div class="mock-product-card">
|
|
14
|
-
<div class="card-shadow-area"></div>
|
|
15
|
-
<div class="card-pattern-area"></div>
|
|
16
|
-
<div class="main-card-area">
|
|
17
|
-
<div class="product-image" _mousemove="moveImage" _mouseleave="stopMove">
|
|
18
|
-
<img src="${data.product.image}" />
|
|
19
|
-
</div>
|
|
20
|
-
<div class="product-data">
|
|
21
|
-
<h1>
|
|
22
|
-
${data.product.name}
|
|
23
|
-
<div class="filter"></div>
|
|
24
|
-
</h1>
|
|
25
|
-
<div class="brand">
|
|
26
|
-
<div class="horizontal-rule"></div>
|
|
27
|
-
<span>by ${data.product.brandName}</span>
|
|
28
|
-
</div>
|
|
29
|
-
<p>${data.product.details}</p>
|
|
30
|
-
</div>
|
|
31
|
-
<a _click="click" target="_blank">
|
|
32
|
-
<div class="cta">
|
|
33
|
-
Add To Cart
|
|
34
|
-
</div>
|
|
35
|
-
</a>
|
|
36
|
-
</div>
|
|
12
|
+
const productCardTemplate = (data) => `
|
|
13
|
+
<div class="mock-product-card">
|
|
14
|
+
<div class="card-shadow-area"></div>
|
|
15
|
+
<div class="card-pattern-area"></div>
|
|
16
|
+
<div class="main-card-area">
|
|
17
|
+
<div class="product-image" _mousemove="moveImage" _mouseleave="stopMove">
|
|
18
|
+
<img src="${data.product.image}" />
|
|
19
|
+
</div>
|
|
20
|
+
<div class="product-data">
|
|
21
|
+
<h1>
|
|
22
|
+
${data.product.name}
|
|
23
|
+
<div class="filter"></div>
|
|
24
|
+
</h1>
|
|
25
|
+
<div class="brand">
|
|
26
|
+
<div class="horizontal-rule"></div>
|
|
27
|
+
<span>by ${data.product.brandName}</span>
|
|
28
|
+
</div>
|
|
29
|
+
<p>${data.product.details}</p>
|
|
30
|
+
</div>
|
|
31
|
+
<a _click="click" target="_blank">
|
|
32
|
+
<div class="cta">
|
|
33
|
+
Add To Cart
|
|
34
|
+
</div>
|
|
35
|
+
</a>
|
|
36
|
+
</div>
|
|
37
37
|
</div>`;
|
|
38
|
-
const productCardStylesheet = `
|
|
39
|
-
@keyframes scrollBackground {
|
|
40
|
-
from {
|
|
41
|
-
background-position: 0px 0px;
|
|
42
|
-
}
|
|
43
|
-
to {
|
|
44
|
-
background-position: 50px 50px;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.mock-product-card {
|
|
49
|
-
display: none;
|
|
50
|
-
display: flex;
|
|
51
|
-
flex-grow: 1;
|
|
52
|
-
flex-direction: column;
|
|
53
|
-
position: relative;
|
|
54
|
-
margin-right: 30px;
|
|
55
|
-
|
|
56
|
-
.product-image {
|
|
57
|
-
|
|
58
|
-
width: calc(100% - 20px);
|
|
59
|
-
margin: 10px;
|
|
60
|
-
transition: transform 0.3s;
|
|
61
|
-
z-index: 3;
|
|
62
|
-
|
|
63
|
-
&:hover {
|
|
64
|
-
transform: scale(1.25);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
img {
|
|
68
|
-
box-shadow: 4px 4px 1px -1px rgba(0, 0, 0, 0.2), 0px 0px 4px 0px rgba(0, 0, 0, 0.2);
|
|
69
|
-
transition: transform 0.1s;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.product-data {
|
|
74
|
-
display: flex;
|
|
75
|
-
flex-direction: column;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.main-card-area {
|
|
79
|
-
width: 100%;
|
|
80
|
-
height: 100%;
|
|
81
|
-
background-color: rgb(244, 244, 244);
|
|
82
|
-
transform: translate(-10px, -10px);
|
|
83
|
-
transition: transform 0.1s ease-in, box-shadow 0.1s ease-in;
|
|
84
|
-
box-shadow: 0px 0px 3px 2px rgba(0, 0, 0, 0.2);
|
|
85
|
-
border: 2px dotted rgba(0, 0, 0, 0.4);
|
|
86
|
-
display: flex;
|
|
87
|
-
flex-direction: column;
|
|
88
|
-
justify-content: space-between;
|
|
89
|
-
|
|
90
|
-
.product-image {
|
|
91
|
-
img {
|
|
92
|
-
width: 100%;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
h1 {
|
|
97
|
-
font-family: 'Trebuchet MS', Helvetica, sans-serif;
|
|
98
|
-
letter-spacing: 3px;
|
|
99
|
-
text-transform: uppercase;
|
|
100
|
-
padding: 0 5px;
|
|
101
|
-
position: relative;
|
|
102
|
-
font-size: 22px;
|
|
103
|
-
margin-left: 5px;
|
|
104
|
-
text-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
|
|
105
|
-
|
|
106
|
-
.filter {
|
|
107
|
-
position: absolute;
|
|
108
|
-
background: #baf7db;
|
|
109
|
-
mix-blend-mode: multiply;
|
|
110
|
-
width: calc(4ch + 10px);
|
|
111
|
-
height: 1.5em;
|
|
112
|
-
top: 0;
|
|
113
|
-
left: 0;
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.brand {
|
|
118
|
-
font-family: 'Tahoma', Helvetica, sans-serif;
|
|
119
|
-
text-transform: uppercase;
|
|
120
|
-
color: rgba(0, 0, 0, 0.4);
|
|
121
|
-
font-size: 12px;
|
|
122
|
-
width: 100%;
|
|
123
|
-
display: flex;
|
|
124
|
-
justify-content: flex-end;
|
|
125
|
-
text-align: right;
|
|
126
|
-
letter-spacing: 2px;
|
|
127
|
-
box-sizing: border-box;
|
|
128
|
-
padding: 0 10px;
|
|
129
|
-
gap: 5px;
|
|
130
|
-
text-shadow: 0 0 1px rgba(0, 0, 0, 0.3);
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
.horizontal-rule {
|
|
134
|
-
height: 2px;
|
|
135
|
-
background: #baf7db;
|
|
136
|
-
mix-blend-mode: multiply;
|
|
137
|
-
flex-grow: 1;
|
|
138
|
-
box-sizing: border-box;
|
|
139
|
-
padding: 0 5px;
|
|
140
|
-
transform: translateY(6px);
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
span {
|
|
144
|
-
flex-shrink: 2;
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
p {
|
|
149
|
-
font-family: 'Tahoma', Helvetica, sans-serif;
|
|
150
|
-
padding: 0 10px;
|
|
151
|
-
margin: 10px auto;
|
|
152
|
-
font-size: 14px;
|
|
153
|
-
line-height: 32px;
|
|
154
|
-
display: -webkit-box;
|
|
155
|
-
-webkit-line-clamp: 3;
|
|
156
|
-
-webkit-box-orient: vertical;
|
|
157
|
-
overflow: hidden;
|
|
158
|
-
text-overflow: ellipsis " [...]";
|
|
159
|
-
color: rgb(59, 48, 68);
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
> a {
|
|
163
|
-
text-decoration: none;
|
|
164
|
-
letter-spacing: 3px;
|
|
165
|
-
color: rgb(59, 48, 68);
|
|
166
|
-
padding: 10px 10px;
|
|
167
|
-
}
|
|
168
|
-
.cta {
|
|
169
|
-
width: 100%;
|
|
170
|
-
background: #baf7db;
|
|
171
|
-
padding: 5px 10px;
|
|
172
|
-
display: flex;
|
|
173
|
-
justify-content: space-around;
|
|
174
|
-
box-sizing: border-box;
|
|
175
|
-
font-family: 'Trebuchet MS', Helvetica, sans-serif;
|
|
176
|
-
border: 2px dotted grey;
|
|
177
|
-
transition: background 0.1s ease-in, color 0.1s ease-in;
|
|
178
|
-
font-weight: 100;
|
|
179
|
-
|
|
180
|
-
&:hover {
|
|
181
|
-
background: #c0abff;
|
|
182
|
-
color: #ecf0f1;
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
.card-shadow-area {
|
|
188
|
-
position: absolute;
|
|
189
|
-
left: 0;
|
|
190
|
-
top: 0;
|
|
191
|
-
width: 100%;
|
|
192
|
-
height: 100%;
|
|
193
|
-
background: #c0abff;
|
|
194
|
-
border: 2px dashed rgba(0, 0, 0, 0.8);
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
.card-pattern-area {
|
|
198
|
-
position: absolute;
|
|
199
|
-
left: 0;
|
|
200
|
-
top: 0;
|
|
201
|
-
width: 100%;
|
|
202
|
-
height: 100%;
|
|
203
|
-
|
|
204
|
-
background-color: #c0abff;
|
|
205
|
-
background-image: linear-gradient(#f4f4f4 2px, transparent 2px),
|
|
206
|
-
linear-gradient(90deg, #f4f4f4 2px, transparent 2px),
|
|
207
|
-
linear-gradient(#f4f4f4 1px, transparent 1px),
|
|
208
|
-
linear-gradient(90deg, #f4f4f4 1px, #c0abff 1px);
|
|
209
|
-
background-size: 50px 50px, 50px 50px, 10px 10px, 10px 10px;
|
|
210
|
-
background-position: -2px -2px, -2px -2px, -1px -1px, -1px -1px;
|
|
211
|
-
|
|
212
|
-
opacity: 0;
|
|
213
|
-
transition: opacity 0.4s ease-in;
|
|
214
|
-
animation: scrollBackground 2s linear infinite;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
&:hover {
|
|
218
|
-
.main-card-area {
|
|
219
|
-
transform: translate(-20px, -20px);
|
|
220
|
-
box-shadow: 10px 10px 7px 2px rgba(0, 0, 0, 0.2);
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
.card-pattern-area {
|
|
224
|
-
opacity: 0.7;
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
.surf-product-card.sponsored {
|
|
230
|
-
position: relative;
|
|
231
|
-
|
|
232
|
-
&::after {
|
|
233
|
-
left: -18px;
|
|
234
|
-
letter-spacing: 2px;
|
|
235
|
-
text-transform: uppercase;
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
|
|
38
|
+
const productCardStylesheet = `
|
|
39
|
+
@keyframes scrollBackground {
|
|
40
|
+
from {
|
|
41
|
+
background-position: 0px 0px;
|
|
42
|
+
}
|
|
43
|
+
to {
|
|
44
|
+
background-position: 50px 50px;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.mock-product-card {
|
|
49
|
+
display: none;
|
|
50
|
+
display: flex;
|
|
51
|
+
flex-grow: 1;
|
|
52
|
+
flex-direction: column;
|
|
53
|
+
position: relative;
|
|
54
|
+
margin-right: 30px;
|
|
55
|
+
|
|
56
|
+
.product-image {
|
|
57
|
+
|
|
58
|
+
width: calc(100% - 20px);
|
|
59
|
+
margin: 10px;
|
|
60
|
+
transition: transform 0.3s;
|
|
61
|
+
z-index: 3;
|
|
62
|
+
|
|
63
|
+
&:hover {
|
|
64
|
+
transform: scale(1.25);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
img {
|
|
68
|
+
box-shadow: 4px 4px 1px -1px rgba(0, 0, 0, 0.2), 0px 0px 4px 0px rgba(0, 0, 0, 0.2);
|
|
69
|
+
transition: transform 0.1s;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.product-data {
|
|
74
|
+
display: flex;
|
|
75
|
+
flex-direction: column;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.main-card-area {
|
|
79
|
+
width: 100%;
|
|
80
|
+
height: 100%;
|
|
81
|
+
background-color: rgb(244, 244, 244);
|
|
82
|
+
transform: translate(-10px, -10px);
|
|
83
|
+
transition: transform 0.1s ease-in, box-shadow 0.1s ease-in;
|
|
84
|
+
box-shadow: 0px 0px 3px 2px rgba(0, 0, 0, 0.2);
|
|
85
|
+
border: 2px dotted rgba(0, 0, 0, 0.4);
|
|
86
|
+
display: flex;
|
|
87
|
+
flex-direction: column;
|
|
88
|
+
justify-content: space-between;
|
|
89
|
+
|
|
90
|
+
.product-image {
|
|
91
|
+
img {
|
|
92
|
+
width: 100%;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
h1 {
|
|
97
|
+
font-family: 'Trebuchet MS', Helvetica, sans-serif;
|
|
98
|
+
letter-spacing: 3px;
|
|
99
|
+
text-transform: uppercase;
|
|
100
|
+
padding: 0 5px;
|
|
101
|
+
position: relative;
|
|
102
|
+
font-size: 22px;
|
|
103
|
+
margin-left: 5px;
|
|
104
|
+
text-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
|
|
105
|
+
|
|
106
|
+
.filter {
|
|
107
|
+
position: absolute;
|
|
108
|
+
background: #baf7db;
|
|
109
|
+
mix-blend-mode: multiply;
|
|
110
|
+
width: calc(4ch + 10px);
|
|
111
|
+
height: 1.5em;
|
|
112
|
+
top: 0;
|
|
113
|
+
left: 0;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.brand {
|
|
118
|
+
font-family: 'Tahoma', Helvetica, sans-serif;
|
|
119
|
+
text-transform: uppercase;
|
|
120
|
+
color: rgba(0, 0, 0, 0.4);
|
|
121
|
+
font-size: 12px;
|
|
122
|
+
width: 100%;
|
|
123
|
+
display: flex;
|
|
124
|
+
justify-content: flex-end;
|
|
125
|
+
text-align: right;
|
|
126
|
+
letter-spacing: 2px;
|
|
127
|
+
box-sizing: border-box;
|
|
128
|
+
padding: 0 10px;
|
|
129
|
+
gap: 5px;
|
|
130
|
+
text-shadow: 0 0 1px rgba(0, 0, 0, 0.3);
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
.horizontal-rule {
|
|
134
|
+
height: 2px;
|
|
135
|
+
background: #baf7db;
|
|
136
|
+
mix-blend-mode: multiply;
|
|
137
|
+
flex-grow: 1;
|
|
138
|
+
box-sizing: border-box;
|
|
139
|
+
padding: 0 5px;
|
|
140
|
+
transform: translateY(6px);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
span {
|
|
144
|
+
flex-shrink: 2;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
p {
|
|
149
|
+
font-family: 'Tahoma', Helvetica, sans-serif;
|
|
150
|
+
padding: 0 10px;
|
|
151
|
+
margin: 10px auto;
|
|
152
|
+
font-size: 14px;
|
|
153
|
+
line-height: 32px;
|
|
154
|
+
display: -webkit-box;
|
|
155
|
+
-webkit-line-clamp: 3;
|
|
156
|
+
-webkit-box-orient: vertical;
|
|
157
|
+
overflow: hidden;
|
|
158
|
+
text-overflow: ellipsis " [...]";
|
|
159
|
+
color: rgb(59, 48, 68);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
> a {
|
|
163
|
+
text-decoration: none;
|
|
164
|
+
letter-spacing: 3px;
|
|
165
|
+
color: rgb(59, 48, 68);
|
|
166
|
+
padding: 10px 10px;
|
|
167
|
+
}
|
|
168
|
+
.cta {
|
|
169
|
+
width: 100%;
|
|
170
|
+
background: #baf7db;
|
|
171
|
+
padding: 5px 10px;
|
|
172
|
+
display: flex;
|
|
173
|
+
justify-content: space-around;
|
|
174
|
+
box-sizing: border-box;
|
|
175
|
+
font-family: 'Trebuchet MS', Helvetica, sans-serif;
|
|
176
|
+
border: 2px dotted grey;
|
|
177
|
+
transition: background 0.1s ease-in, color 0.1s ease-in;
|
|
178
|
+
font-weight: 100;
|
|
179
|
+
|
|
180
|
+
&:hover {
|
|
181
|
+
background: #c0abff;
|
|
182
|
+
color: #ecf0f1;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.card-shadow-area {
|
|
188
|
+
position: absolute;
|
|
189
|
+
left: 0;
|
|
190
|
+
top: 0;
|
|
191
|
+
width: 100%;
|
|
192
|
+
height: 100%;
|
|
193
|
+
background: #c0abff;
|
|
194
|
+
border: 2px dashed rgba(0, 0, 0, 0.8);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.card-pattern-area {
|
|
198
|
+
position: absolute;
|
|
199
|
+
left: 0;
|
|
200
|
+
top: 0;
|
|
201
|
+
width: 100%;
|
|
202
|
+
height: 100%;
|
|
203
|
+
|
|
204
|
+
background-color: #c0abff;
|
|
205
|
+
background-image: linear-gradient(#f4f4f4 2px, transparent 2px),
|
|
206
|
+
linear-gradient(90deg, #f4f4f4 2px, transparent 2px),
|
|
207
|
+
linear-gradient(#f4f4f4 1px, transparent 1px),
|
|
208
|
+
linear-gradient(90deg, #f4f4f4 1px, #c0abff 1px);
|
|
209
|
+
background-size: 50px 50px, 50px 50px, 10px 10px, 10px 10px;
|
|
210
|
+
background-position: -2px -2px, -2px -2px, -1px -1px, -1px -1px;
|
|
211
|
+
|
|
212
|
+
opacity: 0;
|
|
213
|
+
transition: opacity 0.4s ease-in;
|
|
214
|
+
animation: scrollBackground 2s linear infinite;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
&:hover {
|
|
218
|
+
.main-card-area {
|
|
219
|
+
transform: translate(-20px, -20px);
|
|
220
|
+
box-shadow: 10px 10px 7px 2px rgba(0, 0, 0, 0.2);
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.card-pattern-area {
|
|
224
|
+
opacity: 0.7;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.surf-product-card.sponsored {
|
|
230
|
+
position: relative;
|
|
231
|
+
|
|
232
|
+
&::after {
|
|
233
|
+
left: -18px;
|
|
234
|
+
letter-spacing: 2px;
|
|
235
|
+
text-transform: uppercase;
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
|
|
239
239
|
`;
|
|
240
|
-
const carouselStylesheet = `
|
|
241
|
-
.surf-carousel {
|
|
242
|
-
.sponsored-carousel {
|
|
243
|
-
font-family: 'Trebuchet MS', Verdana, Geneva, Tahoma, sans-serif;
|
|
244
|
-
margin: 0 0 20px 0;
|
|
245
|
-
padding: 0;
|
|
246
|
-
font-size: 26px;
|
|
247
|
-
font-weight: 100;
|
|
248
|
-
letter-spacing: 3px;
|
|
249
|
-
text-transform: uppercase;
|
|
250
|
-
text-decoration: underline dashed;
|
|
251
|
-
color: rgba(0, 0, 0, 0.7);
|
|
252
|
-
|
|
253
|
-
&.sponsoredByOne::before {
|
|
254
|
-
content: 'Brought to you by ';
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
&.recommended::before {
|
|
258
|
-
content: 'Suggested';
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
|
-
}
|
|
262
|
-
|
|
240
|
+
const carouselStylesheet = `
|
|
241
|
+
.surf-carousel {
|
|
242
|
+
.sponsored-carousel {
|
|
243
|
+
font-family: 'Trebuchet MS', Verdana, Geneva, Tahoma, sans-serif;
|
|
244
|
+
margin: 0 0 20px 0;
|
|
245
|
+
padding: 0;
|
|
246
|
+
font-size: 26px;
|
|
247
|
+
font-weight: 100;
|
|
248
|
+
letter-spacing: 3px;
|
|
249
|
+
text-transform: uppercase;
|
|
250
|
+
text-decoration: underline dashed;
|
|
251
|
+
color: rgba(0, 0, 0, 0.7);
|
|
252
|
+
|
|
253
|
+
&.sponsoredByOne::before {
|
|
254
|
+
content: 'Brought to you by ';
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
&.recommended::before {
|
|
258
|
+
content: 'Suggested';
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
|
|
263
263
|
`;
|
|
264
264
|
const clickThroughUrlTemplate = (data) => `https://surfside.io/${data.product.brandName}`;
|
|
265
265
|
const MockGetConfiguration = async (logger) => {
|
|
@@ -287,8 +287,8 @@ const MockGetConfiguration = async (logger) => {
|
|
|
287
287
|
(target.clientWidth / 2);
|
|
288
288
|
const dy = (offsetY - target.clientHeight / 2) /
|
|
289
289
|
(target.clientHeight / 2);
|
|
290
|
-
img.style.transform = `perspective(1000px)
|
|
291
|
-
rotateY(${dx * 40}deg)
|
|
290
|
+
img.style.transform = `perspective(1000px)
|
|
291
|
+
rotateY(${dx * 40}deg)
|
|
292
292
|
rotateX(${-dy * 40}deg)`;
|
|
293
293
|
},
|
|
294
294
|
'stopMove': (e) => {
|
package/lib/esm/BuildInfo.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const SurfsideAdsCoreMockVersionInfo = { buildBranch: '
|
|
1
|
+
export const SurfsideAdsCoreMockVersionInfo = { buildBranch: 'hotfix-0.1.23', buildHash: 'f4f4536', buildVer: '0.1.23' };
|
|
2
2
|
//# sourceMappingURL=BuildInfo.js.map
|
package/lib/esm/BuildInfo.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BuildInfo.js","sourceRoot":"src/","sources":["BuildInfo.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,8BAA8B,GAAG,EAAE,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"BuildInfo.js","sourceRoot":"src/","sources":["BuildInfo.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,8BAA8B,GAAG,EAAE,WAAW,EAAE,eAAe,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAC,CAAC"}
|
package/lib/esm/mock/Bidder.js
CHANGED
|
@@ -163,58 +163,58 @@ const makeVideo = (requestId, impid, videoUrl) => ({
|
|
|
163
163
|
impid,
|
|
164
164
|
price: 3.50,
|
|
165
165
|
adid: '123456',
|
|
166
|
-
adm: `<?xml version="1.0" encoding="utf-8"?>
|
|
167
|
-
<VAST version="3.0">
|
|
168
|
-
<Ad id="preroll">
|
|
169
|
-
<InLine>
|
|
170
|
-
<Impression id="impression"><![CDATA[http://localhost:3005/impression]]></Impression>
|
|
171
|
-
<AdSystem><![CDATA[2.0]]></AdSystem>
|
|
172
|
-
<AdTitle><![CDATA[Title]]></AdTitle>
|
|
173
|
-
<Creatives>
|
|
174
|
-
<Creative>
|
|
175
|
-
<CompanionAds/>
|
|
176
|
-
</Creative>
|
|
177
|
-
<Creative>
|
|
178
|
-
<Linear>
|
|
179
|
-
<TrackingEvents>
|
|
180
|
-
<Tracking event="start"><![CDATA[http://localhost:3005/start]]>
|
|
181
|
-
</Tracking>
|
|
182
|
-
<Tracking event="firstQuartile"><![CDATA[http://localhost:3005/first]]>
|
|
183
|
-
</Tracking>
|
|
184
|
-
<Tracking event="midpoint"><![CDATA[http://localhost:3005/midpoint]]>
|
|
185
|
-
</Tracking>
|
|
186
|
-
<Tracking event="thirdQuartile"><![CDATA[http://localhost:3005/third]]>
|
|
187
|
-
</Tracking>
|
|
188
|
-
<Tracking event="complete"><![CDATA[http://localhost:3005/complete]]>
|
|
189
|
-
</Tracking>
|
|
190
|
-
<Tracking event="stop"><![CDATA[http://localhost:3005/stop]]>
|
|
191
|
-
</Tracking>
|
|
192
|
-
</TrackingEvents>
|
|
193
|
-
<Duration><![CDATA[00:30]]></Duration>
|
|
194
|
-
<MediaFiles>
|
|
195
|
-
<MediaFile
|
|
196
|
-
delivery="progressive"
|
|
197
|
-
type="video/mp4"
|
|
198
|
-
width="320"
|
|
199
|
-
height="240"
|
|
200
|
-
><![CDATA[${videoUrl}]]></MediaFile>
|
|
201
|
-
</MediaFiles>
|
|
202
|
-
<VideoClicks>
|
|
203
|
-
<ClickThrough id="scanscout"><![CDATA[{SURF_COMMERCE_URL}]]>
|
|
204
|
-
</ClickThrough>
|
|
205
|
-
</VideoClicks>
|
|
206
|
-
</Linear>
|
|
207
|
-
<Extensions>
|
|
208
|
-
<Extension>
|
|
209
|
-
<Name>Wicked Sour Gummies</Name>
|
|
210
|
-
<BrandName>Surfside</BrandName>
|
|
211
|
-
<ProductType>Edible</ProductType>
|
|
212
|
-
</Extension>
|
|
213
|
-
</Extensions>
|
|
214
|
-
</Creative>
|
|
215
|
-
</Creatives>
|
|
216
|
-
</InLine>
|
|
217
|
-
</Ad>
|
|
166
|
+
adm: `<?xml version="1.0" encoding="utf-8"?>
|
|
167
|
+
<VAST version="3.0">
|
|
168
|
+
<Ad id="preroll">
|
|
169
|
+
<InLine>
|
|
170
|
+
<Impression id="impression"><![CDATA[http://localhost:3005/impression]]></Impression>
|
|
171
|
+
<AdSystem><![CDATA[2.0]]></AdSystem>
|
|
172
|
+
<AdTitle><![CDATA[Title]]></AdTitle>
|
|
173
|
+
<Creatives>
|
|
174
|
+
<Creative>
|
|
175
|
+
<CompanionAds/>
|
|
176
|
+
</Creative>
|
|
177
|
+
<Creative>
|
|
178
|
+
<Linear>
|
|
179
|
+
<TrackingEvents>
|
|
180
|
+
<Tracking event="start"><![CDATA[http://localhost:3005/start]]>
|
|
181
|
+
</Tracking>
|
|
182
|
+
<Tracking event="firstQuartile"><![CDATA[http://localhost:3005/first]]>
|
|
183
|
+
</Tracking>
|
|
184
|
+
<Tracking event="midpoint"><![CDATA[http://localhost:3005/midpoint]]>
|
|
185
|
+
</Tracking>
|
|
186
|
+
<Tracking event="thirdQuartile"><![CDATA[http://localhost:3005/third]]>
|
|
187
|
+
</Tracking>
|
|
188
|
+
<Tracking event="complete"><![CDATA[http://localhost:3005/complete]]>
|
|
189
|
+
</Tracking>
|
|
190
|
+
<Tracking event="stop"><![CDATA[http://localhost:3005/stop]]>
|
|
191
|
+
</Tracking>
|
|
192
|
+
</TrackingEvents>
|
|
193
|
+
<Duration><![CDATA[00:30]]></Duration>
|
|
194
|
+
<MediaFiles>
|
|
195
|
+
<MediaFile
|
|
196
|
+
delivery="progressive"
|
|
197
|
+
type="video/mp4"
|
|
198
|
+
width="320"
|
|
199
|
+
height="240"
|
|
200
|
+
><![CDATA[${videoUrl}]]></MediaFile>
|
|
201
|
+
</MediaFiles>
|
|
202
|
+
<VideoClicks>
|
|
203
|
+
<ClickThrough id="scanscout"><![CDATA[{SURF_COMMERCE_URL}]]>
|
|
204
|
+
</ClickThrough>
|
|
205
|
+
</VideoClicks>
|
|
206
|
+
</Linear>
|
|
207
|
+
<Extensions>
|
|
208
|
+
<Extension>
|
|
209
|
+
<Name>Wicked Sour Gummies</Name>
|
|
210
|
+
<BrandName>Surfside</BrandName>
|
|
211
|
+
<ProductType>Edible</ProductType>
|
|
212
|
+
</Extension>
|
|
213
|
+
</Extensions>
|
|
214
|
+
</Creative>
|
|
215
|
+
</Creatives>
|
|
216
|
+
</InLine>
|
|
217
|
+
</Ad>
|
|
218
218
|
</VAST>`,
|
|
219
219
|
nurl: 'https://www.surfside.io/win-notice'
|
|
220
220
|
}]
|