@lvce-editor/editor-worker 19.28.2 → 19.28.3

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.
@@ -8844,6 +8844,11 @@ const createFn = (key, name, widgetId) => {
8844
8844
  } = state;
8845
8845
  const invoke = getWidgetInvoke(widgetId);
8846
8846
  await invoke(`${name}.${key}`, uid, ...args);
8847
+ const latestAfterInvoke = get$7(editor.uid).newState;
8848
+ const latestChildIndex = latestAfterInvoke.widgets.findIndex(isWidget);
8849
+ if (latestChildIndex === -1) {
8850
+ return latestAfterInvoke;
8851
+ }
8847
8852
  const diff = await invoke(`${name}.diff2`, uid);
8848
8853
  const commands = await invoke(`${name}.render2`, uid, diff);
8849
8854
  const latest = get$7(editor.uid).newState;
@@ -12573,6 +12578,9 @@ const renderCss$1 = (oldState, newState) => {
12573
12578
  };
12574
12579
 
12575
12580
  const renderFocus$2 = (oldState, newState) => {
12581
+ if (!newState.focused) {
12582
+ return [];
12583
+ }
12576
12584
  const selector = '.EditorInput textarea';
12577
12585
  return [FocusSelector$1, newState.uid, selector];
12578
12586
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/editor-worker",
3
- "version": "19.28.2",
3
+ "version": "19.28.3",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git@github.com:lvce-editor/editor-worker.git"