@lvce-editor/renderer-process 30.58.2 → 30.58.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.
@@ -16105,9 +16105,17 @@ const create$Notification = message => {
16105
16105
  $Notification.append($NotificationMessage, $CloseButton);
16106
16106
  return $Notification;
16107
16107
  };
16108
- const create$s = (type, message) => {
16109
- // TODO this pattern might be also useful for activitybar, sidebar etc., creating elements as late as possible, only when actually needed
16108
+ const create$s = (type, message, parentUid) => {
16109
+ const $Parent = parentUid === undefined ? undefined : get$9(parentUid)?.state.$Viewlet;
16110
+ if (parentUid !== undefined && !$Parent) {
16111
+ throw new Error(`Notification parent not found: ${parentUid}`);
16112
+ }
16110
16113
  const $Notification = create$Notification(message);
16114
+ if ($Parent) {
16115
+ $Notification.style.position = 'absolute';
16116
+ $Parent.append($Notification);
16117
+ return;
16118
+ }
16111
16119
  append$1($Notification);
16112
16120
  };
16113
16121
  const findIndex$1 = $Child => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/renderer-process",
3
- "version": "30.58.2",
3
+ "version": "30.58.3",
4
4
  "keywords": [
5
5
  "lvce-editor",
6
6
  "renderer-process"