@mindexec/cli 0.2.426 → 0.2.428

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": "@mindexec/cli",
3
- "version": "0.2.426",
3
+ "version": "0.2.428",
4
4
  "description": "MindExec local runtime and bridge CLI",
5
5
  "main": "server.js",
6
6
  "type": "module",
@@ -4777,10 +4777,7 @@ window.MindMapInteractions = (function () {
4777
4777
 
4778
4778
  if (!actualDragObject) return;
4779
4779
  setBrowserSelectionLock(true, 'node-drag');
4780
-
4781
- // ▼▼▼ [Added] Reliably store dragged ID for Up handler ▼▼▼
4782
- module.draggedNodeId = nodeId;
4783
- // ▲▲▲ [Added] ▲▲▲
4780
+ module.draggedNodeId = nodeId;
4784
4781
 
4785
4782
  if (module.multiSelectedNodeIds.has(nodeId) && module.multiSelectedNodeIds.size > 1 && !module.isShiftClick) {
4786
4783
  module.isDraggingMultipleNodes = true;
@@ -5086,7 +5083,8 @@ window.MindMapInteractions = (function () {
5086
5083
  }
5087
5084
 
5088
5085
  async function onMouseUp(module, e) {
5089
- const handlers = getBoundHandlers(module);
5086
+ const handlers = getBoundHandlers(module);
5087
+ let postMouseUpActivation = null;
5090
5088
 
5091
5089
  // 0) Multi-select resize end (centralized)
5092
5090
  if (window.MindMapMultiSelect?.isResizing?.()) {
@@ -5263,7 +5261,8 @@ window.MindMapInteractions = (function () {
5263
5261
  } else if (consumePendingSelectedActivation(module, clickedNodeId)) {
5264
5262
  finalizeSingleSelection(module, clickedNodeId, { notifyBlazor: false, bringToFront: true, showMenu: true });
5265
5263
  } else {
5266
- handleSelectedNodeActivation(module, clickedNodeId, nodeEntry, { isLink, target: e.target });
5264
+ const activationTarget = e.target;
5265
+ postMouseUpActivation = () => handleSelectedNodeActivation(module, clickedNodeId, nodeEntry, { isLink, target: activationTarget });
5267
5266
  }
5268
5267
  } else {
5269
5268
  schedulePrimaryClickAction(module, () => {
@@ -5384,7 +5383,8 @@ window.MindMapInteractions = (function () {
5384
5383
  } else if (consumePendingSelectedActivation(module, clickedNodeId)) {
5385
5384
  finalizeSingleSelection(module, clickedNodeId, { notifyBlazor: false, bringToFront: true, showMenu: true });
5386
5385
  } else {
5387
- handleSelectedNodeActivation(module, clickedNodeId, nodeEntry, { target: e.target });
5386
+ const activationTarget = e.target;
5387
+ postMouseUpActivation = () => handleSelectedNodeActivation(module, clickedNodeId, nodeEntry, { target: activationTarget });
5388
5388
  }
5389
5389
  } else {
5390
5390
  schedulePrimaryClickAction(module, () => {
@@ -5453,6 +5453,7 @@ window.MindMapInteractions = (function () {
5453
5453
  module._deferredBackgroundPrimaryClick = false;
5454
5454
  module._deferredBackgroundClearOnDrag = false;
5455
5455
  module.draggedNodeObject = null;
5456
+ module.draggedNodeId = null;
5456
5457
  module.wasDragged = false;
5457
5458
  module.isShiftClick = false;
5458
5459
  module.multiDragInitialPositions.clear();
@@ -5494,11 +5495,18 @@ window.MindMapInteractions = (function () {
5494
5495
  // ▲▲▲ [UndoRedo] ▲▲▲
5495
5496
  // ▲▲▲ [Perf] ▲▲▲
5496
5497
 
5497
- // Key point: consistently remove listeners
5498
- window.removeEventListener('mousemove', handlers.boundOnMouseMove, { passive: false });
5499
- window.removeEventListener('mouseup', handlers.boundOnMouseUp);
5500
- // --- end listener cleanup ---
5501
- }
5498
+ // Key point: consistently remove listeners
5499
+ window.removeEventListener('mousemove', handlers.boundOnMouseMove, { passive: false });
5500
+ window.removeEventListener('mouseup', handlers.boundOnMouseUp);
5501
+ // --- end listener cleanup ---
5502
+ if (typeof postMouseUpActivation === 'function') {
5503
+ try {
5504
+ postMouseUpActivation();
5505
+ } catch (error) {
5506
+ console.error('[MindMapInteractions] Post-cleanup selected node activation failed:', error);
5507
+ }
5508
+ }
5509
+ }
5502
5510
 
5503
5511
  function updatePhysicalWheelModifierKeyState(module, e, isDown) {
5504
5512
  if (!module || !e) {
@@ -579,7 +579,7 @@
579
579
  }
580
580
 
581
581
  const base = '_content/MindExecution.Shared/js/';
582
- const scriptVersion = '20260629-note-click-edit-cleanup-v859';
582
+ const scriptVersion = '20260629-note-click-edit-postcleanup-v860';
583
583
  const scriptUrl = (script) => `${base}${script}?v=${scriptVersion}`;
584
584
  console.log(`[Script Loader] Shared JS version: ${scriptVersion}`);
585
585
  const criticalScripts = [
@@ -1,5 +1,5 @@
1
1
  self.assetsManifest = {
2
- "version": "YPRLGOlv",
2
+ "version": "0w5DR44C",
3
3
  "assets": [
4
4
  {
5
5
  "hash": "sha256-+CSYMcqLNTsq3VnH11jgYyOCCdxvHzL74CBmo4sCmMU=",
@@ -106,7 +106,7 @@
106
106
  "url": "_content/MindExecution.Shared/js/mind-map-glow-shader.js"
107
107
  },
108
108
  {
109
- "hash": "sha256-etf+COL5Lw56nWlph++zSsRlo1s6YfMpDW6rnl+44DI=",
109
+ "hash": "sha256-Xq41bjHmEHUAxo036RY745Kv3TotRvizQvVxM9xKPEA=",
110
110
  "url": "_content/MindExecution.Shared/js/mind-map-interactions.js"
111
111
  },
112
112
  {
@@ -826,7 +826,7 @@
826
826
  "url": "icon-512.png"
827
827
  },
828
828
  {
829
- "hash": "sha256-KolTfam/CQjWAIqvVt5cAJQBXXSllSi5Ulz9ODODRgo=",
829
+ "hash": "sha256-doMCH63vbKHtRVaAOBnZZ2/vgx0CS+hfAJ0NaAX/kQU=",
830
830
  "url": "index.html"
831
831
  },
832
832
  {
@@ -1,4 +1,4 @@
1
- /* Manifest version: YPRLGOlv */
1
+ /* Manifest version: 0w5DR44C */
2
2
  // Hosted deployments should prefer the network over stale offline caches.
3
3
  // This service worker immediately clears old Blazor offline caches and unregisters itself.
4
4