@lvce-editor/renderer-process 21.8.0 → 21.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.
@@ -234,6 +234,7 @@ const Option$2 = 'option';
234
234
  const Code$2 = 'code';
235
235
  const Label$2 = 'label';
236
236
  const Dt$2 = 'dt';
237
+ const Iframe$1 = 'iframe';
237
238
  const Audio$1$1 = 0;
238
239
  const Button$1 = 1;
239
240
  const Col$1 = 2;
@@ -289,6 +290,7 @@ const Option$1 = 64;
289
290
  const Code$1 = 65;
290
291
  const Label$1 = 66;
291
292
  const Dt$1 = 67;
293
+ const Iframe = 68;
292
294
  const Reference$1 = 100;
293
295
  const VirtualDomElements$1 = {
294
296
  __proto__: null,
@@ -352,6 +354,8 @@ const getElementTag$1 = type => {
352
354
  return Hr$2;
353
355
  case I$1:
354
356
  return I$2;
357
+ case Iframe:
358
+ return Iframe$1;
355
359
  case Img$1:
356
360
  return Img$2;
357
361
  case Input$1:
@@ -9204,6 +9208,14 @@ const setPatches = (uid, patches) => {
9204
9208
  }
9205
9209
  applyPatch($Viewlet, patches, {}, uid);
9206
9210
  };
9211
+ const move = (uid, selector, target) => {
9212
+ const $Source = document.querySelector(selector);
9213
+ // setTimeout(() => {
9214
+ const $Target = document.querySelector(target);
9215
+ $Target.moveBefore($Source, null);
9216
+ // }, 2000)
9217
+ // console.log({ selector, target })
9218
+ };
9207
9219
 
9208
9220
  // TODO this code is bad
9209
9221
  const sendMultiple = commands => {
@@ -9287,6 +9299,10 @@ const sendMultiple = commands => {
9287
9299
  handleError$1(viewletId, method, ...args);
9288
9300
  break;
9289
9301
  }
9302
+ case 'Viewlet.move':
9303
+ // @ts-ignore
9304
+ move(viewletId, method, ...args);
9305
+ break;
9290
9306
  case 'Viewlet.registerEventListeners':
9291
9307
  // @ts-ignore
9292
9308
  registerEventListeners(viewletId, method, ...args);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/renderer-process",
3
- "version": "21.8.0",
3
+ "version": "21.10.0",
4
4
  "keywords": [
5
5
  "lvce-editor",
6
6
  "renderer-process"