@lvce-editor/panel-worker 1.9.0 → 1.10.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.
@@ -1241,17 +1241,6 @@ const toggleView = async (state, name) => {
1241
1241
  return selectIndex(state, index);
1242
1242
  };
1243
1243
 
1244
- const selectName = async (state, name) => {
1245
- if (!name) {
1246
- return state;
1247
- }
1248
- const index = state.views.indexOf(name);
1249
- if (index === -1) {
1250
- return state;
1251
- }
1252
- return selectIndex(state, index);
1253
- };
1254
-
1255
1244
  const mergeClassNames = (...classNames) => {
1256
1245
  return classNames.filter(Boolean).join(' ');
1257
1246
  };
@@ -1567,7 +1556,7 @@ const Actions = 'Actions';
1567
1556
 
1568
1557
  const getActionsDom = newState => {
1569
1558
  const actions = newState.actionsUid || -1;
1570
- if (actions === -1) {
1559
+ if (actions === -1 || Map) {
1571
1560
  return [{
1572
1561
  childCount: 0,
1573
1562
  className: Actions,
@@ -1809,6 +1798,17 @@ const saveState = state => {
1809
1798
  };
1810
1799
  };
1811
1800
 
1801
+ const selectName = async (state, name) => {
1802
+ if (!name) {
1803
+ return state;
1804
+ }
1805
+ const index = state.views.indexOf(name);
1806
+ if (index === -1) {
1807
+ return state;
1808
+ }
1809
+ return selectIndex(state, index);
1810
+ };
1811
+
1812
1812
  const commandMap = {
1813
1813
  'Panel.create': create,
1814
1814
  'Panel.diff2': diff2,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/panel-worker",
3
- "version": "1.9.0",
3
+ "version": "1.10.0",
4
4
  "description": "Panel Worker",
5
5
  "repository": {
6
6
  "type": "git",