@vectoriox/iox-builder 1.4.32 → 1.4.33

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.
@@ -3668,7 +3668,9 @@ class BuilderComponent {
3668
3668
  break;
3669
3669
  }
3670
3670
  case ToolbarAction.SaveAsBlock: {
3671
- this.pendingBlockNode = node;
3671
+ const blockClone = JSON.parse(JSON.stringify(node));
3672
+ this._stripGlobalFlags(blockClone);
3673
+ this.pendingBlockNode = blockClone;
3672
3674
  this.saveBlockName = '';
3673
3675
  this.showSaveBlockDialog = true;
3674
3676
  break;
@@ -3746,6 +3748,11 @@ class BuilderComponent {
3746
3748
  node.styleId = Math.random().toString(36).slice(2, 10);
3747
3749
  node.children?.forEach(child => this.assignNewIds(child));
3748
3750
  }
3751
+ _stripGlobalFlags(node) {
3752
+ node.isGlobal = false;
3753
+ node.globalPosition = undefined;
3754
+ node.children?.forEach(c => this._stripGlobalFlags(c));
3755
+ }
3749
3756
  onPageScroll(event) {
3750
3757
  const contentH = event.scrollHeight;
3751
3758
  const wrapperH = event.clientHeight;