@lvce-editor/renderer-process 30.49.1 → 30.50.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.
@@ -9934,6 +9934,18 @@ const appendToBody = childId => {
9934
9934
  $Parent.append($Child);
9935
9935
  applyLateFocusMaybe();
9936
9936
  };
9937
+ const appendToRoot = (childId, rootId) => {
9938
+ const parent = document.getElementById(rootId);
9939
+ if (!parent) {
9940
+ throw new Error(`Application root not found: ${rootId}`);
9941
+ }
9942
+ const childInstance = get$a(childId);
9943
+ if (!childInstance) {
9944
+ throw new Error(`Viewlet not found: ${childId}`);
9945
+ }
9946
+ parent.append(childInstance.state.$Viewlet);
9947
+ applyLateFocusMaybe();
9948
+ };
9937
9949
  const executeCommands = commands => {
9938
9950
  for (const [command, ...args] of commands) {
9939
9951
  const fn = getFn(command);
@@ -10016,6 +10028,7 @@ const commandHandlers = {
10016
10028
  'Viewlet.addKeyBindings': addKeyBindings,
10017
10029
  'Viewlet.append': append,
10018
10030
  'Viewlet.appendToBody': appendToBody,
10031
+ 'Viewlet.appendToRoot': appendToRoot,
10019
10032
  'Viewlet.appendViewlet': appendViewlet,
10020
10033
  'Viewlet.ariaAnnounce': ariaAnnounce,
10021
10034
  'Viewlet.attachWindowEvents': attachWindowEvents,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/renderer-process",
3
- "version": "30.49.1",
3
+ "version": "30.50.0",
4
4
  "keywords": [
5
5
  "lvce-editor",
6
6
  "renderer-process"