@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.
- package/dist/rendererProcessMain.js +10 -2
- package/package.json +1 -1
|
@@ -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
|
-
|
|
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 => {
|