@diplodoc/cli-tests 5.36.4 → 5.36.6

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.
@@ -262,6 +262,44 @@ exports[`Neuro-expert > Neuro-expert 9`] = `
262
262
  tryAppend();
263
263
  };
264
264
  document.body.appendChild(neuroExpertScript);
265
+ (function() {
266
+ var neuroExpertMetrikaIds = [];
267
+ var neuroExpertInitType = "widget";
268
+ var iframeActionMap = {
269
+ "message-sent": "message"
270
+ };
271
+ function sendNeuroExpertGoal(action) {
272
+ if (typeof ym === "undefined" || !neuroExpertMetrikaIds.length) {
273
+ return;
274
+ }
275
+ var params = {
276
+ action: action,
277
+ initType: neuroExpertInitType
278
+ };
279
+ for (var i = 0; i < neuroExpertMetrikaIds.length; i++) {
280
+ ym(neuroExpertMetrikaIds[i], "reachGoal", "DOCS_NEUROEXPERT_ACTION", params);
281
+ }
282
+ }
283
+ neuroExpertDiv.addEventListener("click", function(e) {
284
+ if (e.target.closest(".toggle-button")) {
285
+ requestAnimationFrame(function() {
286
+ var widgetPanel = neuroExpertDiv.querySelector(".widget");
287
+ if (widgetPanel && widgetPanel.classList.contains("visible")) {
288
+ sendNeuroExpertGoal("open");
289
+ }
290
+ });
291
+ }
292
+ });
293
+ window.addEventListener("message", function(event) {
294
+ if (event.origin !== "https://expert.yandex.ru") {
295
+ return;
296
+ }
297
+ var action = iframeActionMap[event.data && event.data.type];
298
+ if (action) {
299
+ sendNeuroExpertGoal(action);
300
+ }
301
+ });
302
+ })();
265
303
  </script>
266
304
  </body>
267
305
  </html>"
@@ -315,6 +353,44 @@ exports[`Neuro-expert > Neuro-expert 10`] = `
315
353
  tryAppend();
316
354
  };
317
355
  document.body.appendChild(neuroExpertScript);
356
+ (function() {
357
+ var neuroExpertMetrikaIds = [];
358
+ var neuroExpertInitType = "widget";
359
+ var iframeActionMap = {
360
+ "message-sent": "message"
361
+ };
362
+ function sendNeuroExpertGoal(action) {
363
+ if (typeof ym === "undefined" || !neuroExpertMetrikaIds.length) {
364
+ return;
365
+ }
366
+ var params = {
367
+ action: action,
368
+ initType: neuroExpertInitType
369
+ };
370
+ for (var i = 0; i < neuroExpertMetrikaIds.length; i++) {
371
+ ym(neuroExpertMetrikaIds[i], "reachGoal", "DOCS_NEUROEXPERT_ACTION", params);
372
+ }
373
+ }
374
+ neuroExpertDiv.addEventListener("click", function(e) {
375
+ if (e.target.closest(".toggle-button")) {
376
+ requestAnimationFrame(function() {
377
+ var widgetPanel = neuroExpertDiv.querySelector(".widget");
378
+ if (widgetPanel && widgetPanel.classList.contains("visible")) {
379
+ sendNeuroExpertGoal("open");
380
+ }
381
+ });
382
+ }
383
+ });
384
+ window.addEventListener("message", function(event) {
385
+ if (event.origin !== "https://expert.yandex.ru") {
386
+ return;
387
+ }
388
+ var action = iframeActionMap[event.data && event.data.type];
389
+ if (action) {
390
+ sendNeuroExpertGoal(action);
391
+ }
392
+ });
393
+ })();
318
394
  </script>
319
395
  </body>
320
396
  </html>"
@@ -368,6 +444,44 @@ exports[`Neuro-expert > Neuro-expert 11`] = `
368
444
  tryAppend();
369
445
  };
370
446
  document.body.appendChild(neuroExpertScript);
447
+ (function() {
448
+ var neuroExpertMetrikaIds = [];
449
+ var neuroExpertInitType = "widget";
450
+ var iframeActionMap = {
451
+ "message-sent": "message"
452
+ };
453
+ function sendNeuroExpertGoal(action) {
454
+ if (typeof ym === "undefined" || !neuroExpertMetrikaIds.length) {
455
+ return;
456
+ }
457
+ var params = {
458
+ action: action,
459
+ initType: neuroExpertInitType
460
+ };
461
+ for (var i = 0; i < neuroExpertMetrikaIds.length; i++) {
462
+ ym(neuroExpertMetrikaIds[i], "reachGoal", "DOCS_NEUROEXPERT_ACTION", params);
463
+ }
464
+ }
465
+ neuroExpertDiv.addEventListener("click", function(e) {
466
+ if (e.target.closest(".toggle-button")) {
467
+ requestAnimationFrame(function() {
468
+ var widgetPanel = neuroExpertDiv.querySelector(".widget");
469
+ if (widgetPanel && widgetPanel.classList.contains("visible")) {
470
+ sendNeuroExpertGoal("open");
471
+ }
472
+ });
473
+ }
474
+ });
475
+ window.addEventListener("message", function(event) {
476
+ if (event.origin !== "https://expert.yandex.ru") {
477
+ return;
478
+ }
479
+ var action = iframeActionMap[event.data && event.data.type];
480
+ if (action) {
481
+ sendNeuroExpertGoal(action);
482
+ }
483
+ });
484
+ })();
371
485
  </script>
372
486
  </body>
373
487
  </html>"
@@ -421,6 +535,44 @@ exports[`Neuro-expert > Neuro-expert 12`] = `
421
535
  tryAppend();
422
536
  };
423
537
  document.body.appendChild(neuroExpertScript);
538
+ (function() {
539
+ var neuroExpertMetrikaIds = [];
540
+ var neuroExpertInitType = "widget";
541
+ var iframeActionMap = {
542
+ "message-sent": "message"
543
+ };
544
+ function sendNeuroExpertGoal(action) {
545
+ if (typeof ym === "undefined" || !neuroExpertMetrikaIds.length) {
546
+ return;
547
+ }
548
+ var params = {
549
+ action: action,
550
+ initType: neuroExpertInitType
551
+ };
552
+ for (var i = 0; i < neuroExpertMetrikaIds.length; i++) {
553
+ ym(neuroExpertMetrikaIds[i], "reachGoal", "DOCS_NEUROEXPERT_ACTION", params);
554
+ }
555
+ }
556
+ neuroExpertDiv.addEventListener("click", function(e) {
557
+ if (e.target.closest(".toggle-button")) {
558
+ requestAnimationFrame(function() {
559
+ var widgetPanel = neuroExpertDiv.querySelector(".widget");
560
+ if (widgetPanel && widgetPanel.classList.contains("visible")) {
561
+ sendNeuroExpertGoal("open");
562
+ }
563
+ });
564
+ }
565
+ });
566
+ window.addEventListener("message", function(event) {
567
+ if (event.origin !== "https://expert.yandex.ru") {
568
+ return;
569
+ }
570
+ var action = iframeActionMap[event.data && event.data.type];
571
+ if (action) {
572
+ sendNeuroExpertGoal(action);
573
+ }
574
+ });
575
+ })();
424
576
  </script>
425
577
  </body>
426
578
  </html>"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diplodoc/cli-tests",
3
- "version": "5.36.4",
3
+ "version": "5.36.6",
4
4
  "bin": {
5
5
  "diplodoc-cli-test": "bin.mjs"
6
6
  },