@lvce-editor/main-area-worker 8.3.0 → 8.5.0

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.
@@ -2710,7 +2710,8 @@ const handleResize = async (state, dimensions) => {
2710
2710
  // Resize all editor children to their new bounds
2711
2711
  const {
2712
2712
  layout,
2713
- tabHeight
2713
+ tabHeight,
2714
+ uid
2714
2715
  } = state;
2715
2716
  const {
2716
2717
  groups
@@ -2734,6 +2735,7 @@ const handleResize = async (state, dimensions) => {
2734
2735
  }
2735
2736
  }
2736
2737
  }
2738
+ allResizeCommands.push(['Viewlet.setBounds', uid, x, y, width, height]);
2737
2739
  return allResizeCommands;
2738
2740
  };
2739
2741
 
@@ -2995,13 +2997,15 @@ const tryRestoreLayout = savedState => {
2995
2997
  }
2996
2998
 
2997
2999
  // Normalize all tabs to have editorUid: -1 so SelectTab will create viewlets
3000
+ // Mark all restored tabs as not dirty
2998
3001
  const normalizedLayout = {
2999
3002
  ...layout,
3000
3003
  groups: layout.groups.map(group => ({
3001
3004
  ...group,
3002
3005
  tabs: group.tabs.map(tab => ({
3003
3006
  ...tab,
3004
- editorUid: -1
3007
+ editorUid: -1,
3008
+ isDirty: false
3005
3009
  }))
3006
3010
  }))
3007
3011
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/main-area-worker",
3
- "version": "8.3.0",
3
+ "version": "8.5.0",
4
4
  "description": "Main Area Worker",
5
5
  "repository": {
6
6
  "type": "git",