@lvce-editor/main-area-worker 7.3.0 → 7.4.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.
@@ -1420,6 +1420,10 @@ const showContextMenu2 = async (uid, menuId, x, y, args) => {
1420
1420
  number(y);
1421
1421
  await invoke('ContextMenu.show2', uid, menuId, x, y, args);
1422
1422
  };
1423
+ const sendMessagePortToClipBoardWorker$1 = async (port, rpcId) => {
1424
+ const command = 'ClipBoard.handleMessagePort';
1425
+ await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToClipBoardWorker', port, command, rpcId);
1426
+ };
1423
1427
  const sendMessagePortToIconThemeWorker = async (port, rpcId) => {
1424
1428
  const command = 'IconTheme.handleMessagePort';
1425
1429
  await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToIconThemeWorker', port, command, rpcId);
@@ -2957,7 +2961,19 @@ const tryRestoreLayout = savedState => {
2957
2961
  if (!isValidMainAreaLayout(layout)) {
2958
2962
  return undefined;
2959
2963
  }
2960
- return layout;
2964
+
2965
+ // Normalize all tabs to have editorUid: -1 so SelectTab will create viewlets
2966
+ const normalizedLayout = {
2967
+ ...layout,
2968
+ groups: layout.groups.map(group => ({
2969
+ ...group,
2970
+ tabs: group.tabs.map(tab => ({
2971
+ ...tab,
2972
+ editorUid: -1
2973
+ }))
2974
+ }))
2975
+ };
2976
+ return normalizedLayout;
2961
2977
  };
2962
2978
 
2963
2979
  const createViewlets = async (layout, viewletModuleIds, bounds) => {
@@ -4287,7 +4303,7 @@ const commandMap = {
4287
4303
 
4288
4304
  const sendMessagePortToClipBoardWorker = async port => {
4289
4305
  // @ts-ignore
4290
- await undefined(port, 0);
4306
+ await sendMessagePortToClipBoardWorker$1(port, 0);
4291
4307
  };
4292
4308
 
4293
4309
  const initializeClipBoardWorker = async () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/main-area-worker",
3
- "version": "7.3.0",
3
+ "version": "7.4.0",
4
4
  "description": "Main Area Worker",
5
5
  "repository": {
6
6
  "type": "git",