@kumologica/sdk 3.0.7 → 3.0.10

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.
@@ -264,8 +264,8 @@ function display(argv) {
264
264
  console.log(' file-system-configs: %s', argv["file-system-configs"]||'');
265
265
  console.log(' log-retention-days: %s', argv["log-retention-days"]||'');
266
266
  console.log(' role-arn: %s', argv["role-arn"]||'');
267
- console.log(' policy %s', argv["policy"] || '');
268
- console.log(' strict-mode %s', argv["strict-mode"] || '');
267
+ console.log(' policy: %s', argv["policy"] || '');
268
+ console.log(` strict-mode: ${argv["strict-mode"]}`);
269
269
  console.log(' triggers: %s', argv.triggers||'');
270
270
  }
271
271
 
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "productName": "Kumologica Designer",
4
4
  "copyright": "Copyright 2020 Kumologica Pty Ltd, All Rights Reserved.",
5
5
  "author": "Kumologica Pty Ltd <contact@kumologica.com>",
6
- "version": "3.0.7",
6
+ "version": "3.0.10",
7
7
  "description": "Kumologica Designer, harnessing Serverless for your cloud integration needs",
8
8
  "main": "src/app/main.js",
9
9
  "files": [
@@ -64,9 +64,9 @@
64
64
  },
65
65
  "license": "Proprietary",
66
66
  "dependencies": {
67
- "@kumologica/builder": "3.0.7",
68
- "@kumologica/runtime": "3.0.7",
69
- "@kumologica/devkit": "3.0.7",
67
+ "@kumologica/builder": "3.0.10",
68
+ "@kumologica/runtime": "3.0.10",
69
+ "@kumologica/devkit": "3.0.10",
70
70
  "adm-zip": "^0.4.13",
71
71
  "ajv": "^8.10.0",
72
72
  "aws-sdk": "^2.513.0",
@@ -13,7 +13,6 @@ const electron = require('electron');
13
13
 
14
14
  const events = require('events');
15
15
  const debounce = require('debounce');
16
- const fs = require('fs-extra');
17
16
  const { promisify } = require('util');
18
17
 
19
18
  const dagre = require('dagre');
@@ -531,6 +530,7 @@ function dispatch(type, payload) {
531
530
  let ipcRenderer = electron.ipcRenderer;
532
531
  ipcRenderer.send(type, payload);
533
532
  }
533
+
534
534
  window.__kumologica = {};
535
535
  window.__kumologica.electron = electron;
536
536
 
@@ -541,7 +541,6 @@ window.__kumologica.main.dispatch = dispatch;
541
541
  // Present a contract to interact with editor project (itself)
542
542
  window.__kumologica.editor = {};
543
543
  window.__kumologica.editor.runner = require('./ui/editor-api/lib/runner');
544
- window.__kumologica.editor.MarkdownEditor = require('simplemde');
545
544
 
546
545
  // terminal section
547
546
  window.__kumologica.editor.terminal = {};
@@ -15004,6 +15004,10 @@ RED.workspaces = (function() {
15004
15004
  };
15005
15005
  })();
15006
15006
  ;RED.view = (function () {
15007
+ let drag = false;
15008
+ let dragging = false;
15009
+ let draggingPos = { top: 0, left: 0, x: 0, y: 0 };
15010
+
15007
15011
  var space_width = 5000,
15008
15012
  space_height = 5000,
15009
15013
  lineCurveScale = 0.75,
@@ -15075,7 +15079,7 @@ RED.workspaces = (function() {
15075
15079
  .attr('width', space_width)
15076
15080
  .attr('height', space_height)
15077
15081
  .attr('pointer-events', 'all')
15078
- .style('cursor', 'crosshair')
15082
+ // .style('cursor', 'crosshair')
15079
15083
  .on('mousedown', function () {
15080
15084
  focusView();
15081
15085
  })
@@ -15537,6 +15541,65 @@ RED.workspaces = (function() {
15537
15541
  }
15538
15542
  });
15539
15543
 
15544
+ // Handle dragging the workspace
15545
+ $('#chart')
15546
+ .keydown(function(e){
15547
+ if(e.keyCode == 32) {
15548
+ e.preventDefault();
15549
+ if (!drag) {
15550
+ drag = true;
15551
+ $('#chart').attr('style','cursor: grab !important')
15552
+ }
15553
+ }
15554
+ })
15555
+ .keyup(function(e){
15556
+ if(e.keyCode == 32 && drag){
15557
+ e.preventDefault();
15558
+ drag = false;
15559
+ dragging = false;
15560
+ $('#chart').attr('style','cursor: default !important')
15561
+ }
15562
+ })
15563
+ .on("mousedown", function(e) {
15564
+ if (drag && !dragging) {
15565
+ e.preventDefault();
15566
+
15567
+ $('#chart').attr('style','cursor: grabbing !important')
15568
+ dragging = true;
15569
+ draggingPos = {
15570
+ // The current scroll
15571
+ left: $('#chart').scrollLeft(),
15572
+ top: $('#chart').scrollTop(),
15573
+ x: e.clientX,
15574
+ y: e.clientY
15575
+ }
15576
+ }
15577
+ })
15578
+
15579
+ .on("mouseup", function(e) {
15580
+ if (drag && dragging){
15581
+ e.preventDefault();
15582
+ dragging = false;
15583
+ // console.log('Dragging off')
15584
+ $('#chart').attr('style','cursor: grab !important')
15585
+ }
15586
+
15587
+ })
15588
+
15589
+ .on("mousemove", function(e) {
15590
+ if (drag && dragging){
15591
+ e.preventDefault();
15592
+
15593
+ // How far the mouse has been moved
15594
+ const dx = e.clientX - draggingPos.x;
15595
+ const dy = e.clientY - draggingPos.y;
15596
+
15597
+ $("#chart").scrollLeft(draggingPos.left - dx);
15598
+ $("#chart").scrollTop(draggingPos.top - dy);
15599
+ }
15600
+ });
15601
+
15602
+
15540
15603
  // Handle nodes dragged from the palette
15541
15604
  $('#chart').droppable({
15542
15605
  accept: '.palette_node',
@@ -16262,7 +16325,7 @@ RED.workspaces = (function() {
16262
16325
  // console.log('[view] Create a lasso....d3.event.ctrlKey = ', d3.event.ctrlKey);
16263
16326
 
16264
16327
  if (mouse_mode === 0 && !(d3.event.metaKey || d3.event.ctrlKey)) {
16265
- if (!touchStartTime) {
16328
+ if (!touchStartTime && !drag) {
16266
16329
 
16267
16330
  point = d3.mouse(this);
16268
16331
  lasso = vis
@@ -26055,11 +26118,11 @@ RED.sidebar.nodeinfo = (function(){
26055
26118
  }
26056
26119
  if (params.account) {
26057
26120
  $('#kumohub-fn-workspace').val(params.workspace || params.account);
26058
- fillStages('#kumohub-fn-workspace').val();
26121
+ fillStages(params.workspace || params.account);
26059
26122
  }
26060
26123
  if (params.workspace) {
26061
26124
  $('#kumohub-fn-workspace').val(params.workspace);
26062
- fillStages('#kumohub-fn-workspace').val();
26125
+ fillStages(params.workspace);
26063
26126
  }
26064
26127
 
26065
26128
  if (params.stage) {
@@ -26142,8 +26205,12 @@ RED.sidebar.nodeinfo = (function(){
26142
26205
  //dropdown.append($('<option></option>').val("UNDEFINED").text("Undefined"));
26143
26206
  return;
26144
26207
  }
26145
- let ws = workspaces.find(w => w.name === fnWorkspace);
26146
-
26208
+ let ws;
26209
+
26210
+ if (workspaces) {
26211
+ ws = workspaces.find(w => w.name === fnWorkspace);
26212
+ }
26213
+
26147
26214
  if (ws) {
26148
26215
  dropdown.empty();
26149
26216
  if (ws.stages && ws.stages.length > 0) {
@@ -26168,8 +26235,12 @@ RED.sidebar.nodeinfo = (function(){
26168
26235
  //dropdown.append($('<option></option>').val("UNDEFINED").text("Undefined"));
26169
26236
  return;
26170
26237
  }
26171
- let ws = workspaces.find(w => w.name === workspace);
26172
-
26238
+ let ws;
26239
+
26240
+ if (workspaces) {
26241
+ ws = workspaces.find(w => w.name === workspace);
26242
+ }
26243
+
26173
26244
  if (ws) {
26174
26245
  let st = ws.stages.find(s => s.name === stage);
26175
26246
  if (st && st.policies) {