@gregoriusrippenstein/node-red-contrib-introspection 0.15.0 → 0.15.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gregoriusrippenstein/node-red-contrib-introspection",
3
- "version": "0.15.0",
3
+ "version": "0.15.2",
4
4
  "dependencies": {
5
5
  "got": "^13",
6
6
  "uglify-js": "^3.17.4",
@@ -378,6 +378,68 @@
378
378
  } else {
379
379
  $('#node-input-msgtrace-pause-debug-btn').hide()
380
380
  }
381
+
382
+ (function () {
383
+ let msgtracingpresentermode = () => {
384
+ // show the right sidebar
385
+ if (!$("#red-ui-sidebar-separator").is(":visible")) {
386
+ RED.actions.invoke("core:toggle-right-sidebar")
387
+ }
388
+
389
+ // show the left sidebar
390
+ if (!$("#red-ui-sidebar-left-separator").is(":visible")) {
391
+ RED.actions.invoke("core:toggle-left-sidebar")
392
+ }
393
+
394
+ // introspection sidebar assumed to be on top
395
+ if (!$('#func-introspection-tab-msgtrace').is(":visible")) {
396
+ $('[data-tab-id=IntrospectionMsgTrace]').trigger('click')
397
+ }
398
+
399
+ // debug container is assumed to be the bottom sidebar
400
+ if (!$('.red-ui-debug-container').is(":visible")) {
401
+ $('[data-tab-id=debug]').trigger('click')
402
+ }
403
+
404
+ if (!$('#red-ui-palette').is(":visible")) {
405
+ $('[data-tab-id=palette]').trigger('click')
406
+ }
407
+
408
+ if (!$('.red-ui-info-outline').is(":visible")) {
409
+ $('[data-tab-id=explorer]').trigger('click')
410
+ }
411
+
412
+ // if coming from presentor more, footer might be hidden
413
+ if (!$('#red-ui-workspace-footer').is(":visible")) {
414
+ $('#red-ui-workspace-footer').toggle()
415
+ $('#red-ui-workspace-scroll-h').css('bottom', '36px')
416
+ }
417
+ }
418
+
419
+ let actionName = "presenter-mode:introspection-message-tracing"
420
+ let modeName = "Message Tracing"
421
+
422
+ RED.actions.remove(actionName)
423
+
424
+ if (RED.presenterMode) {
425
+ RED.presenterMode.add(modeName, msgtracingpresentermode)
426
+
427
+ RED.actions.add(actionName, () => {
428
+ msgtracingpresentermode()
429
+ RED.notify(`Activated ${modeName} mode`, { type: "success" })
430
+ })
431
+ } else {
432
+ RED.events.on("presenter-mode:initialised", () => {
433
+ RED.actions.add(actionName, () => {
434
+ msgtracingpresentermode()
435
+ RED.notify(`Activated ${modeName} mode`, { type: "success" })
436
+ })
437
+
438
+ RED.presenterMode.add(modeName, msgtracingpresentermode)
439
+ })
440
+ }
441
+ })();
442
+
381
443
  }
382
444
  RED.events.on('flows:loaded', fillInSiderBarForm);
383
445
  };
@@ -452,7 +514,7 @@
452
514
  <script type="text/x-red" data-template-name="Screenshot">
453
515
  <div style="position: relative; height: 100%; overflow-y: auto;">
454
516
  <div class="form-row func-introspection-tabs-row">
455
- <ul style="min-width: 600px; margin-bottom: 20px;" id="func-introspection-tabs"></ul>
517
+ <ul style="margin-bottom: 20px;" id="func-introspection-tabs"></ul>
456
518
  </div>
457
519
 
458
520
  <div id="func-introspection-tabs-content" style="min-height: calc(100% - 95px);">