@vectoriox/iox-builder 1.4.51 → 1.4.52

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.
@@ -414,7 +414,13 @@ class DragEngineService {
414
414
  // (e.g. the built-in blocks panel stores one pre-built node object and
415
415
  // reuses it across drags). Deep-clone with fresh IDs so each drop
416
416
  // produces a fully independent node, preventing shared CSS rules.
417
- const cloned = deepCloneNode(item);
417
+ // The panel may supply a bare ComponentNode OR a block wrapper object
418
+ // { node, symbolId, syncInstances } — extract the node first.
419
+ const nodeData = item.node ?? item;
420
+ const cloned = deepCloneNode(nodeData);
421
+ if (item.syncInstances && item.symbolId) {
422
+ cloned.symbolId = item.symbolId;
423
+ }
418
424
  children.splice(insertIndex, 0, cloned);
419
425
  cdr.detectChanges();
420
426
  this.dropComplete$.next(cloned);