@surfside/ads-core-mock 0.2.0 → 0.3.0-0ff9dfa7.0

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.
@@ -2,272 +2,272 @@ import { Ctx, Ok } from '@surfside/ads-core';
2
2
  /**
3
3
  * A mock configuration service that returns a hard-coded configuration. Enables geo and IP targeting by default.
4
4
  */
5
- const productCardTemplate = (data) => `
6
- <div class="mock-product-card">
7
- <div class="card-shadow-area"></div>
8
- <div class="card-pattern-area"></div>
9
- <div class="main-card-area">
10
- <div class="product-image" _mousemove="moveImage" _mouseleave="stopMove">
11
- <img src="${data.product.image}" />
12
- </div>
13
- <div class="product-data">
14
- <h1>
15
- ${data.product.name}
16
- <div class="filter"></div>
17
- </h1>
18
- <div class="brand">
19
- <div class="horizontal-rule"></div>
20
- <span>by ${data.product.brandName}</span>
21
- </div>
22
- <p>${data.product.details}</p>
23
- </div>
24
- <a _click="click" target="_blank">
25
- <div class="cta">
26
- Add To Cart
27
- </div>
28
- </a>
29
- </div>
5
+ const productCardTemplate = (data) => `
6
+ <div class="mock-product-card">
7
+ <div class="card-shadow-area"></div>
8
+ <div class="card-pattern-area"></div>
9
+ <div class="main-card-area">
10
+ <div class="product-image" _mousemove="moveImage" _mouseleave="stopMove">
11
+ <img src="${data.product.image}" />
12
+ </div>
13
+ <div class="product-data">
14
+ <h1>
15
+ ${data.product.name}
16
+ <div class="filter"></div>
17
+ </h1>
18
+ <div class="brand">
19
+ <div class="horizontal-rule"></div>
20
+ <span>by ${data.product.brandName}</span>
21
+ </div>
22
+ <p>${data.product.details}</p>
23
+ </div>
24
+ <a _click="click" target="_blank">
25
+ <div class="cta">
26
+ Add To Cart
27
+ </div>
28
+ </a>
29
+ </div>
30
30
  </div>`;
31
- const productCardStylesheet = `
32
- @keyframes scrollBackground {
33
- from {
34
- background-position: 0px 0px;
35
- }
36
- to {
37
- background-position: 50px 50px;
38
- }
39
- }
40
-
41
- .mock-product-card {
42
- display: none;
43
- display: flex;
44
- flex-grow: 1;
45
- flex-direction: column;
46
- position: relative;
47
- margin-right: 30px;
48
-
49
- .product-image {
50
-
51
- width: calc(100% - 20px);
52
- margin: 10px;
53
- transition: transform 0.3s;
54
- z-index: 3;
55
-
56
- &:hover {
57
- transform: scale(1.25);
58
- }
59
-
60
- img {
61
- box-shadow: 4px 4px 1px -1px rgba(0, 0, 0, 0.2), 0px 0px 4px 0px rgba(0, 0, 0, 0.2);
62
- transition: transform 0.1s;
63
- }
64
- }
65
-
66
- .product-data {
67
- display: flex;
68
- flex-direction: column;
69
- }
70
-
71
- .main-card-area {
72
- width: 100%;
73
- height: 100%;
74
- background-color: rgb(244, 244, 244);
75
- transform: translate(-10px, -10px);
76
- transition: transform 0.1s ease-in, box-shadow 0.1s ease-in;
77
- box-shadow: 0px 0px 3px 2px rgba(0, 0, 0, 0.2);
78
- border: 2px dotted rgba(0, 0, 0, 0.4);
79
- display: flex;
80
- flex-direction: column;
81
- justify-content: space-between;
82
-
83
- .product-image {
84
- img {
85
- width: 100%;
86
- }
87
- }
88
-
89
- h1 {
90
- font-family: 'Trebuchet MS', Helvetica, sans-serif;
91
- letter-spacing: 3px;
92
- text-transform: uppercase;
93
- padding: 0 5px;
94
- position: relative;
95
- font-size: 22px;
96
- margin-left: 5px;
97
- text-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
98
-
99
- .filter {
100
- position: absolute;
101
- background: #baf7db;
102
- mix-blend-mode: multiply;
103
- width: calc(4ch + 10px);
104
- height: 1.5em;
105
- top: 0;
106
- left: 0;
107
- }
108
- }
109
-
110
- .brand {
111
- font-family: 'Tahoma', Helvetica, sans-serif;
112
- text-transform: uppercase;
113
- color: rgba(0, 0, 0, 0.4);
114
- font-size: 12px;
115
- width: 100%;
116
- display: flex;
117
- justify-content: flex-end;
118
- text-align: right;
119
- letter-spacing: 2px;
120
- box-sizing: border-box;
121
- padding: 0 10px;
122
- gap: 5px;
123
- text-shadow: 0 0 1px rgba(0, 0, 0, 0.3);
124
-
125
-
126
- .horizontal-rule {
127
- height: 2px;
128
- background: #baf7db;
129
- mix-blend-mode: multiply;
130
- flex-grow: 1;
131
- box-sizing: border-box;
132
- padding: 0 5px;
133
- transform: translateY(6px);
134
- }
135
-
136
- span {
137
- flex-shrink: 2;
138
- }
139
- }
140
-
141
- p {
142
- font-family: 'Tahoma', Helvetica, sans-serif;
143
- padding: 0 10px;
144
- margin: 10px auto;
145
- font-size: 14px;
146
- line-height: 32px;
147
- display: -webkit-box;
148
- -webkit-line-clamp: 3;
149
- -webkit-box-orient: vertical;
150
- overflow: hidden;
151
- text-overflow: ellipsis " [...]";
152
- color: rgb(59, 48, 68);
153
- }
154
-
155
- > a {
156
- text-decoration: none;
157
- letter-spacing: 3px;
158
- color: rgb(59, 48, 68);
159
- padding: 10px 10px;
160
- }
161
- .cta {
162
- width: 100%;
163
- background: #baf7db;
164
- padding: 5px 10px;
165
- display: flex;
166
- justify-content: space-around;
167
- box-sizing: border-box;
168
- font-family: 'Trebuchet MS', Helvetica, sans-serif;
169
- border: 2px dotted grey;
170
- transition: background 0.1s ease-in, color 0.1s ease-in;
171
- font-weight: 100;
172
-
173
- &:hover {
174
- background: #c0abff;
175
- color: #ecf0f1;
176
- }
177
- }
178
- }
179
-
180
- .card-shadow-area {
181
- position: absolute;
182
- left: 0;
183
- top: 0;
184
- width: 100%;
185
- height: 100%;
186
- background: #c0abff;
187
- border: 2px dashed rgba(0, 0, 0, 0.8);
188
- }
189
-
190
- .card-pattern-area {
191
- position: absolute;
192
- left: 0;
193
- top: 0;
194
- width: 100%;
195
- height: 100%;
196
-
197
- background-color: #c0abff;
198
- background-image: linear-gradient(#f4f4f4 2px, transparent 2px),
199
- linear-gradient(90deg, #f4f4f4 2px, transparent 2px),
200
- linear-gradient(#f4f4f4 1px, transparent 1px),
201
- linear-gradient(90deg, #f4f4f4 1px, #c0abff 1px);
202
- background-size: 50px 50px, 50px 50px, 10px 10px, 10px 10px;
203
- background-position: -2px -2px, -2px -2px, -1px -1px, -1px -1px;
204
-
205
- opacity: 0;
206
- transition: opacity 0.4s ease-in;
207
- animation: scrollBackground 2s linear infinite;
208
- }
209
-
210
- &:hover {
211
- .main-card-area {
212
- transform: translate(-20px, -20px);
213
- box-shadow: 10px 10px 7px 2px rgba(0, 0, 0, 0.2);
214
- }
215
-
216
- .card-pattern-area {
217
- opacity: 0.7;
218
- }
219
- }
220
- }
221
-
222
- .surf-product-card.sponsored {
223
- position: relative;
224
-
225
- &::after {
226
- left: -18px;
227
- letter-spacing: 2px;
228
- text-transform: uppercase;
229
- }
230
- }
231
-
31
+ const productCardStylesheet = `
32
+ @keyframes scrollBackground {
33
+ from {
34
+ background-position: 0px 0px;
35
+ }
36
+ to {
37
+ background-position: 50px 50px;
38
+ }
39
+ }
40
+
41
+ .mock-product-card {
42
+ display: none;
43
+ display: flex;
44
+ flex-grow: 1;
45
+ flex-direction: column;
46
+ position: relative;
47
+ margin-right: 30px;
48
+
49
+ .product-image {
50
+
51
+ width: calc(100% - 20px);
52
+ margin: 10px;
53
+ transition: transform 0.3s;
54
+ z-index: 3;
55
+
56
+ &:hover {
57
+ transform: scale(1.25);
58
+ }
59
+
60
+ img {
61
+ box-shadow: 4px 4px 1px -1px rgba(0, 0, 0, 0.2), 0px 0px 4px 0px rgba(0, 0, 0, 0.2);
62
+ transition: transform 0.1s;
63
+ }
64
+ }
65
+
66
+ .product-data {
67
+ display: flex;
68
+ flex-direction: column;
69
+ }
70
+
71
+ .main-card-area {
72
+ width: 100%;
73
+ height: 100%;
74
+ background-color: rgb(244, 244, 244);
75
+ transform: translate(-10px, -10px);
76
+ transition: transform 0.1s ease-in, box-shadow 0.1s ease-in;
77
+ box-shadow: 0px 0px 3px 2px rgba(0, 0, 0, 0.2);
78
+ border: 2px dotted rgba(0, 0, 0, 0.4);
79
+ display: flex;
80
+ flex-direction: column;
81
+ justify-content: space-between;
82
+
83
+ .product-image {
84
+ img {
85
+ width: 100%;
86
+ }
87
+ }
88
+
89
+ h1 {
90
+ font-family: 'Trebuchet MS', Helvetica, sans-serif;
91
+ letter-spacing: 3px;
92
+ text-transform: uppercase;
93
+ padding: 0 5px;
94
+ position: relative;
95
+ font-size: 22px;
96
+ margin-left: 5px;
97
+ text-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
98
+
99
+ .filter {
100
+ position: absolute;
101
+ background: #baf7db;
102
+ mix-blend-mode: multiply;
103
+ width: calc(4ch + 10px);
104
+ height: 1.5em;
105
+ top: 0;
106
+ left: 0;
107
+ }
108
+ }
109
+
110
+ .brand {
111
+ font-family: 'Tahoma', Helvetica, sans-serif;
112
+ text-transform: uppercase;
113
+ color: rgba(0, 0, 0, 0.4);
114
+ font-size: 12px;
115
+ width: 100%;
116
+ display: flex;
117
+ justify-content: flex-end;
118
+ text-align: right;
119
+ letter-spacing: 2px;
120
+ box-sizing: border-box;
121
+ padding: 0 10px;
122
+ gap: 5px;
123
+ text-shadow: 0 0 1px rgba(0, 0, 0, 0.3);
124
+
125
+
126
+ .horizontal-rule {
127
+ height: 2px;
128
+ background: #baf7db;
129
+ mix-blend-mode: multiply;
130
+ flex-grow: 1;
131
+ box-sizing: border-box;
132
+ padding: 0 5px;
133
+ transform: translateY(6px);
134
+ }
135
+
136
+ span {
137
+ flex-shrink: 2;
138
+ }
139
+ }
140
+
141
+ p {
142
+ font-family: 'Tahoma', Helvetica, sans-serif;
143
+ padding: 0 10px;
144
+ margin: 10px auto;
145
+ font-size: 14px;
146
+ line-height: 32px;
147
+ display: -webkit-box;
148
+ -webkit-line-clamp: 3;
149
+ -webkit-box-orient: vertical;
150
+ overflow: hidden;
151
+ text-overflow: ellipsis " [...]";
152
+ color: rgb(59, 48, 68);
153
+ }
154
+
155
+ > a {
156
+ text-decoration: none;
157
+ letter-spacing: 3px;
158
+ color: rgb(59, 48, 68);
159
+ padding: 10px 10px;
160
+ }
161
+ .cta {
162
+ width: 100%;
163
+ background: #baf7db;
164
+ padding: 5px 10px;
165
+ display: flex;
166
+ justify-content: space-around;
167
+ box-sizing: border-box;
168
+ font-family: 'Trebuchet MS', Helvetica, sans-serif;
169
+ border: 2px dotted grey;
170
+ transition: background 0.1s ease-in, color 0.1s ease-in;
171
+ font-weight: 100;
172
+
173
+ &:hover {
174
+ background: #c0abff;
175
+ color: #ecf0f1;
176
+ }
177
+ }
178
+ }
179
+
180
+ .card-shadow-area {
181
+ position: absolute;
182
+ left: 0;
183
+ top: 0;
184
+ width: 100%;
185
+ height: 100%;
186
+ background: #c0abff;
187
+ border: 2px dashed rgba(0, 0, 0, 0.8);
188
+ }
189
+
190
+ .card-pattern-area {
191
+ position: absolute;
192
+ left: 0;
193
+ top: 0;
194
+ width: 100%;
195
+ height: 100%;
196
+
197
+ background-color: #c0abff;
198
+ background-image: linear-gradient(#f4f4f4 2px, transparent 2px),
199
+ linear-gradient(90deg, #f4f4f4 2px, transparent 2px),
200
+ linear-gradient(#f4f4f4 1px, transparent 1px),
201
+ linear-gradient(90deg, #f4f4f4 1px, #c0abff 1px);
202
+ background-size: 50px 50px, 50px 50px, 10px 10px, 10px 10px;
203
+ background-position: -2px -2px, -2px -2px, -1px -1px, -1px -1px;
204
+
205
+ opacity: 0;
206
+ transition: opacity 0.4s ease-in;
207
+ animation: scrollBackground 2s linear infinite;
208
+ }
209
+
210
+ &:hover {
211
+ .main-card-area {
212
+ transform: translate(-20px, -20px);
213
+ box-shadow: 10px 10px 7px 2px rgba(0, 0, 0, 0.2);
214
+ }
215
+
216
+ .card-pattern-area {
217
+ opacity: 0.7;
218
+ }
219
+ }
220
+ }
221
+
222
+ .surf-product-card.sponsored {
223
+ position: relative;
224
+
225
+ &::after {
226
+ left: -18px;
227
+ letter-spacing: 2px;
228
+ text-transform: uppercase;
229
+ }
230
+ }
231
+
232
232
  `;
233
- const carouselStylesheet = `
234
- :host {
235
- --surf-card-size: 300;
236
- }
237
-
238
- @media (max-width: 900px) {
239
- :host {
240
- --surf-card-size: 200;
241
- }
242
- }
243
-
244
- .surf-zone-ecf0f1 {
245
- --surf-card-size: 250;
246
- }
247
-
248
-
249
- .surf-carousel {
250
- .sponsored-carousel {
251
- font-family: 'Trebuchet MS', Verdana, Geneva, Tahoma, sans-serif;
252
- margin: 0 0 20px 0;
253
- padding: 0;
254
- font-size: 26px;
255
- font-weight: 100;
256
- letter-spacing: 3px;
257
- text-transform: uppercase;
258
- text-decoration: underline dashed;
259
- color: rgba(255, 255, 255, 0.7);
260
-
261
- &.sponsoredByOne::before {
262
- content: 'Brought to you by ';
263
- }
264
-
265
- &.recommended::before {
266
- content: 'Suggested';
267
- }
268
- }
269
- }
270
-
233
+ const carouselStylesheet = `
234
+ :host {
235
+ --surf-card-size: 300;
236
+ }
237
+
238
+ @media (max-width: 900px) {
239
+ :host {
240
+ --surf-card-size: 200;
241
+ }
242
+ }
243
+
244
+ .surf-zone-ecf0f1 {
245
+ --surf-card-size: 250;
246
+ }
247
+
248
+
249
+ .surf-carousel {
250
+ .sponsored-carousel {
251
+ font-family: 'Trebuchet MS', Verdana, Geneva, Tahoma, sans-serif;
252
+ margin: 0 0 20px 0;
253
+ padding: 0;
254
+ font-size: 26px;
255
+ font-weight: 100;
256
+ letter-spacing: 3px;
257
+ text-transform: uppercase;
258
+ text-decoration: underline dashed;
259
+ color: rgba(255, 255, 255, 0.7);
260
+
261
+ &.sponsoredByOne::before {
262
+ content: 'Brought to you by ';
263
+ }
264
+
265
+ &.recommended::before {
266
+ content: 'Suggested';
267
+ }
268
+ }
269
+ }
270
+
271
271
  `;
272
272
  const clickThroughUrlTemplate = (data) => `https://surfside.io/${data.product.brandName}`;
273
273
  export const MockGetConfiguration = async (logger) => {
@@ -295,8 +295,8 @@ export const MockGetConfiguration = async (logger) => {
295
295
  (target.clientWidth / 2);
296
296
  const dy = (offsetY - target.clientHeight / 2) /
297
297
  (target.clientHeight / 2);
298
- img.style.transform = `perspective(1000px)
299
- rotateY(${dx * 40}deg)
298
+ img.style.transform = `perspective(1000px)
299
+ rotateY(${dx * 40}deg)
300
300
  rotateX(${-dy * 40}deg)`;
301
301
  },
302
302
  'stopMove': (e) => {
@@ -314,12 +314,21 @@ export const MockGetConfiguration = async (logger) => {
314
314
  'foobar': {
315
315
  value: [{
316
316
  size: 'desktop',
317
- values: [{
317
+ values: [
318
+ {
319
+ type: 'Video',
320
+ width: 320,
321
+ height: 240,
322
+ zoneId: 'foobar',
323
+ maxDuration: 30
324
+ },
325
+ {
318
326
  type: 'Banner',
319
327
  width: 4,
320
328
  height: 1,
321
- zoneId: 'foobar'
322
- }]
329
+ zoneId: 'foobar',
330
+ }
331
+ ]
323
332
  }]
324
333
  }
325
334
  },
@@ -1 +1 @@
1
- {"version":3,"file":"Configuration.js","sourceRoot":"../@surfside-ads-core-mock/","sources":["mock/Configuration.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,GAAG,EAEH,EAAE,EAGL,MAAM,oBAAoB,CAAC;AAE5B;;EAEE;AAEF,MAAM,mBAAmB,GAAG,CAAC,IAAS,EAAE,EAAE,CAAC;;;;;;wBAMnB,IAAI,CAAC,OAAO,CAAC,KAAK;;;;kBAIxB,IAAI,CAAC,OAAO,CAAC,IAAI;;;;;2BAKR,IAAI,CAAC,OAAO,CAAC,SAAS;;iBAEhC,IAAI,CAAC,OAAO,CAAC,OAAO;;;;;;;;OAQ9B,CAAC;AAER,MAAM,qBAAqB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyM7B,CAAC;AAEF,MAAM,kBAAkB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsC1B,CAAC;AAEF,MAAM,uBAAuB,GAAG,CAAC,IAAS,EAAE,EAAE,CAAC,uBAAuB,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I,EAAE,SAAS;wBACf,MAAM,EAAE;4BACJ;gCACI,IAAI,EAAE,OAAO;gCACb,KAAK,EAAE,GAAG;gCACV,MAAM,EAAE,GAAG;gCACX,MAAM,EAAE,QAAQ;gCAChB,WAAW,EAAE,EAAE;6BAClB;4BACD;gCACI,IAAI,EAAE,QAAQ;gCACd,KAAK,EAAE,CAAC;gCACR,MAAM,EAAE,CAAC;gCACT,MAAM,EAAE,QAAQ;6BACnB;yBACJ;qBACJ,CAAC;aACL;SACJ;QACD,QAAQ,EAAE;YACN,oBAAoB,EAAE,IAAI;YAC1B,kBAAkB,EAAE,IAAI;YACxB,mBAAmB,EAAE,IAAI;YACzB,gBAAgB,EAAE,IAAI;YACtB,mBAAmB,EAAE,KAAK;YAC1B,kBAAkB,EAAE,IAAI;YACxB,kBAAkB,EAAE,IAAI;YACxB,sBAAsB,EAAE,KAAK;YAC7B,kBAAkB,EAAE,KAAK;YACzB,iBAAiB,EAAE,EAAE;YACrB,aAAa,EAAE,EAAE;YACjB,aAAa,EAAE;gBACX,8BAA8B,EAAE,CAAC,OAAO,CAAC;aAC5C;SACJ;KACJ,CAAC,CAAC;AACP,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,36 +1,36 @@
1
- {
2
- "name": "@surfside/ads-core-mock",
3
- "version": "0.2.0",
4
- "module": "./lib/esm/index.js",
5
- "main": "./lib/cjs/index.js",
6
- "types": "./lib/types/index.d.ts",
7
- "exports": {
8
- ".": {
9
- "import": "./lib/esm/index.js",
10
- "require": "./lib/cjs/index.js",
11
- "types": "./lib/types/index.d.ts"
12
- }
13
- },
14
- "type": "module",
15
- "license": "UNLICENSED",
16
- "files": [
17
- "lib/",
18
- "README.md"
19
- ],
20
- "scripts": {
21
- "clean": "rm -rf ./lib",
22
- "build": "bun x npm-run-all --parallel \"types\" \"esm\" \"cjs\"",
23
- "build:debug": "bun ./debug.build.ts",
24
- "types": "tsc -p ./tsconfig.types.json",
25
- "esm": "tsc -p ./tsconfig.esm.json",
26
- "cjs": "tsc -p tsconfig.cjs.json",
27
- "lint": "npx eslint"
28
- },
29
- "dependencies": {
30
- "@surfside/ads-core-client": "^0.2.0"
31
- },
32
- "devDependencies": {
33
- "@types/bun": "latest",
34
- "typescript": "^5"
35
- }
36
- }
1
+ {
2
+ "name": "@surfside/ads-core-mock",
3
+ "version": "0.3.0-0ff9dfa7.0",
4
+ "module": "./lib/esm/index.js",
5
+ "main": "./lib/cjs/index.js",
6
+ "types": "./lib/types/index.d.ts",
7
+ "exports": {
8
+ ".": {
9
+ "import": "./lib/esm/index.js",
10
+ "require": "./lib/cjs/index.js",
11
+ "types": "./lib/types/index.d.ts"
12
+ }
13
+ },
14
+ "type": "module",
15
+ "license": "UNLICENSED",
16
+ "files": [
17
+ "lib/",
18
+ "README.md"
19
+ ],
20
+ "scripts": {
21
+ "clean": "rm -rf ./lib",
22
+ "build": "bun x npm-run-all --parallel \"types\" \"esm\" \"cjs\"",
23
+ "build:debug": "bun ./debug.build.ts",
24
+ "types": "tsc -p ./tsconfig.types.json",
25
+ "esm": "tsc -p ./tsconfig.esm.json",
26
+ "cjs": "tsc -p tsconfig.cjs.json",
27
+ "lint": "npx eslint"
28
+ },
29
+ "dependencies": {
30
+ "@surfside/ads-core-client": "0.3.0-0ff9dfa7.0"
31
+ },
32
+ "devDependencies": {
33
+ "@types/bun": "latest",
34
+ "typescript": "^5"
35
+ }
36
+ }