@lvce-editor/editor-worker 7.18.0 → 7.19.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.
@@ -5287,10 +5287,12 @@ const newStateGenerator$3 = async (state, parentUid) => {
5287
5287
  width,
5288
5288
  height
5289
5289
  } = state;
5290
- const editor = get$4(parentUid);
5290
+ const {
5291
+ newState
5292
+ } = get$4(parentUid);
5291
5293
  const {
5292
5294
  languageId
5293
- } = editor;
5295
+ } = newState;
5294
5296
  await invoke$3('Completions.create', uid, x, y, width, height, parentUid, languageId);
5295
5297
  await invoke$3('Completions.loadContent', uid);
5296
5298
  const diff = await invoke$3('Completions.diff2', uid);
@@ -5441,10 +5443,12 @@ const newStateGenerator$1 = async (state, parentUid) => {
5441
5443
  width,
5442
5444
  height
5443
5445
  } = state;
5444
- const editor = get$4(parentUid);
5446
+ const {
5447
+ newState
5448
+ } = get$4(parentUid);
5445
5449
  const {
5446
5450
  languageId
5447
- } = editor;
5451
+ } = newState;
5448
5452
  await invoke$4('Rename.create', uid, x, y, width, height, parentUid, languageId);
5449
5453
  await invoke$4('Rename.loadContent', uid);
5450
5454
  const diff = await invoke$4('Rename.diff2', uid);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/editor-worker",
3
- "version": "7.18.0",
3
+ "version": "7.19.0",
4
4
  "license": "MIT",
5
5
  "author": "Lvce Editor",
6
6
  "type": "module",