dockview-core 2.1.3 → 2.1.4

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.
@@ -208,7 +208,6 @@ export declare class DockviewComponent extends BaseGrid<DockviewGroupPanel> impl
208
208
  get gap(): number;
209
209
  get floatingGroups(): DockviewFloatingGroupPanel[];
210
210
  constructor(parentElement: HTMLElement, options: DockviewComponentOptions);
211
- dispose(): void;
212
211
  setVisible(panel: DockviewGroupPanel, visible: boolean): void;
213
212
  addPopoutGroup(itemToPopout: DockviewPanel | DockviewGroupPanel, options?: DockviewPopoutGroupOptions): Promise<boolean>;
214
213
  addFloatingGroup(item: DockviewPanel | DockviewGroupPanel, options?: FloatingGroupOptionsInternal): void;
@@ -245,10 +245,6 @@ export class DockviewComponent extends BaseGrid {
245
245
  this._api = new DockviewApi(this);
246
246
  this.updateWatermark();
247
247
  }
248
- dispose() {
249
- this.clear(); // explicitly clear the layout before cleaning up
250
- super.dispose();
251
- }
252
248
  setVisible(panel, visible) {
253
249
  switch (panel.api.location.type) {
254
250
  case 'grid':
@@ -432,30 +428,29 @@ export class DockviewComponent extends BaseGrid {
432
428
  }
433
429
  }
434
430
  else if (this.getPanel(group.id)) {
435
- const removedGroup = group;
431
+ group.model.renderContainer =
432
+ this.overlayRenderContainer;
433
+ returnedGroup = group;
436
434
  if (floatingBox) {
437
- this.addFloatingGroup(removedGroup, {
435
+ this.addFloatingGroup(group, {
438
436
  height: floatingBox.height,
439
437
  width: floatingBox.width,
440
438
  position: floatingBox,
441
439
  });
442
440
  }
443
441
  else {
444
- this.doRemoveGroup(removedGroup, {
442
+ this.doRemoveGroup(group, {
445
443
  skipDispose: true,
446
444
  skipActive: true,
447
445
  skipPopoutReturn: true,
448
446
  });
449
- removedGroup.model.renderContainer =
450
- this.overlayRenderContainer;
451
- removedGroup.model.location = { type: 'grid' };
452
- returnedGroup = removedGroup;
447
+ group.model.location = { type: 'grid' };
453
448
  this.movingLock(() => {
454
449
  // suppress group add events since the group already exists
455
- this.doAddGroup(removedGroup, [0]);
450
+ this.doAddGroup(group, [0]);
456
451
  });
457
452
  }
458
- this.doSetGroupAndPanelActive(removedGroup);
453
+ this.doSetGroupAndPanelActive(group);
459
454
  }
460
455
  }));
461
456
  this._popoutGroups.push(value);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dockview-core",
3
- "version": "2.1.3",
3
+ "version": "2.1.4",
4
4
  "description": "Zero dependency layout manager supporting tabs, grids and splitviews",
5
5
  "keywords": [
6
6
  "splitview",