@lvce-editor/panel-worker 2.11.0 → 2.12.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.
@@ -1626,6 +1626,13 @@ const diff2 = uid => {
1626
1626
  return result;
1627
1627
  };
1628
1628
 
1629
+ const getCurrentViewletId = state => {
1630
+ const {
1631
+ currentViewletId
1632
+ } = state;
1633
+ return currentViewletId;
1634
+ };
1635
+
1629
1636
  const state = {
1630
1637
  connected: false
1631
1638
  };
@@ -2456,6 +2463,7 @@ const commandMap = {
2456
2463
  'Panel.create': create,
2457
2464
  'Panel.diff2': diff2,
2458
2465
  'Panel.getCommandIds': getCommandIds,
2466
+ 'Panel.getCurrentViewletId': wrapGetter(getCurrentViewletId),
2459
2467
  'Panel.handleBlur': wrapCommand(handleBlur),
2460
2468
  'Panel.handleClickClose': wrapCommand(handleClickClose),
2461
2469
  'Panel.handleClickMaximize': wrapCommand(handleClickMaximize),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/panel-worker",
3
- "version": "2.11.0",
3
+ "version": "2.12.0",
4
4
  "description": "Panel Worker",
5
5
  "repository": {
6
6
  "type": "git",