@walkeros/web-source-browser 3.3.1 → 3.4.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.
- package/dist/dev.js +1 -1
- package/dist/dev.js.map +1 -1
- package/dist/dev.mjs +1 -1
- package/dist/dev.mjs.map +1 -1
- package/dist/index.browser.js +1 -1
- package/dist/index.es5.js +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/walkerOS.json +198 -96
- package/package.json +3 -3
package/dist/walkerOS.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$meta": {
|
|
3
3
|
"package": "@walkeros/web-source-browser",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.4.0",
|
|
5
5
|
"type": "source",
|
|
6
6
|
"platform": [
|
|
7
7
|
"web"
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
},
|
|
87
87
|
"examples": {
|
|
88
88
|
"createTrigger": {
|
|
89
|
-
"$code": "async(e,n)=>{const t=(null==n?void 0:n.sourceId)||\"browser\";let i;const r=document,o=window;return{get flow(){return i},trigger:(n,a)=>async s=>{var u;if(\"load\"===n||!n){const e=\"object\"==typeof a&&null!==a?a:{};if(e.url){const n=new URL(e.url);o.history.replaceState({},\"\",n.pathname)}e.title&&(r.title=e.title),e.referrer&&Object.defineProperty(r,\"referrer\",{value:e.referrer,configurable:!0})}if(s&&(r.body.innerHTML=s),!i){const n=await
|
|
89
|
+
"$code": "async(e,n)=>{const t=(null==n?void 0:n.sourceId)||\"browser\";let i;const r=document,o=window;return{get flow(){return i},trigger:(n,a)=>async s=>{var u;if(\"load\"===n||!n){const e=\"object\"==typeof a&&null!==a?a:{};if(e.url){const n=new URL(e.url);o.history.replaceState({},\"\",n.pathname)}e.title&&(r.title=e.title),e.referrer&&Object.defineProperty(r,\"referrer\",{value:e.referrer,configurable:!0})}if(s&&(r.body.innerHTML=s),!i){const n=await Jh({...e,run:null==(u=e.run)||u});i={collector:n.collector,elb:n.elb}}if(!n||\"load\"===n)return;const l=\"string\"==typeof a?a:void 0,c=l?r.querySelector(l):null;if(!c)return void console.warn(`Trigger: element not found for selector \"${l}\"`);const d=i.collector.sources[t];if(!d)return void console.warn(`Trigger: source \"${t}\" not found in collector`);const m={elb:i.elb,settings:d.config.settings};await yb(m,c,n)}}}"
|
|
90
90
|
},
|
|
91
91
|
"env": {
|
|
92
92
|
"push": {
|
|
@@ -155,7 +155,7 @@
|
|
|
155
155
|
"$code": "()=>[]"
|
|
156
156
|
},
|
|
157
157
|
"createElement": {
|
|
158
|
-
"$code": "()=>({setAttribute:
|
|
158
|
+
"$code": "()=>({setAttribute:Uh,getAttribute:Uh,addEventListener:Uh,removeEventListener:Uh})"
|
|
159
159
|
},
|
|
160
160
|
"body": {
|
|
161
161
|
"appendChild": {
|
|
@@ -194,7 +194,7 @@
|
|
|
194
194
|
"$code": "()=>{}"
|
|
195
195
|
},
|
|
196
196
|
"scope": {
|
|
197
|
-
"$code": "()=>
|
|
197
|
+
"$code": "()=>jh"
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
200
|
}
|
|
@@ -206,15 +206,28 @@
|
|
|
206
206
|
"options": "button"
|
|
207
207
|
},
|
|
208
208
|
"in": "<button data-elb=\"cta\" data-elb-cta=\"label:Sign Up\" data-elbaction=\"click:click\">Sign Up</button>",
|
|
209
|
-
"out":
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
209
|
+
"out": [
|
|
210
|
+
[
|
|
211
|
+
"elb",
|
|
212
|
+
{
|
|
213
|
+
"name": "cta click",
|
|
214
|
+
"entity": "cta",
|
|
215
|
+
"action": "click",
|
|
216
|
+
"data": {
|
|
217
|
+
"label": "Sign Up"
|
|
218
|
+
},
|
|
219
|
+
"context": {},
|
|
220
|
+
"globals": {},
|
|
221
|
+
"nested": [],
|
|
222
|
+
"source": {
|
|
223
|
+
"type": "browser",
|
|
224
|
+
"id": "https://example.com/",
|
|
225
|
+
"previous_id": ""
|
|
226
|
+
},
|
|
227
|
+
"trigger": "click"
|
|
228
|
+
}
|
|
229
|
+
]
|
|
230
|
+
]
|
|
218
231
|
},
|
|
219
232
|
"contextAndGlobals": {
|
|
220
233
|
"trigger": {
|
|
@@ -222,25 +235,36 @@
|
|
|
222
235
|
"options": "[data-elb=\"cta\"]"
|
|
223
236
|
},
|
|
224
237
|
"in": "<div data-elbcontext=\"test:engagement_flow\" data-elbglobals=\"language:en;plan:premium\"><div data-elb=\"cta\" data-elb-cta=\"label:Try Now\" data-elbaction=\"click:signup\">Try Now</div></div>",
|
|
225
|
-
"out":
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
"
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
238
|
+
"out": [
|
|
239
|
+
[
|
|
240
|
+
"elb",
|
|
241
|
+
{
|
|
242
|
+
"name": "cta signup",
|
|
243
|
+
"entity": "cta",
|
|
244
|
+
"action": "signup",
|
|
245
|
+
"data": {
|
|
246
|
+
"label": "Try Now"
|
|
247
|
+
},
|
|
248
|
+
"context": {
|
|
249
|
+
"test": [
|
|
250
|
+
"engagement_flow",
|
|
251
|
+
0
|
|
252
|
+
]
|
|
253
|
+
},
|
|
254
|
+
"globals": {
|
|
255
|
+
"language": "en",
|
|
256
|
+
"plan": "premium"
|
|
257
|
+
},
|
|
258
|
+
"nested": [],
|
|
259
|
+
"source": {
|
|
260
|
+
"type": "browser",
|
|
261
|
+
"id": "https://example.com/",
|
|
262
|
+
"previous_id": ""
|
|
263
|
+
},
|
|
264
|
+
"trigger": "click"
|
|
265
|
+
}
|
|
266
|
+
]
|
|
267
|
+
]
|
|
244
268
|
},
|
|
245
269
|
"dataAttributeTypes": {
|
|
246
270
|
"trigger": {
|
|
@@ -248,20 +272,33 @@
|
|
|
248
272
|
"options": "div"
|
|
249
273
|
},
|
|
250
274
|
"in": "<div data-elb=\"product\" data-elb-product=\"price:99.99;available:true;colors[]:red;colors[]:blue\" data-elbaction=\"click:select\"></div>",
|
|
251
|
-
"out":
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
"
|
|
258
|
-
"
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
275
|
+
"out": [
|
|
276
|
+
[
|
|
277
|
+
"elb",
|
|
278
|
+
{
|
|
279
|
+
"name": "product select",
|
|
280
|
+
"entity": "product",
|
|
281
|
+
"action": "select",
|
|
282
|
+
"data": {
|
|
283
|
+
"price": 99.99,
|
|
284
|
+
"available": true,
|
|
285
|
+
"colors": [
|
|
286
|
+
"red",
|
|
287
|
+
"blue"
|
|
288
|
+
]
|
|
289
|
+
},
|
|
290
|
+
"context": {},
|
|
291
|
+
"globals": {},
|
|
292
|
+
"nested": [],
|
|
293
|
+
"source": {
|
|
294
|
+
"type": "browser",
|
|
295
|
+
"id": "https://example.com/",
|
|
296
|
+
"previous_id": ""
|
|
297
|
+
},
|
|
298
|
+
"trigger": "click"
|
|
299
|
+
}
|
|
300
|
+
]
|
|
301
|
+
]
|
|
265
302
|
},
|
|
266
303
|
"impressionEvent": {
|
|
267
304
|
"trigger": {
|
|
@@ -269,41 +306,88 @@
|
|
|
269
306
|
"options": "div"
|
|
270
307
|
},
|
|
271
308
|
"in": "<div data-elb=\"banner\" data-elb-banner=\"type:promotional;position:sidebar\" data-elbaction=\"impression:view\"></div>",
|
|
272
|
-
"out":
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
309
|
+
"out": [
|
|
310
|
+
[
|
|
311
|
+
"elb",
|
|
312
|
+
{
|
|
313
|
+
"name": "banner view",
|
|
314
|
+
"entity": "banner",
|
|
315
|
+
"action": "view",
|
|
316
|
+
"data": {
|
|
317
|
+
"type": "promotional",
|
|
318
|
+
"position": "sidebar"
|
|
319
|
+
},
|
|
320
|
+
"context": {},
|
|
321
|
+
"globals": {},
|
|
322
|
+
"nested": [],
|
|
323
|
+
"source": {
|
|
324
|
+
"type": "browser",
|
|
325
|
+
"id": "https://example.com/",
|
|
326
|
+
"previous_id": ""
|
|
327
|
+
},
|
|
328
|
+
"trigger": "impression"
|
|
329
|
+
}
|
|
330
|
+
]
|
|
331
|
+
]
|
|
282
332
|
},
|
|
283
333
|
"nestedEntities": {
|
|
284
334
|
"trigger": {
|
|
285
335
|
"type": "load"
|
|
286
336
|
},
|
|
287
337
|
"in": "<div data-elb=\"product\" data-elb-product=\"id:SKU-42;name:Sneakers\" data-elbaction=\"load:view\"><div data-elb=\"size\" data-elb-size=\"selected:large;inStock:true\"></div></div>",
|
|
288
|
-
"out":
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
"id": "SKU-42",
|
|
292
|
-
"name": "Sneakers"
|
|
293
|
-
},
|
|
294
|
-
"trigger": "load",
|
|
295
|
-
"entity": "product",
|
|
296
|
-
"action": "view",
|
|
297
|
-
"nested": [
|
|
338
|
+
"out": [
|
|
339
|
+
[
|
|
340
|
+
"elb",
|
|
298
341
|
{
|
|
299
|
-
"
|
|
342
|
+
"name": "page view",
|
|
300
343
|
"data": {
|
|
301
|
-
"
|
|
302
|
-
"
|
|
344
|
+
"domain": "example.com",
|
|
345
|
+
"title": "",
|
|
346
|
+
"referrer": "",
|
|
347
|
+
"id": "/"
|
|
348
|
+
},
|
|
349
|
+
"context": {},
|
|
350
|
+
"globals": {},
|
|
351
|
+
"trigger": "load",
|
|
352
|
+
"source": {
|
|
353
|
+
"type": "browser",
|
|
354
|
+
"id": "https://example.com/",
|
|
355
|
+
"previous_id": ""
|
|
303
356
|
}
|
|
304
357
|
}
|
|
358
|
+
],
|
|
359
|
+
[
|
|
360
|
+
"elb",
|
|
361
|
+
{
|
|
362
|
+
"name": "product view",
|
|
363
|
+
"entity": "product",
|
|
364
|
+
"action": "view",
|
|
365
|
+
"data": {
|
|
366
|
+
"id": "SKU-42",
|
|
367
|
+
"name": "Sneakers"
|
|
368
|
+
},
|
|
369
|
+
"context": {},
|
|
370
|
+
"globals": {},
|
|
371
|
+
"nested": [
|
|
372
|
+
{
|
|
373
|
+
"entity": "size",
|
|
374
|
+
"data": {
|
|
375
|
+
"selected": "large",
|
|
376
|
+
"inStock": true
|
|
377
|
+
},
|
|
378
|
+
"context": {},
|
|
379
|
+
"nested": []
|
|
380
|
+
}
|
|
381
|
+
],
|
|
382
|
+
"source": {
|
|
383
|
+
"type": "browser",
|
|
384
|
+
"id": "https://example.com/",
|
|
385
|
+
"previous_id": ""
|
|
386
|
+
},
|
|
387
|
+
"trigger": "load"
|
|
388
|
+
}
|
|
305
389
|
]
|
|
306
|
-
|
|
390
|
+
]
|
|
307
391
|
},
|
|
308
392
|
"pageView": {
|
|
309
393
|
"trigger": {
|
|
@@ -315,23 +399,28 @@
|
|
|
315
399
|
}
|
|
316
400
|
},
|
|
317
401
|
"in": "",
|
|
318
|
-
"out":
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
402
|
+
"out": [
|
|
403
|
+
[
|
|
404
|
+
"elb",
|
|
405
|
+
{
|
|
406
|
+
"name": "page view",
|
|
407
|
+
"data": {
|
|
408
|
+
"domain": "example.com",
|
|
409
|
+
"title": "Documentation",
|
|
410
|
+
"referrer": "https://example.com/",
|
|
411
|
+
"id": "/docs"
|
|
412
|
+
},
|
|
413
|
+
"context": {},
|
|
414
|
+
"globals": {},
|
|
415
|
+
"trigger": "load",
|
|
416
|
+
"source": {
|
|
417
|
+
"type": "browser",
|
|
418
|
+
"id": "https://example.com/docs",
|
|
419
|
+
"previous_id": "https://example.com/"
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
]
|
|
423
|
+
]
|
|
335
424
|
},
|
|
336
425
|
"submitEvent": {
|
|
337
426
|
"trigger": {
|
|
@@ -339,15 +428,28 @@
|
|
|
339
428
|
"options": "form"
|
|
340
429
|
},
|
|
341
430
|
"in": "<form data-elb=\"signup\" data-elb-signup=\"plan:premium\" data-elbaction=\"submit:complete\"></form>",
|
|
342
|
-
"out":
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
431
|
+
"out": [
|
|
432
|
+
[
|
|
433
|
+
"elb",
|
|
434
|
+
{
|
|
435
|
+
"name": "signup complete",
|
|
436
|
+
"entity": "signup",
|
|
437
|
+
"action": "complete",
|
|
438
|
+
"data": {
|
|
439
|
+
"plan": "premium"
|
|
440
|
+
},
|
|
441
|
+
"context": {},
|
|
442
|
+
"globals": {},
|
|
443
|
+
"nested": [],
|
|
444
|
+
"source": {
|
|
445
|
+
"type": "browser",
|
|
446
|
+
"id": "https://example.com/",
|
|
447
|
+
"previous_id": ""
|
|
448
|
+
},
|
|
449
|
+
"trigger": "submit"
|
|
450
|
+
}
|
|
451
|
+
]
|
|
452
|
+
]
|
|
351
453
|
}
|
|
352
454
|
},
|
|
353
455
|
"trigger": {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@walkeros/web-source-browser",
|
|
3
3
|
"description": "Browser DOM source for walkerOS",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.4.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"module": "./dist/index.mjs",
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
"update": "npx npm-check-updates -u && npm update"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@walkeros/collector": "3.
|
|
36
|
-
"@walkeros/web-core": "3.
|
|
35
|
+
"@walkeros/collector": "3.4.0",
|
|
36
|
+
"@walkeros/web-core": "3.4.0"
|
|
37
37
|
},
|
|
38
38
|
"repository": {
|
|
39
39
|
"url": "git+https://github.com/elbwalker/walkerOS.git",
|